File tree Expand file tree Collapse file tree 2 files changed +22
-6
lines changed Expand file tree Collapse file tree 2 files changed +22
-6
lines changed Original file line number Diff line number Diff line change @@ -79,10 +79,12 @@ class ArangoClient:
79
79
:type deserializer: callable
80
80
:param verify_override: Override TLS certificate verification. This will
81
81
override the verify method of the underlying HTTP client.
82
- None: Do not change the verification behavior of the underlying HTTP client.
83
- True: Verify TLS certificate using the system CA certificates.
84
- False: Do not verify TLS certificate.
85
- str: Path to a custom CA bundle file or directory.
82
+
83
+ - `None`: Do not change the verification behavior of the
84
+ underlying HTTP client.
85
+ - `True`: Verify TLS certificate using the system CA certificates.
86
+ - `False`: Do not verify TLS certificate.
87
+ - `str`: Path to a custom CA bundle file or directory.
86
88
:type verify_override: Union[bool, str, None]
87
89
:param request_timeout: This is the default request timeout (in seconds)
88
90
for http requests issued by the client if the parameter http_client is
Original file line number Diff line number Diff line change @@ -17,8 +17,7 @@ your HTTP client as described in the :ref:`HTTPClients` section.
17
17
18
18
The ``ArangoClient `` class provides an option to override the verification behavior,
19
19
no matter what has been defined in the underlying HTTP session.
20
- You can use this option to disable verification or provide a custom CA bundle without
21
- defining a custom HTTP Client.
20
+ You can use this option to disable verification.
22
21
23
22
.. code-block :: python
24
23
@@ -34,3 +33,18 @@ application:
34
33
35
34
import requests
36
35
requests.packages.urllib3.disable_warnings()
36
+
37
+ You can also provide a custom CA bundle without defining a custom HTTP Client:
38
+
39
+ .. code-block :: python
40
+
41
+ client = ArangoClient(hosts = " https://localhost:8529" , verify_override = " path/to/certfile" )
42
+
43
+ If `verify_override ` is set to a path to a directory, the directory must have been processed using the `c_rehash ` utility
44
+ supplied with OpenSSL. For more information, see the `requests documentation <https://requests.readthedocs.io/en/master/user/advanced/#ssl-cert-verification >`_.
45
+
46
+ Setting `verify_override ` to `True ` will use the system's default CA bundle.
47
+
48
+ .. code-block :: python
49
+
50
+ client = ArangoClient(hosts = " https://localhost:8529" , verify_override = True )
You can’t perform that action at this time.
0 commit comments