'Context' for SSL connections.
|
|
|
__init__(self,
protocol=' sslv23 ' ,
weak_crypto=None) |
|
|
|
add_session(self,
session) |
|
|
|
|
|
get_allow_unknown_ca(self)
Get the context's setting that accepts/rejects a peer certificate if
the certificate's CA is unknown. |
|
|
|
get_cert_store(self)
Get the certificate store associated with this context. |
|
|
|
get_session_cache_mode(self) |
|
|
|
get_session_timeout(self) |
|
|
|
|
|
|
|
load_cert(self,
certfile,
keyfile=None,
callback=<function passphrase_callback at 0x83b2a04>)
Load certificate and private key into the context. |
|
|
|
load_cert_chain(self,
certchainfile,
keyfile=None,
callback=<function passphrase_callback at 0x83b2a04>)
Load certificate chain and private key into the context. |
|
|
|
|
|
|
|
load_verify_info(self,
cafile=None,
capath=None)
Load CA certs into the context. |
|
|
|
|
|
|
|
remove_session(self,
session) |
|
|
|
set_allow_unknown_ca(self,
ok)
Set the context to accept/reject a peer certificate if the
certificate's CA is unknown. |
|
|
|
set_cipher_list(self,
cipher_list) |
|
|
|
|
|
set_info_callback(self,
callback=<function ssl_info_callback at 0x8412e64>)
Set a callback function that can be used to get state information
about the SSL connections that are created from this context. |
|
|
|
|
|
set_session_cache_mode(self,
mode) |
|
|
|
set_session_id_ctx(self,
id) |
|
|
|
set_session_timeout(self,
timeout) |
|
|
|
set_tmp_dh(self,
dhpfile)
Load ephemeral DH parameters into the context. |
|
|
|
set_tmp_dh_callback(self,
callback=None) |
|
|
|
set_tmp_rsa(self,
rsa)
Load ephemeral RSA key into the context. |
|
|
|
set_tmp_rsa_callback(self,
callback=None) |
|
|
|
set_verify(self,
mode,
depth,
callback=None)
Set verify options. |
|
|