OpenQuizz
Une application de gestion des contenus pédagogiques
|
Public Member Functions | |
def | __init__ (self, protocol) |
def | protocol (self) |
def | load_cert_chain (self, certfile, keyfile=None, password=None) |
def | load_verify_locations (self, cafile=None, capath=None) |
def | set_default_verify_paths (self) |
def | wrap_socket (self, sock, server_side=False, do_handshake_on_connect=True, suppress_ragged_eofs=True, server_hostname=None, session=None) |
Properties | |
verify_mode = property(__get_verify_mode, __set_verify_mode) | |
check_hostname = property(__get_check_hostname, __set_check_hostname) | |
check_ocsp_endpoint | |
options = property(__get_options, __set_options) | |
A CPython compatible SSLContext implementation wrapping PyOpenSSL's context.
def __init__ | ( | self, | |
protocol | |||
) |
def load_cert_chain | ( | self, | |
certfile, | |||
keyfile = None , |
|||
password = None |
|||
) |
Load a private key and the corresponding certificate. The certfile string must be the path to a single file in PEM format containing the certificate as well as any number of CA certificates needed to establish the certificate's authenticity. The keyfile string, if present, must point to a file containing the private key. Otherwise the private key will be taken from certfile as well.
def load_verify_locations | ( | self, | |
cafile = None , |
|||
capath = None |
|||
) |
Load a set of "certification authority"(CA) certificates used to validate other peers' certificates when `~verify_mode` is other than ssl.CERT_NONE.
def protocol | ( | self | ) |
The protocol version chosen when constructing the context. This attribute is read-only.
def set_default_verify_paths | ( | self | ) |
Specify that the platform provided CA certificates are to be used for verification purposes.
def wrap_socket | ( | self, | |
sock, | |||
server_side = False , |
|||
do_handshake_on_connect = True , |
|||
suppress_ragged_eofs = True , |
|||
server_hostname = None , |
|||
session = None |
|||
) |
Wrap an existing Python socket sock and return a TLS socket object.
|
static |
|
static |
|
static |
|
static |