Skip to main content
Yanked

This release has been yanked by its maintainers, and will be ignored by installers, except when explicitly specified.
Consider using release 2026.10.23 instead.
Reason given by maintainers: Incorrectly claims to support Python 3.5.

Certifi: Python SSL Certificates

Certifi provides Mozilla’s carefully curated collection of Root Certificates for validating the trustworthiness of SSL certificates while verifying the identity of TLS hosts. It has been extracted from the Requests project.

Installation

certifi is available on PyPI. Simply install it with pip:

$ pip install certifi

Usage

To reference the installed certificate authority (CA) bundle, you can use the built-in function:

>>> import certifi

>>> certifi.where()
'/usr/local/lib/python3.7/site-packages/certifi/cacert.pem'

Or from the command line:

$ python -m certifi
/usr/local/lib/python3.7/site-packages/certifi/cacert.pem

Enjoy!

1024-bit Root Certificates

Browsers and certificate authorities have concluded that 1024-bit keys are unacceptably weak for certificates, particularly root certificates. For this reason, Mozilla has removed any weak (i.e. 1024-bit key) certificate from its bundle, replacing it with an equivalent strong (i.e. 2048-bit or greater key) certificate from the same CA. Because Mozilla removed these certificates from its bundle, certifi removed them as well.

In previous versions, certifi provided the certifi.old_where() function to intentionally re-add the 1024-bit roots back into your bundle. This was not recommended in production and therefore was removed at the end of 2018.

Addition/Removal of Certificates

Certifi does not support any addition/removal or other modification of the CA trust store content. This project is intended to provide a reliable and highly portable root of trust to python deployments. Look to upstream projects for methods to use alternate trust.

Metadata

Release files for certifi 2022.5.18

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for certifi 2022.5.18
File Size Uploaded Provenance Actions
certifi-2022.5.18.tar.gz 156.8 kB Without provenance Details for certifi-2022.5.18.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for certifi 2022.5.18
File Interpreter ABI Platform Actions
certifi-2022.5.18-py3-none-any.whl Python 3 none any Details for certifi-2022.5.18-py3-none-any.whl

Total release size: 311.9 kB

Release files / certifi-2022.5.18.tar.gz

Download URL certifi-2022.5.18.tar.gz
Size 156.8 kB
Tags Source
SHA-256 checksum
How to use checksums
6ae10321df3e464305a46e997da41ea56c1d311fb9ff1dd4e04d6f14653ec63a
BLAKE2b-256 checksum
How to use checksums
c563a8e4b0c24e8538cec5579edbb2df4ed1f980d5f186878905317139d83b61
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.0 CPython/3.9.12

Release files / certifi-2022.5.18-py3-none-any.whl

Download URL certifi-2022.5.18-py3-none-any.whl
Size 155.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8d15a5a7fde18536a249c49e07e8e462b8fc13de21b3c80e8a68315dfa227c99
BLAKE2b-256 checksum
How to use checksums
0de0481445ea9f9a8ede3f6f373566c7fb20de435203e4828f3738906013ecfa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.0 CPython/3.9.12

Security for certifi 2022.5.18

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

2022.5.18 This release

2 release files No provenance

0

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page