ssl.SSLContext

class ssl.SSLContext(protocol)[source]

An SSLContext holds various SSL-related configuration options and data, such as certificates and possibly a private key.

Methods

__format__ default object formatter
__init__(protocol)
__new__(protocol, *args, **kwargs)
__reduce__ helper for pickle
__reduce_ex__ helper for pickle
__sizeof__(() -> int) size of object in memory, in bytes
__subclasshook__ Abstract classes can override this to customize issubclass().
_load_windows_store_certs(storename, purpose)
_set_alpn_protocols
_set_npn_protocols
_wrap_socket
cert_store_stats(() -> {: int, : int, : int}) Returns quantities of loaded X.509 certificates.
get_ca_certs(...) Returns a list of dicts with information of loaded CA certs.
load_cert_chain
load_default_certs([purpose, shortname, ...])
load_dh_params
load_verify_locations
session_stats
set_alpn_protocols(alpn_protocols)
set_ciphers
set_default_verify_paths
set_ecdh_curve
set_npn_protocols(npn_protocols)
set_servername_callback(method) This sets a callback that will be called when a server name is provided by the SSL/TLS client in the SNI extension.
wrap_socket(sock[, server_side, ...])