Skip to content

Commit 4579154

Browse files
bartlomiejuclaudethisisjofrank
authored
docs: add TLS session debugging with SSLKEYLOGFILE (#2953)
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com> Co-authored-by: Jo Franchetti <jofranchetti@gmail.com>
1 parent 1dca5a7 commit 4579154

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

runtime/fundamentals/debugging.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,3 +201,16 @@ including:
201201
For full details on Deno's OpenTelemetry integration, including custom metrics,
202202
traces, and configuration options, see the
203203
[OpenTelemetry documentation](/runtime/fundamentals/open_telemetry).
204+
205+
## TLS session debugging
206+
207+
Set the `SSLKEYLOGFILE` environment variable to log TLS session keys to a file.
208+
This enables you to decrypt and inspect encrypted network traffic with tools
209+
like [Wireshark](https://www.wireshark.org/):
210+
211+
```sh
212+
SSLKEYLOGFILE=./keys.log deno run -N main.ts
213+
```
214+
215+
Then load `keys.log` in Wireshark (Edit > Preferences > Protocols > TLS >
216+
(Pre)-Master-Secret log filename) to decrypt captured TLS traffic.

0 commit comments

Comments
 (0)