SOCK_STREAM socket other socket types are unsupported.įor client-side sockets, the context construction is lazy if the Of ssl.SSLSocket, a subtype of socket.socket, which wraps Takes an instance sock of socket.socket, and returns an instance wrap_socket ( sock, keyfile=None, certfile=None, server_side=False, cert_reqs=CERT_NONE, ssl_version=, ca_certs=None, do_handshake_on_connect=True, suppress_ragged_eofs=True, ciphers=None ) ¶ Python 2.7.9, it can be more flexible to use SSLContext.wrap_socket() The following function allows for standalone socket creation. Helps manage settings and certificates, which can then be inheritedīy SSL sockets created through the SSLContext.wrap_socket() method. Retrieves the cipher being used for the secure connection.įor more sophisticated applications, the ssl.SSLContext class It supportsĪdditional methods such as getpeercert(), which retrieves theĬertificate of the other side of the connection, and cipher(),which Socket.socket type, and provides a socket-like wrapper that alsoĮncrypts and decrypts the data going over the socket with SSL. This module provides a class, ssl.SSLSocket, which is derived from the The documents in the “See Also” section at the bottom. General information about TLS, SSL, and certificates, the reader is referred to This section documents the objects and functions in the ssl module for more Ssl module are not necessarily appropriate for your application. May lead to a false sense of security, as the default settings of the Don’t use this module without reading the Security considerations.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |