tls

Module Contents

Classes

TLSConfig(self,client_cert=None,ca_cert=None,verify=None,ssl_version=None,assert_hostname=None,assert_fingerprint=None) TLS configuration.
class TLSConfig(client_cert=None, ca_cert=None, verify=None, ssl_version=None, assert_hostname=None, assert_fingerprint=None)

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 False or a path to a CA cert

file.

ssl_version (int): A valid SSL version. assert_hostname (bool): Verify the hostname of the server.

__init__(client_cert=None, ca_cert=None, verify=None, ssl_version=None, assert_hostname=None, assert_fingerprint=None)
configure_client(client)

Configure a client with these TLS options.