def __init__(self, options): assert isinstance(options, TlsContextOptions) super(ClientTlsContext, self).__init__() self._binding = _awscrt.client_tls_ctx_new( options.min_tls_ver.value, options.ca_dirpath, options.ca_buffer, _alpn_list_to_str(options.alpn_list), options.certificate_buffer, options.private_key_buffer, options.pkcs12_filepath, options.pkcs12_password, options.verify_peer)
def __init__(self, options): assert isinstance(options, TlsContextOptions) super().__init__() self._binding = _awscrt.client_tls_ctx_new( options.min_tls_ver.value, options.ca_dirpath, options.ca_buffer, _alpn_list_to_str(options.alpn_list), options.certificate_buffer, options.private_key_buffer, options.pkcs12_filepath, options.pkcs12_password, options.verify_peer, options._pkcs11_lib, options._pkcs11_user_pin, options._pkcs11_slot_id, options._pkcs11_token_label, options._pkcs11_private_key_label, options._pkcs11_cert_file_path, options._pkcs11_cert_file_contents, options._windows_cert_store_path, )