Gentoo Archives: gentoo-user

From: thelma@×××××××××××.com
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] GPG problem
Date: Sun, 10 Jul 2022 16:08:48
Message-Id: 92a4a1b4-2c36-1542-b18f-0db3545845be@sys-concept.com
In Reply to: [gentoo-user] GPG problem by "wkuz@op.pl"
1 On 7/10/22 02:56, wkuz@××.pl wrote:
2 > Hello!
3 > Some time ago I have made a backup of my secret key and all the
4 > subkeys, and then deleted by-hand the master secret key by
5 >
6 > rm ~/.gnupg/private-keys-v1.d/[keygrip].key
7 >
8 > The subkeys were moved to a yubikey. Everything was great. Now I wanted
9 > to import my master key for a moment... and here we have a problem.
10 > Right now what happens, after running
11 >
12 > gpg --import secret_key.asc
13 >
14 > is:
15 >
16 > 1) gpg complains:
17 >
18 > gpg: key D444252908A80B6D: "sxrmn" not changed
19 > gpg: key D444252908A80B6D/D444252908A80B6D: error sending to
20 > agent: Invalid argument
21 > gpg: key D444252908A80B6D: secret key imported
22 > gpg: Total number processed: 1
23 > gpg: unchanged: 1
24 > gpg: secret keys read: 1
25 > gpg: secret keys unchanged: 1
26 >
27 > 2) gpg -K is aware of the master secret key, though it says it's not
28 > there:
29 >
30 > sec# ed25519 2022-07-06 [SC]
31 > 902404424B39514B6126A2F2D444252908A80B6D
32 > uid [ absolutne ] sxrmn
33 > ssb> cv25519 2022-07-06 [E]
34 > ssb> ed25519 2022-07-06 [S]
35 >
36 > 3) seret subkeys get imported (now they are back on yubikey, but they
37 > got imported OK)
38 >
39 > For reference, the exactly same file on FreeBSD gets imported with no
40 > errors at all. "diff" tells, that key exported from FreeBSD is no
41 > different from the one I try to import to Gentoo. Therefore I guess
42 > it's more a local GPG version problem than problem with the key.
43 > Strangely though I am trying to import the key generated on Gentoo, so
44 > it seems GPG can't import it's own child.
45 >
46 > There are however some version differences between FreeBSD and Gentoo.
47 >
48 > FreeBSD:
49 > $ gpg --version
50 > gpg (gnuPG) 2.3.3
51 > libgcrypt 1.9.4
52 > Copyright (c) 2021 Free Software Foundation, Inc.
53 > ....
54 >
55 > Gentoo:
56 > $ gpg --version
57 > gpg (GnuPG) 2.2.35
58 > libgcrypt 1.9.4-unknown
59 > Copyright (C) 2022 g10 Code GmbH
60 > ...
61 >
62 > So... any ideas why this happens and what can I do about it?
63 >
64
65 Did you make/or have a backup of your .gpg directory?
66
67 Run: gpg --list-secret-keys --with-keygrip
68 Does it show Keygrip =

Replies

Subject Author
Re: [gentoo-user] GPG problem "wkuz@××.pl" <wkuz@××.pl>