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

Add new handshake handler and keylog writer #56

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on Aug 21, 2022

  1. device: add new handshake handler and keylog writer

    This change adds support for a new environment variable 'WG_KEYLOGFILE'
    in resemblance to the 'SSLKEYLOGFILE' environment variable used by
    curl, Chrome & Firefox to log ephemeral TLS encryption keys
    
    When set, wireguard-go will log ephemeral keys generated during
    each handshake to a file specified by the environment variable in the
    WireGuard key log format.
    
    The format used is the same as then one generated by the
    extract-handshakes.sh script.
    
    See also:
    - https://git.zx2c4.com/wireguard-tools/tree/contrib/extract-handshakes
    - https://wiki.wireshark.org/WireGuard#key-log-format
    - https://everything.curl.dev/usingcurl/tls/sslkeylogfile
    
    Signed-off-by: Steffen Vogel <[email protected]>
    stv0g committed Aug 21, 2022
    Configuration menu
    Copy the full SHA
    aa784a9 View commit details
    Browse the repository at this point in the history