Skip to content
Myr

docs: move CA Certificates next to SSL Cert Verification

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Jim Browne · committed by Jim Browne · parent 17a9e6d · Browse files · 1 file+22 added−22 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+22 added−22 removed

  • other:+22 added−22 removed

1 file+22 added−22 removed

modified:docs/user/advanced.rst+22 added-22 removed
226 unmodified lines
227228 >>> requests.get('https://kennethreitz.com', cert='/wrong_path/server.pem')229 SSLError: [Errno 336265225] _ssl.c:347: error:140B0009:SSL routines:SSL_CTX_use_PrivateKey_file:PEM lib230231.. _ca-certificates:232233CA Certificates234---------------235236By default Requests bundles a set of root CAs that it trusts, sourced from the237`Mozilla trust store`_. However, these are only updated once for each Requests238version. This means that if you pin a Requests version your certificates can239become extremely out of date.240241From Requests version 2.4.0 onwards, Requests will attempt to use certificates242from `certifi`_ if it is present on the system. This allows for users to update243their trusted certificates without having to change the code that runs on their244system.245246For the sake of security we recommend upgrading certifi frequently!247248.. _HTTP persistent connection: https://en.wikipedia.org/wiki/HTTP_persistent_connection249.. _connection pooling: https://urllib3.readthedocs.org/en/latest/pools.html250.. _certifi: http://certifi.io/251.. _Mozilla trust store: https://hg.mozilla.org/mozilla-central/raw-file/tip/security/nss/lib/ckfw/builtins/certdata.txt252253.. _body-content-workflow:254255Body Content Workflow256---------------------
617 unmodified lines
874875 r = requests.get('https://github.com', timeout=None)876877.. _`connect()`: http://linux.die.net/man/2/connect856857.. _ca-certificates:858859CA Certificates860---------------861862By default Requests bundles a set of root CAs that it trusts, sourced from the863`Mozilla trust store`_. However, these are only updated once for each Requests864version. This means that if you pin a Requests version your certificates can865become extremely out of date.866867From Requests version 2.4.0 onwards, Requests will attempt to use certificates868from `certifi`_ if it is present on the system. This allows for users to update869their trusted certificates without having to change the code that runs on their870system.871872For the sake of security we recommend upgrading certifi frequently!873874.. _HTTP persistent connection: https://en.wikipedia.org/wiki/HTTP_persistent_connection875.. _connection pooling: https://urllib3.readthedocs.org/en/latest/pools.html876.. _certifi: http://certifi.io/877.. _Mozilla trust store: https://hg.mozilla.org/mozilla-central/raw-file/tip/security/nss/lib/ckfw/builtins/certdata.txt