Re:Tcpdump is amazing
by chrj on Thursday March 17, 2016 @06:24AM
(#11303534)
If you have the private key, you can decrypt it in Wireshark.
[ Parent
| on HN ]
Inaccurate. Most browsers will now be using ephemeral key exchange. You pretty much have to configure one of the end points to dump session keys to a log file, then load that in to wireshark alongside the packet dump.
It would be nice if there was some automated way to do this.
You can use mitmproxy [1] to dump the TLS Master Secrets for all connnections it intercepts [2]. The dumpfile goes straight into WireShark.
Obligatory disclaimer: I'm one of the mitmproxy authors - happy to answer any questions.
[2] http://docs.mitmproxy.org/en/stable/dev/sslkeylogfile.html