Skip to content

Instantly share code, notes, and snippets.

@miguelmota
Last active October 11, 2023 06:25
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
  • Save miguelmota/a24762b25ebfb32d707ee6452b32227d to your computer and use it in GitHub Desktop.
Save miguelmota/a24762b25ebfb32d707ee6452b32227d to your computer and use it in GitHub Desktop.
linux wireshark SSLKEYLOGFILE ssl decrypt curl
sudo wireshark
# go to:
# Edit -> Preferences -> Protocols -> TLS (you can type) -> under "(Pre)-Master-Secret log filename
" enter in input "/tmp/ssl-key.log"
# then start capture
# curl
SSLKEYLOGFILE=/tmp/ssl-key.log curl https://example.com
# firefox (don't forget to disable http2 in about:config and restart)
SSLKEYLOGFILE=/tmp/ssl-key.log firefox-developer-edition
# google chrome
google-chrome-stable --ssl-key-log-file=/tmp/ssl-key.log --disable-http2 --disable-http3 --disable-quic
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment