Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Implement support for SSLKEYLOGFILE #271

Open
duesee opened this issue Sep 4, 2024 · 1 comment
Open

feat: Implement support for SSLKEYLOGFILE #271

duesee opened this issue Sep 4, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@duesee
Copy link
Owner

duesee commented Sep 4, 2024

See https://www.ietf.org/archive/id/draft-thomson-tls-keylogfile-00.html

@duesee duesee added the enhancement New feature or request label Sep 4, 2024
@duesee duesee changed the title feat: Implement support for SSLKEYLOGFILE feat: Implement support for SSLKEYLOGFILE Sep 4, 2024
@duesee
Copy link
Owner Author

duesee commented Sep 7, 2024

Adding ...

// Allow using SSLKEYLOGFILE.
config.key_log = Arc::new(rustls::KeyLogFile::new());

... to the TLS config, and setting the SSLKEYLOGFILE=<path> environment variable will create the secret log file.

Wireshark: Go the "Preferences.../Protocols/TLS" and set the "(Pre)-Master-Secret log filename". This way, Wireshark can decrypt encrypted TLS records.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: No status
Development

No branches or pull requests

1 participant