Skip to content

Commit

Permalink
Merge pull request psf#2753 from Lukasa/ssldocs
Browse files Browse the repository at this point in the history
Document the string form of the verify parameter.
  • Loading branch information
Ian Cordasco committed Sep 1, 2015
2 parents bf9e663 + 7c958ee commit 719c76c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion docs/user/advanced.rst
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,11 @@ I don't have SSL setup on this domain, so it fails. Excellent. GitHub does thoug
>>> requests.get('https://github.com', verify=True)
<Response [200]>

You can pass ``verify`` the path to a CA_BUNDLE file with certificates of trusted CAs. This list of trusted CAs can also be specified through the ``REQUESTS_CA_BUNDLE`` environment variable.
You can pass ``verify`` the path to a CA_BUNDLE file with certificates of trusted CAs::

>>> requests.get('https://github.com', verify='/path/to/certfile')

This list of trusted CAs can also be specified through the ``REQUESTS_CA_BUNDLE`` environment variable.

Requests can also ignore verifying the SSL certificate if you set ``verify`` to False.

Expand Down

0 comments on commit 719c76c

Please sign in to comment.