Networking/Computing Tips/Tricks

Check out these great references as well: 

 Our custom profiles repository for Wireshark
 Our Udemy course on Wireshark 
 Our Udemy course on Wireless Packet capture

Whenever your web browser connects to a web server using HTTPS, a secure connection is established, keys are exchanged, and the traffic is encrypted.  We won't spend any time describing that process, instead we will focus on how you can decrypt the encrypted traffic using Wireshark.

There are a couple of environment contraints in this explanation:

  1. We are on Windows
  2. We are using the Chrome web browser

The step by step is illustrated in this video, followed by the instructions:

The steps I followed were:

  1. Windows Start> Environment Variables  (just start typing) - a System Properties dialogue will appear.
  2. Click on the Environment Variables button (bottom right) - an Environment Variables dialogue appears.
  3. On the top half of that dialogue (User Variables) - click New
  4. An input box appears, in the Variable Name field enter: "SSLKEYLOGFILE"
  5. In the Variable Value field enter a path to where you want to store the keys: "C:\keys\keys.log" as an example
  6. Click on OK - you should see the new variable in the list.
  7. Click on OK to close the Environment Variables dialogue.
  8. Click on OK to close the System Properties dialogue.
  9. Now Reboot.
  10. Once rebooted, launch either Chrome or Firefox.
  11. Open Wireshark and start a capture.
  12. In Wireshark, go to Edit> Preferences> Protocols> TLS
  13. In the Pre-Master Secret log filename box, browse to and select the file you created in Step 5.
  14. Click OK and close the dialogue. 

Back in Wireshark, you will see that Wireshark will now use the saved keys to decrypt anything your machine is capturing using that browser.

You can open the log file in a text editor.  You can search the log file for the client random field, and cut and paste the key pairs into a stand alone file and send them to another machine to decrypt the traffic elsewhere.

I hope this video helps and explains.  I welcome comments below. 

You may want to check on my separate article on SSL/TLS decryption using Key files here.

Comments powered by CComment

The nicest thing you can do is use these inks to support us!  Thank you!

Support our research!

Become a Patron!

Find by Tag

4G Networks 5G Networks 6in4 6LoWLAN 6LoWPAN 802.11 802.11ah 802.11ax 802.11ay 802.11az Addressing Analysis Ansible Architecture ARP AToM BGP Bloom's Taxonomy Broadband Cable CBRS CellStream Cellular Central Office Cheat Sheet Chrome Cisco Cloud Coloring Rules Computer Consulting Course Design CPI CSR Customer Support Data Center Data Networking Decryption DHCPv6 DNS Documentation dumpcap ECMP Ethernet Ethics Flipping the Certification Model Fragmentation G-MPLS Git GNS3 Google GQUIC Hands-On History Home Network HTTPS ICMP ICMPv6 IEEE 802.11p IEEE 802.15.4 Interface Control Internet IoT IPsec IPv4 IPv6 IS-IS L2VPN L3VPN LDP Linux LLN LoL M-BGP MAC MAC OSx Macro Microsoft mininet Monitoring Monitor Mode MPLS Multicast My Room Name Resolution Netcat Netmiko NetMon netsh Networking Network Science nmap Npcap Online Learning Online School OpenFlow OSPF OSPFv2 OSPFv3 OSX OTT Parrot PIM pktmon Policy POTS POTS to Pipes PPP Profile Programming Project Management Protocol 41 PW3E Python QoS QUIC Remote Desktop Requirements RIP Routing RPL RSVP Rural SAS SDN Security Self Certification Service Provider Small Business SONET Speed SS7 SSH SSL Subnetting T-Shark TCP TCP/IP Telco Telecom 101 Telecommunications Telephone termshark TLS Tools Traceroute Tracewrangler Traffic Engineering Training Travel Tunnel Ubuntu Utility Video Virtualbox Virtualization VoIP VRF VXLAN Web Based Delivery Webex WEP Wi-Fi Wi-Fi 6 Wi-Fi 6/6E Windows Winpcap Wireless Wireless 5G Wireshark Wireshark Tip WLAN WPA2 ZigBee Zoom

Support us by clicking:

Twitter Feed