We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 88b7279 commit ce05f96Copy full SHA for ce05f96
doc/src/concepts.rst
@@ -116,6 +116,14 @@ an up-to-date set of trusted CAs::
116
117
ssl_context = ssl.create_default_context(cafile=certifi.where())
118
119
+If the server supports it, you can also authenticate using a client
120
+certificate::
121
+
122
+ import ssl
123
124
+ ssl_context = ssl.create_default_context()
125
+ ssl_context.load_cert_chain("/path/to/client_certificate.crt")
126
127
The above examples show some of the most common TLS parameter
128
customisations but there are many other tweaks are possible. Consult
129
the Python 3 :py:mod:`ssl` package documentation for further options.
0 commit comments