Skip to main content

Python package for providing Mozilla's CA Bundle.

Project description

Certifi is a 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/python2.7/site-packages/certifi/cacert.pem'

Or from the command line:

$ python -m certifi
/usr/local/lib/python2.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.

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

certifi-2019.3.9.tar.gz (158.2 kB view details)

Uploaded Source

Built Distribution

certifi-2019.3.9-py2.py3-none-any.whl (158.6 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file certifi-2019.3.9.tar.gz.

File metadata

  • Download URL: certifi-2019.3.9.tar.gz
  • Upload date:
  • Size: 158.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.8.1 pkginfo/1.3.2 requests/2.11.1 setuptools/27.3.0 requests-toolbelt/0.7.0 clint/0.5.1 CPython/2.7.12 Darwin/18.5.0

File hashes

Hashes for certifi-2019.3.9.tar.gz
Algorithm Hash digest
SHA256 b26104d6835d1f5e49452a26eb2ff87fe7090b89dfcaee5ea2212697e1e1d7ae
MD5 76381d19d0a1171fecb2d1002b81424e
BLAKE2b-256 06b8d1ea38513c22e8c906275d135818fee16ad8495985956a9b7e2bb21942a1

See more details on using hashes here.

File details

Details for the file certifi-2019.3.9-py2.py3-none-any.whl.

File metadata

  • Download URL: certifi-2019.3.9-py2.py3-none-any.whl
  • Upload date:
  • Size: 158.6 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.8.1 pkginfo/1.3.2 requests/2.11.1 setuptools/27.3.0 requests-toolbelt/0.7.0 clint/0.5.1 CPython/2.7.12 Darwin/18.5.0

File hashes

Hashes for certifi-2019.3.9-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 59b7658e26ca9c7339e00f8f4636cdfe59d34fa37b9b04f6f9e9926b3cece1a5
MD5 5822ed8b08100dbd1273da9545437deb
BLAKE2b-256 6075f692a584e85b7eaba0e03827b3d51f45f571c2e793dd731e598828d380aa

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page