From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id UG9sGn9RIGOyYQAAbAwnHQ (envelope-from ) for ; Tue, 13 Sep 2022 11:46:39 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id 6OxMGn9RIGNNSwAAauVa8A (envelope-from ) for ; Tue, 13 Sep 2022 11:46:39 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 250B99F89 for ; Tue, 13 Sep 2022 11:46:38 +0200 (CEST) Received: from localhost ([::1]:47040 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oY1ks-0005Wx-N0 for larch@yhetil.org; Tue, 13 Sep 2022 04:58:54 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:42906) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oY1kZ-0005Wn-4J for guix-science@gnu.org; Tue, 13 Sep 2022 04:58:35 -0400 Received: from wout1-smtp.messagingengine.com ([64.147.123.24]:48401) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oY1kW-0008Ke-PC; Tue, 13 Sep 2022 04:58:34 -0400 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.west.internal (Postfix) with ESMTP id 7A3E63200938; Tue, 13 Sep 2022 04:58:29 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Tue, 13 Sep 2022 04:58:29 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.net; h= cc:cc:content-type:date:date:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to; s=fm2; t=1663059508; x=1663145908; bh=OWffGbl+U2 6TqoXL4wv8zdujrSW9HFzsuI5ec8KxZcs=; b=R28C0wkvFK+//hDY0KD6+3PXhD J+aD4Jz9rRokw2eA604XONMIYRMrgS6Y/hWAue9+hIgW/MQO1jZjWy5FkixDVyuT lUuQ0VTaZOY0XzVdEarysfxft7MxtYcdimjXnzCO4W5Axf0cstLcR8jvx7orQGQJ pyA1i7xtC5FaY/9pr8R/7my+Fs5TtJaxI70/x1hh/3wi2K6ba0FxrOCV2KvEV2fH jp6jDi+iMXjy3DwBj8FoGss7a+R0rjO3F8/SVYBxr/28LhmAbSOxxDLyp9lhTg6S SAW0V4zt5XgrpAA8w5HlCVUlJZBYhgY7TP1rluy3/ws5lOVp6/tepk8uwbnw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:date:date:feedback-id :feedback-id:from:from:in-reply-to:in-reply-to:message-id :mime-version:references:reply-to:sender:subject:subject:to:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm2; t=1663059508; x=1663145908; bh=OWffGbl+U26TqoXL4wv8zdujrSW9 HFzsuI5ec8KxZcs=; b=WFz5sluRTpp3YU+aWdeYDEVBI+7poNs5lqyzvOH34Etv qGTsRiqY0bgzKuS+lSZpvInrXfU5XfHagsi97WSdmn58ZZPq6JCpAzpf3XXux9zt gLpfMPtQguImKfcWTPjgS2UMCOUsW65puiyFBzFaz8iVFnZhpjBbg3do0+RQsjgK QEWvsn1fqb4WmP9w00+oV013rvqcY2L0uihcWqGte/eivG02i7d2KeLXM+U0Oqls pFDW812un+V5NcsYEXxD5Gen6ChM7lK7AMHusdBAxb2P3UiA7204EiyNkJKuGu2K 3jRSw/XZVM2JpQ2GfpxKefMpPsx1IIKf2d9/BeL8sA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrfedugedgudduucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvvefujghffffkgggtsehttdertddttddtnecuhfhrohhmpefmohhnrhgr ugcujfhinhhsvghnuceokhhonhhrrggurdhhihhnshgvnhesfhgrshhtmhgrihhlrdhnvg htqeenucggtffrrghtthgvrhhnpefhudehiefgledujeetfeegkeeftdfghfetledtkeei geeuueehffetvdeiieeuheenucffohhmrghinhepkhhhihhnshgvnhdrnhgvthenucevlh hushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehkohhnrhgrugdr hhhinhhsvghnsehfrghsthhmrghilhdrnhgvth X-ME-Proxy: Feedback-ID: i184641e2:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 13 Sep 2022 04:58:28 -0400 (EDT) From: Konrad Hinsen To: Ludovic =?utf-8?Q?Court=C3=A8s?= Cc: guix-science@gnu.org Subject: Re: Help! I messed up guix-past In-Reply-To: <871qsgfwbt.fsf@gnu.org> References: <86v8pwo39x.fsf@gmail.com> <868rmr7e81.fsf@gmail.com> <87h71eypfo.fsf@gnu.org> <871qsgfwbt.fsf@gnu.org> Date: Tue, 13 Sep 2022 10:58:26 +0200 Message-ID: MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=64.147.123.24; envelope-from=konrad.hinsen@fastmail.net; helo=wout1-smtp.messagingengine.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guix-science@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-science-bounces+larch=yhetil.org@gnu.org Sender: "Guix-Science" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1663062399; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=OWffGbl+U26TqoXL4wv8zdujrSW9HFzsuI5ec8KxZcs=; b=gjJkiAA2bMFbq+Hgvm8t5c9YAZ7oqgl9g6fIABneRyX68imlIx05dIpUtlCY0oYmbA0sHK FPHCn42JEd6NPCwmVom9HlZPGbPZYe0LE/hu8IVHwSpcCNc6pyT6Lb9yhRdQgK8CWEukeS AF6C4f3RUNSFZJxRW3wmx7RPsNTHaDUmFxk4aKwFwj/tekNWV0t2/vDmRBdnvBcQE6dfOf Pq8uPYR/a8KfE4z/gfWtM957NQwpriQ458ss7XieCC2cQGPU0k96psWN747jRnDpR2XjxZ +bLNYzBevMkT1SJb4UPXnXcCKMz7PWySS3ix3lgfXz9n2gzVioOzrqTPzAbYPw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1663062399; a=rsa-sha256; cv=none; b=kaSXBlDztj9PeFjomJnEZC2554W/ydlune3NE2tIulcRmPJhr7s7271AvJkQgWbf1H7leB UE4HGriptDCl6NdSS+bc8PMqrR5Niig5BhF9ATctEyuFMxgaubmCq+cRpEprl1YQoEb24K 1aoAyGRjIqCA2zzY8ZhPJt3NynPNYGgMhMyf3D0jK+epx9X+2XPHHBoFNUK1LvPce/B8XJ nt74Kptmx/HiIM8MZlmFsXh1vgy/F3vgJU6YIZ2VQiGwaomCubGP1SaG4Di/UaidUvNDNH 60pPvMas3ykr+WZPP/gb8GsEdU6oY4UP0BHcV+VoQR1SLI19EqkkT3Ml0+cH0Q== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=fastmail.net header.s=fm2 header.b=R28C0wkv; dkim=fail ("headers rsa verify failed") header.d=messagingengine.com header.s=fm2 header.b=WFz5sluR; dmarc=fail reason="SPF not aligned (relaxed)" header.from=fastmail.net (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-science-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-science-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: 5.39 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=fastmail.net header.s=fm2 header.b=R28C0wkv; dkim=fail ("headers rsa verify failed") header.d=messagingengine.com header.s=fm2 header.b=WFz5sluR; dmarc=fail reason="SPF not aligned (relaxed)" header.from=fastmail.net (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-science-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-science-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 250B99F89 X-Spam-Score: 5.39 X-Migadu-Scanner: scn0.migadu.com X-TUID: Q4TlutFxwFO1 Hi Ludo, > Such keys cannot be accessed without knowing the passphrase, no matter > what software you use. I agree in theory, but practice disagree. The only other explanation I can see is that GnuPG has stored my password somewhere in the file system without me knowing about it. That isn't a reassuring explanation either. Demo: $ gpg --list-keys konrad.hinsen@cnrs.fr pub rsa4096 2018-06-11 [SC] 076A1D7B1EF77E068D2AC07CEC17F85277D7932C uid [ultimate] Konrad Hinsen (http://khinsen.net/) sub rsa4096 2018-06-11 [E] The "protection mode" of this key is openpgp-s2k3-sha1-aes-cbc (I looked it up in the key file, following the documentation you pointed to). $ echo 1 2 3 | gpg -r konrad.hinsen@cnrs.fr --encrypt --armor > counting.gpg $ gpg --decrypt counting.gpg gpg: WARNING: server 'gpg-agent' is older than us (2.2.19 < 2.2.32) gpg: Note: Outdated servers may lack important security fixes. gpg: Note: Use the command "gpgconf --kill all" to restart them. gpg: encrypted with 4096-bit RSA key, ID 8A9433D79D772795, created 2018-06-11 "Konrad Hinsen (http://khinsen.net/) " 1 2 3 I haven't typed in the key's password for a few months. The last time I did was before the update of GnuPG that broke everything for me. I have rebooted the machine many times since then. The same operation on a Debian server with no pinentry available (but the same keyring) yields: $ gpg --decrypt counting.gpg gpg: encrypted with 4096-bit RSA key, ID 8A9433D79D772795, created 2018-06-11 "Konrad Hinsen (http://khinsen.net/) " gpg: public key decryption failed: No pinentry gpg: decryption failed: No secret key which is what I would expect. And with a properly configured pinentry program, it asks for the password. Cheers, Konrad