Skip to content

segevfiner/node-sslkeylogfile

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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