File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -250,6 +250,20 @@ man-in-the-middle (MitM) attacks. Setting verify to ``False`` may be useful
250250during local development or testing.
251251
252252By default, ``verify `` is set to True. Option ``verify `` only applies to host certs.
253+ When using a ``Session `` object, the ``Session.verify `` attribute accepts the same
254+ values as the ``verify `` parameter passed to ``requests.get `` and other request
255+ methods. This means it may be:
256+
257+ * ``True `` – verify the server’s TLS certificate using the system’s CA bundle (default),
258+ * ``False `` – disable TLS certificate verification entirely (INSECURE),
259+ * ``str `` – a filesystem path to a CA bundle file or directory to use instead of
260+ the system defaults.
261+
262+ For example::
263+
264+ s = requests.Session()
265+ s.verify = "/path/to/cacert.pem"
266+ s.get("https://example.com")
253267
254268Client Side Certificates
255269------------------------
You can’t perform that action at this time.
0 commit comments