Inspecting standard SSL client and server communication

Now, we are going to capture packets with Wireshark when executing the script showed in the previous section to see the communication between the client and the domain server.

The following screenshot shows the interaction between the SSL client and the remote server:

Let's examine the SSL handshake process between the client and the server:

  • In the first step of an SSL handshake, the client sends a Hello message to the remote server, saying what it is capable of in terms handling key files, encrypting messages, doing message integrity checks, and so on.
  • Then, it sends the TLS version ...

Get Learning Python Networking - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.