Certifi workaround to use system trust store
Project description
certifi-system-store, a certifi hack
certifi-system-store is a replacement and hack for consumers of certifi. It replaces certifi with an alternative implementation that uses the system trust store on Linux and some BSD distributions.
Installation
You absolutely must run python -m certifi
after installing the
package. The command ensures that you have a working system trust store
and patches your current Python environment. It creates or replaces
certifi's dist-info directory with certifi-system-store's dist-info.
$ python -m pip install certifi-system-store
$ python -m certifi
Supported system trust stores
/etc/ssl/cert.pem
- Alpine
- Arch
- Fedora 34+
- FreeBSD (with
ca_root_nss
package) - OpenWRT
- RHEL 9
/etc/pki/tls/cert.pem
- CentOS 7, 8
- Fedora 33 and earlier
- RHEL 7, 8
/etc/ssl/certs/ca-certificates.crt
- Debian (with
ca-certificates
) - Gentoo
- Ubuntu (with
ca-certificates
)
/etc/ssl/ca-bundle.pem
- SUSE
How does it work?
- empty
certifi/cacert.pem
to override any existing certifi data. - fake
certifi dist-info
with much higher version number than certifi
$ venv/bin/pip install certifi-system-store
$ ls -l .tox/venv/lib/python3.9/site-packages/
certifi
certifi_system_store-3000.1.dist-info
...
$ venv/bin/python -m certifi -v
Patched certifi.dist-info -> certifi_system_store.dist-info
/etc/pki/tls/cert.pem
$ ls -l .tox/venv/lib/python3.9/site-packages/
certifi
certifi-3000.1.dist-info -> certifi_system_store-3000.1.dist-info
certifi_system_store-3000.1.dist-info
...
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file certifi-system-store-3000.0a1.tar.gz
.
File metadata
- Download URL: certifi-system-store-3000.0a1.tar.gz
- Upload date:
- Size: 12.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.1.3 requests-toolbelt/0.9.1 tqdm/4.56.2 CPython/3.9.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 461b377fea79938588ac927c42bb31738804132e8d78bf12e2a49a9cd0adde94 |
|
MD5 | e968205a4398783e1d600f4a35d30162 |
|
BLAKE2b-256 | 20b299588c5ee1c3f7fc0d59905a02d30b7eae79a8e17f1340618d7ad26a0765 |
File details
Details for the file certifi_system_store-3000.0a1-py3-none-any.whl
.
File metadata
- Download URL: certifi_system_store-3000.0a1-py3-none-any.whl
- Upload date:
- Size: 10.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.1.3 requests-toolbelt/0.9.1 tqdm/4.56.2 CPython/3.9.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 29baf8af6f92448c4100e0ab7c12bbc9bdf121b75653d31bcffb828b7f107584 |
|
MD5 | 255dd4f7d5c6743f97d6407140b1d765 |
|
BLAKE2b-256 | 16f81b22b712ea47fa464417e2bae29768117e3ec10cc9e1c3ac743d2df4de3a |