Sslsocket
- 1 The accept() method of SSLSocket in Python The accept() method of SSLSocket accepts an incoming request from the client and returns a tuple containing another SSLSocket instance used for writing data to the client and the IP address of the client. 9 Apr 2020
- 2 bind() method of SSLSocket class in Python The bind method attaches a socket instance in this case an SSLSocket instance to an IP address and the port. The example Python program binds to an IP address and waits for client connections to serve the temperature value of a city. 10 Apr 2020
- 3 The cipher() method of SSLSocket class The method cipher() of SSLSocket class in Python returns a tuple consisting of the name of the cipher, the version of the TLS protocol and the number of secret bits used. 4 Apr 2020
- 4 The compression() method of sslsocket class in Python The method compression() returns the compression method used in the TLS (also still called as SSL) communication. The Python example connects to a server and prints the compression method used in the TLS communication. 5 Apr 2020
- 5 The do_handshake() method of SSLSocket class in Python The method do_handshake() of SSLSocket class in Python does an SSL handshake with the peer to establish a secure communication through TLS protocol. 7 Apr 2020
- 6 The getpeercert() method of SSLSocket class The method getpeercert() of SSLSocket class in Python retrieves the SSL certificate from the other endpoint of the communication. The method raises an ValueError if the call precedes the SSL Handshake. 4 Apr 2020
- 7 The SSLSocket class in Python The SSLSocket class is derived from the socket class. The SSLSocket class provides TLS handshake and secure communication over the TCP/IP socket. 1 Apr 2020
- 8 The recv() method of SSLsocket class in Python The method recv() returns a number of decrypted bytes from the SSLSocket instance as specified by the bufsize parameter. The Python example uses recv() to read a web page using an SSLSocket connected to a HTTPS port on a server. 8 Apr 2020
- 9 shared_ciphers() method of SSLSocket class in Python The shared_ciphers() method of SSLSocket class in Python returns a list of tuples containing the ciphers, their TLS version and the number of secret bits used which has been shared with the peer. 4 Apr 2020
- 10 shutdown method of SSLSocket class in Python The shutdown() method stops read, write operations on the SSLSocket instance as specified in the parameter - how. The Python example connects to a server using TLS and prints the currently used cipher, shared cyphers and compression before it shuts down and closes the SSLSocket instance. 12 Apr 2020
- 11 The version() method of SSLSocket class from the Python ssl module The version() method when called on an SSLSocket instance which is in an already established connection with a remote host, returns the version string of the SSL Protocol. 13 Mar 2020