Skip to content

Commit

Permalink
Improve documentation for using Hvac with a private CA and the verify…
Browse files Browse the repository at this point in the history
… parameter (#774)
  • Loading branch information
jackcasey-visier committed Jan 29, 2023
1 parent 618aaf4 commit a98cbf8
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions docs/advanced_usage.rst
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,19 @@ You then use hvac's Client.session and requests.Session() to pass the new CA bun
.. _documented in the advanced usage section for requests: https://requests.readthedocs.io/en/master/user/advanced/#ssl-cert-verification

If only using the certificate authority for trust, not authentication, SSL verification can be set using the `verify` parameter.

This configures the client to trust the connection only if the certificate recieved is signed by a CA in that bundle:

.. code:: python
vault_client = hvac.Client(
url=vault_url,
verify='/etc/ssl/my-ca-bundle'
)
.. _documented in the advanced usage section for requests: https://requests.readthedocs.io/en/master/user/advanced/#ssl-cert-verification

Custom Requests / HTTP Adapter
------------------------------

Expand Down

0 comments on commit a98cbf8

Please sign in to comment.