From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id CDE2D158094 for ; Sun, 10 Jul 2022 08:56:35 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id AF79EE09FB; Sun, 10 Jul 2022 08:56:28 +0000 (UTC) Received: from smtpo78.poczta.onet.pl (smtpo78.poczta.onet.pl [141.105.16.28]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id B81B3E09B8 for ; Sun, 10 Jul 2022 08:56:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=op.pl; s=2011; t=1657443382; bh=qVbXma6CIMPSjr5flf1AeY6QuE4B8ylyMspDp40e5P0=; h=Date:From:To:Subject:From; b=mBh7eznet+a287XQs2WKeEsFmE0/8FrsjdE7VEAcdWCiwM/lyiRt6zSj4ZwHJrr50 IoZteH5N/qAsBzthXyo8xH/GFYA8kuToDCP+SBCGnwmPw9KrXcjy9PuxYIz4G53Osd QhAP5Mz6Gim2W2rmeNihx+es8waadQlbI6P1uDqw= Date: Sun, 10 Jul 2022 10:56:18 +0200 From: "wkuz@op.pl" To: Gentoo User List Subject: [gentoo-user] GPG problem Message-ID: <20220710105618.5efc490a@op.pl> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply MIME-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_/W/czYvfm+ZGggeIb3aO=J4d"; protocol="application/pgp-signature"; micalg=pgp-sha256 X-ONET_PL-MDA-SEGREGATION: 0 X-Archives-Salt: 65c2ddf4-798e-45e3-9deb-5b5400e5471f X-Archives-Hash: d9072298bd9520cbb77252ca086cb395 --Sig_/W/czYvfm+ZGggeIb3aO=J4d Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Hello! Some time ago I have made a backup of my secret key and all the subkeys, and then deleted by-hand the master secret key by rm ~/.gnupg/private-keys-v1.d/[keygrip].key The subkeys were moved to a yubikey. Everything was great. Now I wanted to import my master key for a moment... and here we have a problem. Right now what happens, after running gpg --import secret_key.asc is: 1) gpg complains: gpg: key D444252908A80B6D: "sxrmn" not changed gpg: key D444252908A80B6D/D444252908A80B6D: error sending to agent: Invalid argument gpg: key D444252908A80B6D: secret key imported gpg: Total number processed: 1 gpg: unchanged: 1 gpg: secret keys read: 1 gpg: secret keys unchanged: 1 2) gpg -K is aware of the master secret key, though it says it's not there: sec# ed25519 2022-07-06 [SC] 902404424B39514B6126A2F2D444252908A80B6D uid [ absolutne ] sxrmn ssb> cv25519 2022-07-06 [E] ssb> ed25519 2022-07-06 [S] 3) seret subkeys get imported (now they are back on yubikey, but they got imported OK) For reference, the exactly same file on FreeBSD gets imported with no errors at all. "diff" tells, that key exported from FreeBSD is no different from the one I try to import to Gentoo. Therefore I guess it's more a local GPG version problem than problem with the key. Strangely though I am trying to import the key generated on Gentoo, so it seems GPG can't import it's own child. There are however some version differences between FreeBSD and Gentoo. FreeBSD: $ gpg --version gpg (gnuPG) 2.3.3 libgcrypt 1.9.4 Copyright (c) 2021 Free Software Foundation, Inc. .... Gentoo: $ gpg --version gpg (GnuPG) 2.2.35 libgcrypt 1.9.4-unknown Copyright (C) 2022 g10 Code GmbH ... So... any ideas why this happens and what can I do about it? --=20 xWK --Sig_/W/czYvfm+ZGggeIb3aO=J4d Content-Type: application/pgp-signature Content-Description: Podpis cyfrowy OpenPGP -----BEGIN PGP SIGNATURE----- iHUEAREIAB0WIQQDlhT0eXq9QZcYNDCwxtjiG5GR4gUCYsqUMgAKCRCwxtjiG5GR 4n2aAPkB5H0d8HTrv6HyfD680af1DF4+SYOHyP8736hhp51iLwD9HZLkdgi1COx9 y2v9BC/Qte0JZJBu+WqMukrPMBkkQio= =Pcjt -----END PGP SIGNATURE----- --Sig_/W/czYvfm+ZGggeIb3aO=J4d--