SSLKEYLOGFILE pre-master secret log for TLS?

655 views
Skip to first unread message

Jason E. Aten

unread,
Nov 16, 2019, 12:36:33 PM11/16/19
to golang-nuts
I have wss websocket client that I need to decrypt the packets from in WireShark to establish time of delivery--to troubleshoot a slowdown.

Similar to the Chrome facility for dumping the TLS pre-master secret using the env variable SSLKEYLOGFILE, which
WireShark can then utilize, do the Go TLS libraries have a way of logging the secret that was used?

psan...@gmail.com

unread,
Nov 18, 2019, 9:08:43 PM11/18/19
to golang-nuts
You can set the tls.Config.KeyLogWritter to write out that information in the same format: 
https://golang.org/pkg/crypto/tls/#Config.KeyLogWriter
Reply all
Reply to author
Forward
0 new messages