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'

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. To assist in migrating old code, the function certifi.old_where() continues to exist as an alias of certifi.where(). Please update your code to use certifi.where() instead. certifi.old_where() will be removed in 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-2018.10.15.tar.gz (145.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

certifi-2018.10.15-py2.py3-none-any.whl (146.3 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

  • Download URL: certifi-2018.10.15.tar.gz
  • Upload date:
  • Size: 145.9 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.0.0

File hashes

Hashes for certifi-2018.10.15.tar.gz
Algorithm Hash digest
SHA256 6d58c986d22b038c8c0df30d639f23a3e6d172a05c3583e766f4c0b785c0986a
MD5 3f4ca75a66bc65fea0693b8040f66d13
BLAKE2b-256 41b64f0cefba47656583217acd6cd797bc2db1fede0d53090fdc28ad2c8e0716

See more details on using hashes here.

File details

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

File metadata

  • Download URL: certifi-2018.10.15-py2.py3-none-any.whl
  • Upload date:
  • Size: 146.3 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.0.0

File hashes

Hashes for certifi-2018.10.15-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 339dc09518b07e2fa7eda5450740925974815557727d6bd35d319c1524a04a4c
MD5 64805219173db535264610f887faf02f
BLAKE2b-256 569d1d02dd80bc4cd955f98980f28c5ee2200e1209292d5f9e9cc8d030d18655

See more details on using hashes here.

Supported by

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