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