Skip to content

Conversation

@deanward81
Copy link

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