certifi-linux
Certifi patch for using Linux cert trust stores
What it is and what it does
certifi-linux is a monkey-patch wrapper around certifi that intercepts calls to certifi.where() and certifi.contents to return paths from the Linux system certificate store instead of bundled certificates. It uses wrapt to inject this behavior transparently, so any library depending on certifi automatically uses OS-managed certificates without code changes.
This is particularly useful in enterprise environments where custom or internal certificate authorities must be trusted, or where system administrators manage certificates centrally. The package searches a predefined set of common certificate bundle locations across different Linux distributions (Debian, Ubuntu, Fedora, RHEL, Alpine, CentOS) and returns the first match it finds. Installation is passive: once installed, it takes effect immediately for any downstream code that calls certifi.
Use it for:
- Enterprise deployments where internal certificate authorities must be trusted by Python applications without modifying application code.
- Containerized applications on Linux where the host's certificate store is mounted and must be used for TLS verification.
- Development environments on Linux where system-wide certificate updates should automatically propagate to Python's certifi lookups.
- Compliance scenarios requiring audit trails of certificate changes managed at the OS level rather than bundled with Python packages.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Redirects certifi's certificate lookup to use the Linux system trust store instead of bundled certificates, enabling TLS verification against OS-managed certificates.
Yes, if you are on Linux and need Python applications to respect the system certificate store. The install is frictionless, maintenance is active, and there are no known vulnerabilities. Not applicable on Windows or other non-Linux platforms. Verify that your Linux distribution's certificate path is among the tested ones before relying on it in production.
Install
certifi-linux on PyPI
pip
pip install certifi-linuxuv
uv add certifi-linuxpoetry
poetry add certifi-linuxInstalling certifi-linux
Before you install
Low friction install with a single runtime dependency (wrapt). Actively maintained as of 2026-08-11 with stable status and broad Python version support (3.7–3.13).
License in practice
MIT license permits unrestricted use, modification, and distribution with minimal legal friction.
Quickstart
pip install certifi-linux
# Then in any code using certifi:
import certifi
print(certifi.where()) # Now returns system cert path, e.g. /etc/ssl/certs/ca-certificates.crt
Linux-only; will not work on Windows, macOS, or other non-Linux platforms. Requires one of the tested certificate bundle paths to exist on the system.
Verify before relying
- Whether the package successfully handles all untested distributions (Arch, Slackware, OpenWRT, FreeBSD, SUSE, gentoo) or only the documented ones.
- Performance impact of certificate path searching at runtime compared to direct bundled-certificate lookup.
- Behavior when multiple certificate bundle paths exist on the same system.
Package facts
| License | not declared (permissive) |
| Python support | supports the current Python release (>=3.7) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 1 — wrapt |
| Maintenance | actively maintained — 444 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 171,515/month — #10,363 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: certifi_linux-1.1.0-py3-none-any.whl
Keywords: certifi, certificates, certs, linux, requests, ssl, tls
Tags
More Cryptography packages
Certifi provides Mozilla's curated collection…
copyleft · top 100 on PyPI
cryptographycryptography provides cryptographic recipes and…
permissive · top 100 on PyPI
rsaPure-Python RSA encryption, decryption,…
permissive · top 1,000 on PyPI
pyOpenSSLpyOpenSSL wraps OpenSSL's SSL/TLS functionality…
permissive · top 1,000 on PyPI
azure-identityProvides Microsoft Entra ID token-based…
unclear · top 1,000 on PyPI
PyNaClPyNaCl provides Python bindings to libsodium…
permissive · top 1,000 on PyPI
python-certifi-win32Patches certifi at runtime to include…
permissive · top 15,000 on PyPI
trustmetrustme generates fake TLS certificates and…
permissive · top 5,000 on PyPI
wassimaWassima provides access to your operating…
permissive · top 5,000 on PyPI
wincertstoreAccesses Windows system certificate stores (CA…
permissive · top 15,000 on PyPI
pip-system-certsAutomatically configures Python to use the…
permissive · top 5,000 on PyPI
truststoreTruststore exposes native system certificate…
permissive · top 1,000 on PyPI
certipyCertipy creates and manages certificate…
permissive · top 15,000 on PyPI
bindepBindep checks for missing system binary…
permissive · top 5,000 on PyPI
mscertsProvides access to Microsoft's Root Certificate…
copyleft · top 15,000 on PyPI