Skip to content
Myr

Clarify docs that Requests always uses certs from certifi

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

Since commit 0d7de6430eef0cf09f9662746daf0c28d83f144e, certifi is always used for certificates. Certify became a hard dependency of the package in 628633143d5b8590b1dbdf5371fe81fb8250dffd. Now update the docs to clarify that Request will always use certificates from certifi.

authored by Jon Dufresne · committed by Jon Dufresne · parent 3c1d36b · Browse files · 1 file+7 added−8 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+7 added−8 removed

  • other:+7 added−8 removed

1 file+7 added−8 removed

modified:docs/user/advanced.rst+7 added-8 removed
272 unmodified lines
273274CA Certificates275---------------276277By default, Requests bundles a set of root CAs that it trusts, sourced from the278`Mozilla trust store`_. However, these are only updated once for each Requests279version. This means that if you pin a Requests version your certificates can280become extremely out of date.277Requests uses certificates from the package `certifi`_. This allows for users278to update their trusted certificates without changing the version of Requests.279282From Requests version 2.4.0 onwards, Requests will attempt to use certificates283from `certifi`_ if it is present on the system. This allows for users to update284their trusted certificates without having to change the code that runs on their285system.280Before version 2.16, Requests bundled a set of root CAs that it trusted,281sourced from the `Mozilla trust store`_. The certificates were only updated282once for each Requests version. When ``certifi`` was not installed, this led to283extremely out-of-date certificate bundles when using significantly older284versions of Requests.285286For the sake of security we recommend upgrading certifi frequently!287288.. _HTTP persistent connection: https://en.wikipedia.org/wiki/HTTP_persistent_connection
747 unmodified lines