An open API service indexing awesome lists of open source software.

https://github.com/segevfiner/node-sslkeylogfile

Enable SSL/TLS key logging for all connections globally.
https://github.com/segevfiner/node-sslkeylogfile

ssl sslkeylog sslkeylogfile tls wireshark

Last synced: 8 months ago
JSON representation

Enable SSL/TLS key logging for all connections globally.

Awesome Lists containing this project

README

          

# sslkeylogfile
Enable SSL/TLS key logging for all connections globally.

This is similar to using the
[`--tls-keylog`](https://nodejs.org/docs/latest-v20.x/api/cli.html#--tls-keylogfile) flag of
Node.js, but can be controlled by JavaScript.

## Usage
```ts
import { enableSSLKeyLog } from "sslkeylogfile";

enableSSLKeyLog("path/to/keylog.txt");
```

Or to enable based on the `SSLKEYLOGFILE` environment variable:
```ts
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](https://wiki.wireshark.org/TLS#using-the-pre-master-secret)).

## License
MIT