Skip to content

Add support for SSLKEYLOGFILE #286

Closed as not planned
Closed as not planned

Description

@pcd1193182

Hey all,

rustls has support for the standard SSL key logging approach (useful when using Wireshark to analyze packet traces. However, hyper-rustls never configures the relevant field. As a result, it is very difficult to debug certain kinds of problems when TLS is in use. Would it be possible to expose this functionality, either by default or through the config builders? Thanks!

Activity

  1. djc commented on Sep 11, 2024

    @djc
    Member

    There is a From<(H, C)> impl for HttpsConnector that should be able to facilitate this use case. If you'd like a more ergonomic solution, we'd be open to a ConfigBuilderExt method for enabling KeyLogFile.

  2. cpu commented on Sep 17, 2024

    @cpu
    Member

    we'd be open to a ConfigBuilderExt method for enabling KeyLogFile.

    @pcd1193182 Would you be interested in writing a PR for this, or is the workaround described above sufficient for your needs?

  3. pcd1193182 commented on Sep 17, 2024

    @pcd1193182
    Author

    Thus far, the workaround is working for me. It would be nice if it was integrated natively into the ConfigBuilderExt, but it's definitely not critical.

  4. graves commented on Sep 7, 2025

    @graves

    This looked useful and like a simple addition so I implemented opened a PR here: #308

  5. djc commented on Sep 10, 2025

    @djc
    Member

    We decided we don't want to expose this API more than necessary, and it should already be necessary to use the functionality by converting an existing ClientConfig into a HttpsConnector as described above. Going to close this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions