Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save Tony3-sec/2ba37c81774f68885f2e80ad30607e47 to your computer and use it in GitHub Desktop.
Save Tony3-sec/2ba37c81774f68885f2e80ad30607e47 to your computer and use it in GitHub Desktop.
tshark -nr example.pcap -Y ssl.handshake.certificates -T fields -e ssl.handshake.certificate | xxd -r -p | openssl x509 -inform DER -text
## Extract raw SSL certificate from Wireshark
1. Select Server Hello packet
2. Open Secure Socket Layer tab and choose "Certificate". Make sure not to include "Certificate Length:". Only need the data below
3. Right click and choose "Export Packet Bytes"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment