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.
- Host: GitHub
- URL: https://github.com/segevfiner/node-sslkeylogfile
- Owner: segevfiner
- License: mit
- Created: 2024-04-26T10:28:33.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-04-26T22:28:32.000Z (about 2 years ago)
- Last Synced: 2025-08-09T16:45:32.356Z (10 months ago)
- Topics: ssl, sslkeylog, sslkeylogfile, tls, wireshark
- Language: TypeScript
- Homepage: https://www.npmjs.com/package/sslkeylogfile
- Size: 22.5 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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