Enable SSL/TLS key logging for all connections globally.
This is similar to using the
--tls-keylog
flag of
Node.js, but can be controlled by JavaScript.
import { enableSSLKeyLog } from "sslkeylogfile";
enableSSLKeyLog("path/to/keylog.txt");
Or to enable based on the SSLKEYLOGFILE
environment variable:
import "sslkeylogfile/global";
You can then configure Wireshark to use the resulting file as the "(Pre)-Master-Secret log filename" (See Using the (Pre)-Master-Secret).
MIT