Just a simple Batch script that will help you set up all you need to capture pre-master secret keys to decrypt SSL in Wireshark.
Script will create SSLKEYLOGFILE environment variable and ssl-key.log
file on your desktop.
Reference point was this article.
Tested with Wireshark v3.2.6 (64-bit) on Windows 10 Enterprise OS (64-bit).
Made for educational purposes. I hope it will help!
Double click on the script or open the Command Prompt from \src\ and run the following command:
pre_master_secret_key.bat
Open Wireshark and go to Edit -> Preferences -> Protocols -> TLS
and load the path to ssl-keys.log
into (Pre-)Master-Secret log filename
input filed.
Start recording network traffic.
If you suddenly cannot delete the log file even after closing the web browser, it is possible that some other program is still writing in the file, e.g OneDrive, Dropbox, etc.
Figure 1 - Run (Create)
Figure 2 - Run (Remove)