Gentoo Archives: gentoo-user

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

Replies

Subject Author
Re: [gentoo-user] GPG problem thelma@×××××××××××.com