Wireshark
Client
Find all Client TLS Hello packets
Find all TLS Client Hello packets from a particular IP address
Find all TLS Client Hello packets from a particular IP address and TCP port
Find all TLS Client Hello packets that contain a particular SNI
Find all TLS Client Hello packets with support for TLS v1.3
Find all TLS Client Hello packets with support for TLS v1.2
Find all TLS Client Hello packets with support for TLS v1.1
Find all TLS Client Hello packets with support for TLS v1.0
Server
Following the conversation
Once you’ve identified the Server Hello packet, it’s time to dig a little deeper.
First, ensure that your Wireshark is set to reassemble out-of-order TCP packets. Without this, it can sometimes be very difficult to complete this next step. You can verify that Wireshark is configured to do this by going to this page in the Wireshark GUI and ensuring that any reassembly related options are ticked.
Enabling out-of-order TCP reassambly in Wireshark
Find the Certificate
In the packet you’ve selected, identify the Transport Layer Security section and expand the contents. You are looking for a section similar to this:
Note that, depending on the particular Server / CA / Protocol you’re dealing with, the packet capture may contain multiple Certificates. You may also notice that some of the Certificates are bigger than the others. This is because the server has basically sent everything twice.
Extract the Certificate
Now you’ve found the Certificate, you can extract it by right clicking on the Certificate and selecting ‘Export packet bytes…’ and ave the file as a *.cer file.
Once you’ve got the file save, you can then open it in Windows like any normal Certificate.
Last updated