Skip to content
Myr

Updated documentation for SSL client cert usuage.

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

Co-Authored By: Timnit Gebru <tgebru@gmail.com> Co-Authored By: Sarah Gonzalez <smar.gonz@gmail.com> Co-Authored By: Victoria Mo <vm2355@columbia.edu>

authored by Leila Muhtasib · committed by Leila Muhtasib · parent b7fd0e8 · Browse files · 2 files+21 added−0 removed
This commit

State

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

Diff stats

2 files+21 added−0 removed

  • other:+21 added−0 removed

2 files+21 added−0 removed

modified:docs/user/advanced.rst+17 added
91 unmodified lines
92 <Response [200]>9394You can also pass ``verify`` the path to a CA_BUNDLE file for private certs. You can also set the ``REQUESTS_CA_BUNDLE`` environment variable.9596Requests can also ignore verifying the SSL certficate if you set ``verify`` to False.9798 >>> requests.get('https://kennethreitz.com', verify=False)99 <Response [200]>100101By default, ``verify`` is set to True. Option ``verify`` only applies to host certs.102103You can also specify the local cert file either as a path or key value pair::104105 >>> requests.get('https://kennethreitz.com', cert=('/path/server.crt', '/path/key'))106 <Response [200]>107108If you specify a wrong path or an invalid cert::109110 >>> requests.get('https://kennethreitz.com', cert='/wrong_path/server.pem')111 SSLError: [Errno 336265225] _ssl.c:347: error:140B0009:SSL routines:SSL_CTX_use_PrivateKey_file:PEM lib112113114Body Content Workflow115---------------------116117By default, when you make a request, the body of the response isn't downloaded immediately. The response headers are downloaded when you make a request, but the content isn't downloaded until you access the :class:`Response.content` attribute.
384 unmodified lines
modified:AUTHORS.rst+4 added
103 unmodified lines
104- Arup Malakar <amalakar@gmail.com>105- Danilo Bargen (gwrtheyrn)106- Torsten Landschoff107- Michael Holler (apotheos)108- Timnit Gebru109- Sarah Gonzalez110- Victoria Mo111- Leila Muhtasib