talira

Mozilla's root certificates for Python

open sourceMPL-2.0free

certifi packages Mozilla's curated collection of root certificates for Python, so code can validate SSL/TLS certificates and verify the identity of hosts without relying on the operating system's trust store. It was extracted from Requests; certifi.where() (or python -m certifi) gives the path to the installed CA bundle in PEM form. It deliberately doesn't let you add or remove certificates. MPL-2.0 licensed.

Problems it solves

  • verify HTTPS certificates in Python without the system's CA store
  • get an up-to-date CA bundle for my Python app
  • fix SSL certificate verify failed errors in Python
  • point a Python HTTP client at a trusted root certificate file

Features

  • Mozilla's curated root CA bundle in PEM form
  • certifi.where() returns the bundle's path
  • python -m certifi prints the path from the command line

Limitations

  • Certifi doesn't support adding, removing or otherwise changing the certificates in its trust store.1