Merge pull request #3952 from tonybaloney/master

Small help in docs to indicate client side authentication
This commit is contained in:
Cory Benfield
2017-04-02 11:41:53 +01:00
committed by GitHub
2 changed files with 5 additions and 1 deletions
+3
View File
@@ -225,6 +225,9 @@ Requests can also ignore verifying the SSL certificate if you set ``verify`` to
By default, ``verify`` is set to True. Option ``verify`` only applies to host certs.
Client side certificates
------------------------
You can also specify a local cert to use as client side certificate, as a single
file (containing the private key and the certificate) or as a tuple of both
files' paths::
+2 -1
View File
@@ -343,7 +343,8 @@ class Session(SessionRedirectMixin):
#: SSL Verification default.
self.verify = True
#: SSL client certificate default.
#: SSL client certificate default, if String, path to ssl client
#: cert file (.pem). If Tuple, ('cert', 'key') pair.
self.cert = None
#: Maximum number of redirects allowed. If the request exceeds this