Enable SSL/TLS key logging for all connections globally.
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