DESCRIPTION.rst 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. Certifi: Python SSL Certificates
  2. ================================
  3. `Certifi`_ is a carefully curated collection of Root Certificates for
  4. validating the trustworthiness of SSL certificates while verifying the identity
  5. of TLS hosts. It has been extracted from the `Requests`_ project.
  6. Installation
  7. ------------
  8. ``certifi`` is available on PyPI. Simply install it with ``pip``::
  9. $ pip install certifi
  10. Usage
  11. -----
  12. To reference the installed certificate authority (CA) bundle, you can use the
  13. built-in function::
  14. >>> import certifi
  15. >>> certifi.where()
  16. '/usr/local/lib/python2.7/site-packages/certifi/cacert.pem'
  17. Or from the command line::
  18. $ python -m certifi
  19. /usr/local/lib/python2.7/site-packages/certifi/cacert.pem
  20. Enjoy!
  21. 1024-bit Root Certificates
  22. ~~~~~~~~~~~~~~~~~~~~~~~~~~
  23. Browsers and certificate authorities have concluded that 1024-bit keys are
  24. unacceptably weak for certificates, particularly root certificates. For this
  25. reason, Mozilla has removed any weak (i.e. 1024-bit key) certificate from its
  26. bundle, replacing it with an equivalent strong (i.e. 2048-bit or greater key)
  27. certificate from the same CA. Because Mozilla removed these certificates from
  28. its bundle, ``certifi`` removed them as well.
  29. In previous versions, ``certifi`` provided the ``certifi.old_where()`` function
  30. to intentionally re-add the 1024-bit roots back into your bundle. This was not
  31. recommended in production and therefore was removed at the end of 2018.
  32. .. _`Certifi`: https://certifi.io/en/latest/
  33. .. _`Requests`: http://docs.python-requests.org/en/latest/