Client-side TLS Decryption not working
Dear Sir or Madam,
I setup Wireshark on my PC to decrypt some TLS (1.2) traffic in order to analyse what's going and incoming from a specific website.
To do so, I had to set a variable environment (SSLKEYLOGFILE), which seems to work great because the file is never empty even If I delete it. But when I set this file on Wireshark at the TLS pane to register the pre master keys file, nothing is decrypted at all.
First, I tought it was my security program (Kaspersky), which I uninstalled in order to get Wireshark working, nothing again. The second step was to try by using MITMproxy, file contain some keys but not any wanted decryption at all again.
Do you have any idea of what could prevent me to decrypt, and what could be the solutions ? PC : Windows 11 Wireshark : latest Security program : not anymore
If you have any question, I'm ready to reply
Thanks for reading
Respectfully
Wireshark decryption of TLS traffic works, if it's provided with the correct keying material.
Using SSLKEYLOGFILE should work if the applications generating the TLS traffic use a TLS library that observes that environment variable and emits the correct keying material into the file. Notably Windows applications using SChannel (the Windows OS TLS library) and Java applications do not do this.
What is the application generating the TLS traffic?
Thanks for your reply The application generating the TLS traffic is Firefox (I tried with Chrome too)
I know it's probably a problem of keys, because the file isn't empty, but why Firefox isn't puting the desired keys in the file, that's the problem. I have to precise that I tried to first initiate a TLS communication on the browser and then start the capture, and the reverse (first start the capture, then Firefox, then trying to apply the keys).
You should start the capture before initiating the connection so that the connection handshake can be captured. You should also ensure all instances of Firefox (and any other applications generating TLS traffic) have been terminated before starting the capture to eliminate possible session key reuse and extraneous traffic.
Have you followed the instructions for decrypting TLS on the wiki? In particular, the TCP protocol preferences.
thanks for your kind help. Yeah, I closed all the Firefox instances, reboot my pc many times, even try the flight mode to start the capture before any instances of Firefox.
The instructions for the TCP protocol preferences are set.
I cannot read the TCP packages, everything is encrypted. Here a TCP package (I tried to log in the website, zero footprint of my login by using frame contains XX)
(more)I will try soon on Kali linux, may be it could work with a different OS. Thanks for your help