Permalink
Browse files

Document the usage of client certificates

Fixes #339
  • Loading branch information...
NicolasLM committed Jan 22, 2018
1 parent 88b7279 commit ce05f963377d5139d4dc653c4820a741d239dc8b
Showing with 8 additions and 0 deletions.
  1. +8 −0 doc/src/concepts.rst
@@ -116,6 +116,14 @@ an up-to-date set of trusted CAs::
ssl_context = ssl.create_default_context(cafile=certifi.where())
If the server supports it, you can also authenticate using a client
certificate::
import ssl
ssl_context = ssl.create_default_context()
ssl_context.load_cert_chain("/path/to/client_certificate.crt")
The above examples show some of the most common TLS parameter
customisations but there are many other tweaks are possible. Consult
the Python 3 :py:mod:`ssl` package documentation for further options.

0 comments on commit ce05f96

Please sign in to comment.