class documentation

class SSLConfig:

View In Hierarchy

SSL Configuration.
Method __init__ Undocumented
Method load​_ssl​_context Undocumented
Method load​_ssl​_context​_no​_verify Return an SSL context for unverified connections.
Method load​_ssl​_context​_verify Return an SSL context for verified connections.
Constant DEFAULT​_CA​_BUNDLE​_PATH Undocumented
Instance Variable cert Undocumented
Instance Variable http2 Undocumented
Instance Variable ssl​_context Undocumented
Instance Variable trust​_env Undocumented
Instance Variable verify Undocumented
Method ​_create​_default​_ssl​_context Creates the default SSLContext object that's used for both verified and unverified connections.
Method ​_load​_client​_certs Loads client certificates into our SSLContext object
def __init__(self, *, cert=None, verify=True, trust_env=True, http2=False):

Undocumented

Parameters
cert:CertTypesUndocumented
verify:VerifyTypesUndocumented
trust​_env:boolUndocumented
http2:boolUndocumented
def load_ssl_context(self):

Undocumented

Returns
ssl.SSLContextUndocumented
def load_ssl_context_no_verify(self):
Return an SSL context for unverified connections.
Returns
ssl.SSLContextUndocumented
def load_ssl_context_verify(self):
Return an SSL context for verified connections.
Returns
ssl.SSLContextUndocumented
DEFAULT_CA_BUNDLE_PATH =

Undocumented

Value
Path(certifi.where())
cert =

Undocumented

http2 =

Undocumented

ssl_context =

Undocumented

trust_env =

Undocumented

verify =

Undocumented

def _create_default_ssl_context(self):
Creates the default SSLContext object that's used for both verified and unverified connections.
Returns
ssl.SSLContextUndocumented
def _load_client_certs(self, ssl_context):
Loads client certificates into our SSLContext object
Parameters
ssl​_context:ssl.SSLContextUndocumented