PyDocs

Nav

Networking and Interprocess Communication

SSLContext.load_verify_locations

ssl

method of SSLContextnot WASI
  • SSLContext.load_verify_locations(cafile=None, capath=None, cadata=None)
Load a set of “certification authority” (CA) certificates used to validate other peers’ certificates when verify_mode is other than CERT_NONE. At least one of cafile or capath must be specified.
Changed in 3.4
  • 3.4: New optional argument cadata
1 Example
>>> context = ssl.SSLContext(ssl.PROTOCOL_TLS_CLIENT)
>>> context.load_verify_locations("/etc/ssl/certs/ca-bundle.crt")
from the Python docs
See Also
No see-alsos for ssl/SSLContext.load_verify_locations
0 Notes
No notes for SSLContext.load_verify_locations