From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.zx2c4.com (lists.zx2c4.com [165.227.139.114]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 3CD6DC4332F for ; Sun, 16 Oct 2022 09:35:22 +0000 (UTC) Received: by lists.zx2c4.com (OpenSMTPD) with ESMTP id 2e024ac4; Sun, 16 Oct 2022 09:35:20 +0000 (UTC) Received: from mail.0l.de (mail.0l.de [2a09:11c0:200:101:5054:ff:fedc:4a29]) by lists.zx2c4.com (OpenSMTPD) with ESMTPS id d1c909de (TLSv1.3:AEAD-AES256-GCM-SHA384:256:NO) for ; Sun, 16 Oct 2022 09:35:16 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id 094E32088F37 for ; Sun, 16 Oct 2022 11:35:08 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=steffenvogel.de; s=dkim; t=1665912909; h=from:subject:date:message-id:to:mime-version:content-type: content-transfer-encoding:in-reply-to:references; bh=1oojnbpCqpP58hTXTHj68TAUwYOnDXxB7ws4ynxHTcw=; b=mpwIxW0CWerrjdZ0Hk9Kc85Ul/kemZiAKuA/aX3DDTuQvcOv/atCqI3Ml8WqP1JTfdgIZe dj0PAhLj5j7xuCjaQSMFraFMc6GgNG4RQgD4N/NQmRGnpeITWuQE8PLMVxEnark6VL37Q9 ypBxZ+L56mZe42PdxaMkuCFKIQYRq45vtRctt2aStPLEsGYi3Tmy2ACw2gIqhb5ZX5qUpZ BQk6RPxd8r26/kNCCWgMtM+m4agL13CQysrZfLByjloz88oCJ7WGjqCLvdRjzLOmG7IG0p j68FEoBc+buk8QR3xlmxL7kgGzEnywzwqN2FygbTgKndeCQEX3wJitJ0rlV5dw== User-Agent: Microsoft-MacOutlook/16.65.22091101 Date: Sun, 16 Oct 2022 11:35:04 +0200 Subject: Re: [PATCH] wireguard-go/device: add new handshake handler and keylog writer From: Steffen Vogel To: Message-ID: <146011B3-5B31-422C-B23E-3FC45969CA90@steffenvogel.de> Thread-Topic: [PATCH] wireguard-go/device: add new handshake handler and keylog writer References: <4d-63121e80-3-6ef3e80@7869515> In-Reply-To: <4d-63121e80-3-6ef3e80@7869515> Mime-version: 1.0 Content-type: text/plain; charset="UTF-8" Content-transfer-encoding: quoted-printable X-Last-TLS-Session-Version: TLSv1.2 X-BeenThere: wireguard@lists.zx2c4.com X-Mailman-Version: 2.1.30rc1 Precedence: list List-Id: Development discussion of WireGuard List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: wireguard-bounces@lists.zx2c4.com Sender: "WireGuard" Does somebody know who the current maintainer of wireguard-go is? My patch seems to be forgotten =E2=98=B9 =EF=BB=BFOn 04.09.22, 19:00, "WireGuard on behalf of Steffen Vogel" wrote: (This path is also tracked as PR: https://github.com/WireGuard/wireguar= d-go/pull/56) 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 post@steffenvogel.de