class documentation

class TLSConfig: (source)

View In Hierarchy

TLS configuration. Args: client_cert (tuple of str): Path to client cert, path to client key. ca_cert (str): Path to CA cert file. verify (bool or str): This can be a bool or a path to a CA cert file to verify against. If ``True``, verify using ca_cert; if ``False`` or not specified, do not verify. ssl_version (int): A valid `SSL version`_. assert_hostname (bool): Verify the hostname of the server. .. _`SSL version`: https://docs.python.org/3.5/library/ssl.html#ssl.PROTOCOL_TLSv1

Method __init__ Undocumented
Method configure_client Configure a client with these TLS options.
Instance Variable assert_fingerprint Undocumented
Instance Variable assert_hostname Undocumented
Instance Variable ca_cert Undocumented
Instance Variable cert Undocumented
Instance Variable ssl_version Undocumented
Instance Variable verify Undocumented
def __init__(self, client_cert=None, ca_cert=None, verify=None, ssl_version=None, assert_hostname=None, assert_fingerprint=None): (source)

Undocumented

def configure_client(self, client): (source)

Configure a client with these TLS options.

assert_fingerprint = (source)

Undocumented

assert_hostname = (source)

Undocumented

Undocumented

Undocumented

ssl_version = (source)

Undocumented

Undocumented