Skip to main content
abarushka
Staff
Staff
January 13, 2020

Technical Tip: How to decrypt TLS traffic generated by the browser (Windows operating system)

  • April 16, 2026 at 12:22 PM
  • 0 replies
  • 3833 views

Description

 

This article describes how to decrypt TLS traffic generated by the browser (Windows operating system).

Scope

 

For Microsoft Windows products.

Solution

 

Note that decrypting TLS traffic may expose sensitive information.

 

  1. Go to Control Panel -> Advanced system settings and select  'Environment Variables...'

 
  1. Select 'New' and add a new user variable 'SSLKEYLOGFILE' and point it at the location (full path) for the TLS session keys log file.


     

     
  2. Start packet capturing before starting the browser.
  3. Start the browser and navigate to the TLS website. TLS session keys are logged in the file specified in step 2.
  4. Stop packet capturing.
  5. Open Wireshark and go to Edit -> Preference -> Protocols -> SSL and select the '(Pre)-Master-Secret log filename' file specified in step 2.
     
    Note: In the new Wireshark releases, the protocol is not SSL anymore, but TLS.
     

     

  6. Open a '.pcap' file in Wireshark.
    In case traffic is decrypted correctly, there will be a 'Decrypted SSL data' tab in the left bottom corner.



Thought Leadership. Security Summit. Thursday, November 12th, PGA National Resort, Palm Beach Gardens, FL.
Thought Leadership. Security Summit. Thursday, October 8th. Disney's Grand Californian Hotel & SPA, Anaheim, CA.
Security Operations Summit: Modernize SecOps. Operate AI-Native.AMER: November 4 | 9:00 AM PST. India and SAARC: November 5 | 10:00 AM IST. EMEA: November 5 | 10:30 AM CET. APAC: November 5 | 11:00 AM SGT