Skip to content

TLS: add support for TLS key logging#120

Open
deanward81 wants to merge 1 commit intocodesenberg:masterfrom
deanward81:deanward/tls-key-log
Open

TLS: add support for TLS key logging#120
deanward81 wants to merge 1 commit intocodesenberg:masterfrom
deanward81:deanward/tls-key-log

Conversation

@deanward81
Copy link
Copy Markdown

This change adds support for logging TLS keys akin to the SSLKEYLOGFILE support found in curl and various browsers. Doing so allows TLS traffic to be decrypted by tools like Wireshark which is very useful for debugging.

  • add --key-log-path to args_parser and propagate through config
  • client_cert opens the file (creating if necessary) and then passes it to tls.Config.KeyLogWriter so that the TLS layer does the rest of the hard work

This change adds support for logging TLS keys akin to the `SSLKEYLOGFILE` support found in `curl` and various browsers. Doing so allows TLS traffic to be decrypted by tools like Wireshark which is very useful for debugging.

## Changes

- add `--key-log-path` to `args_parser` and propagate through `config`
- `client_cert` opens the file (creating if necessary) and then parses it to `tls.Config.KeyLogWriter`  so that the TLS layer does the rest of the hard work
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant