Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get plain text of https package locally?

Tags:

linux

tcpdump

How to get plain text of a https package sent from my program? There is a tcpdump on my system. thanks.

like image 782
fxp Avatar asked May 14 '26 04:05

fxp


1 Answers

Use tshark, a wireshark-like commandline tool.

Example usage (with parameters that fit MY system) :

tshark -i eth1 port 443 -o "ssl.keys_list:any,443,http,/path/to/your/server.key" -o ssl.debug_file:"/home/your_user/ssl_debug.log"

Of course, replace "eth1" with your interface. The ssl_debug.log is "just in case".

You can parse more of the data (headers,..) like this

tshark documentation

like image 168
Hibuki Avatar answered May 15 '26 18:05

Hibuki



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!