-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
allow to disable TLS certificate verification
- Loading branch information
Showing
2 changed files
with
40 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
TLS certificate verification | ||
---------------------------- | ||
|
||
When connecting against a server using an https/TLS connection, TLS certificates | ||
are verified by default. | ||
By default, self-signed certificates will cause trouble when connecting. | ||
|
||
.. code-block:: python | ||
client = ArangoClient(hosts="https://localhost:8529") | ||
In order to make connections work even when using self-signed certificates, the | ||
`verify_certificates` option can be disabled when creating the `ArangoClient` | ||
instance: | ||
|
||
.. code-block:: python | ||
client = ArangoClient(hosts="https://localhost:8529", verify_certificate=False) | ||
This will allow connecting, but the underlying `urllib3` library may still issue | ||
warnings due to the insecurity of using self-signed certificates. | ||
|
||
To turn off these warnings as well, you can add the following code to your client | ||
application: | ||
|
||
.. code-block:: python | ||
import requests | ||
requests.packages.urllib3.disable_warnings() | ||