Skip to content

Latest commit

 

History

History
23 lines (17 loc) · 674 Bytes

README.md

File metadata and controls

23 lines (17 loc) · 674 Bytes

sslkeylogfile

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.

Usage

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).

License

MIT