SSLSocket.do_handshake() Perform the SSL setup handshake.
SSLSocket.selected_npn_protocol() Return the higher-level protocol that was selected during the TLS/SSL handshake. If SSLContext
socket.gethostbyname(hostname) Translate a host name to IPv4 address format. The IPv4 address is returned as a string, such
socket.getnameinfo(sockaddr, flags) Translate a socket address sockaddr into a 2-tuple (host, port). Depending
socket.get_inheritable() Get the
SSLContext.load_dh_params(dhfile) Load the key generation parameters for Diffie-Helman (DH) key exchange. Using DH key exchange
SSLContext.set_default_verify_paths() Load a set of default “certification authority” (CA) certificates from a filesystem path
SSLContext.verify_mode Whether to try to verify other peers’ certificates and how to behave if verification fails. This attribute
socket.makefile(mode='r', buffering=None, *, encoding=None, errors=None, newline=None) Return a file
socket.connect_ex(address) Like connect(address), but return an error indicator instead of raising an exception
Page 12 of 22