-
Notifications
You must be signed in to change notification settings - Fork 302
Description
Hi @vi
Hope you're doing well !
Except a mistake from me (highly possible), I haven't seen support of SSLKEYLOGFILE which is required to decrypt TLSv1.2+ traffic using Elliptic Curves like cipher ECDHE_*
What I expect is to be able to do:
export WS_SSLKEYLOGFILE=~/websocat-tls-keys.log SSL_CERT_FILE=/path/to/my/ca/cert websocat wss://...
And to catpure traffic in the mean time:
sudo tcpdump -nnei any -vvvttttXXX 'host <server_ip> and host <client_ip> and port <api_port>' -w ~/api-traffic.pcap
And after I can pass the 2 files ~/websocat-tls-keys.log
and ~/api-traffic.pcap
to tshark
or wireshark
to decrypt TLS stream.
Does such feature exist in websocat
?
If no and if it's been added in the future, it could be nice (sometimes required) to customize the name of the SSLKEYLOGFILE
ENV variable like $WS_SSLKEYLOGFILE
.
Why ? for example curl
match from ENV the variable $SSLKEYLOGFILE
but when using curl
and websocat
in the same script, it would be better to be able to use a custom ENV variable for websocat
to get 2 distinct files: 1 for curl
SSLKEYLOGFILE and 1 for websocat
SSLKEYLOGFILE.
Thanks
Kind regards
nbanba