Odd error

Robert J. Hansen rjh at sixdemonbag.org
Mon Nov 30 10:16:56 CET 2020


This should not be happening, but is.  From a completely clean 
installation, importation of legitimate OpenPGP keys results in strange 
general failures.  The system is an x64 Fedora 33 box running GnuPG 
2.2.24 on libgcrypt 1.8.6.

I'm happy to provide the keys.asc file to any GnuPG dev who needs it to 
look into this problem.

=====

[rjh at localhost ~]$ gpgconf --kill gpg-agent
[rjh at localhost ~]$ rm -rf .gnupg
[rjh at localhost ~]$ gpg --import Downloads/keys.asc
gpg: directory '/home/rjh/.gnupg' created
gpg: keybox '/home/rjh/.gnupg/pubring.kbx' created
gpg: /home/rjh/.gnupg/trustdb.gpg: trustdb created

[snip]

gpg: key 1DCBDC01B44427C7: public key "Robert J. Hansen 
<rjh at sixdemonbag.org>" imported
gpg: kbx: error computing keygrip
gpg: error writing keyring '/home/rjh/.gnupg/pubring.kbx': General error
gpg: error reading 'Downloads/keys.asc': General error
gpg: no valid OpenPGP data found.
gpg: import from 'Downloads/keys.asc' failed: General error
gpg: Total number processed: 5
gpg:               imported: 5
gpg: no ultimately trusted keys found

=====

Let's try again on a higher verbosity level.  (I have to say I saw 
nothing of use here.)

=====

[rjh at localhost ~]$ gpgconf --kill gpg-agent
[rjh at localhost ~]$ rm -rf .gnupg
[rjh at localhost ~]$ gpg -vvv --import Downloads/keys.asc
gpg: using character set 'utf-8'
gpg: directory '/home/rjh/.gnupg' created
gpg: keybox '/home/rjh/.gnupg/pubring.kbx' created
gpg: armor: BEGIN PGP PUBLIC KEY BLOCK
# off=0 ctb=99 tag=6 hlen=3 plen=269

[snipping successfully imported public keys]
[leaving in debugging lines from other GnuPG components]
[some data anonymized, because it's not mine]

gpg: pub  rsa2048/XXXXXXXXXXXXXXXX 2010-10-18  XXXXXXXX
gpg: writing to '/home/rjh/.gnupg/pubring.kbx'
gpg: /home/rjh/.gnupg/trustdb.gpg: trustdb created
gpg: using pgp trust model
gpg: key XXXXXXXXXXXXXXXX: public key "XXXXXXXX" imported
gpg: no running gpg-agent - starting '/usr/bin/gpg-agent'
gpg: waiting for the agent to come up ... (5s)
gpg: connection to agent established
gpg: pub  rsa2048/XXXXXXXXXXXXXXXX 2012-05-24  XXXXXXXX
gpg: writing to '/home/rjh/.gnupg/pubring.kbx'
gpg: key XXXXXXXXXXXXXXXX: public key "XXXXXXXX" imported
gpg: pub  rsa4096/XXXXXXXXXXXXXXXX 2013-09-13  XXXXXXXX
gpg: writing to '/home/rjh/.gnupg/pubring.kbx'
gpg: key XXXXXXXXXXXXXXXX: public key "XXXXXXXX" imported
gpg: pub  rsa4096/XXXXXXXXXXXXXXXX 2016-10-04  XXXXXXXX
gpg: writing to '/home/rjh/.gnupg/pubring.kbx'
# off=10553 ctb=99 tag=6 hlen=3 plen=397
:public key packet:
	version 4, algo 1, created 1437075659, expires 0
	pkey[0]: [3072 bits]
	pkey[1]: [17 bits]
	keyid: 1DCBDC01B44427C7
gpg: key XXXXXXXXXXXXXXXX: public key "XXXXXXXX" imported
# off=10953 ctb=b4 tag=13 hlen=2 plen=35
:user ID packet: "Robert J. Hansen <rob at enigmail.net>"
# off=10990 ctb=89 tag=2 hlen=3 plen=446
:signature packet: algo 1, keyid 1DCBDC01B44427C7
	version 4, created 1437078058, md5len 0, sigclass 0x13
	digest algo 8, begin of digest cf aa
	hashed subpkt 2 len 4 (sig created 2015-07-16)
	hashed subpkt 27 len 1 (key flags: 03)
	hashed subpkt 11 len 11 (pref-sym-algos: 10 13 9 12 8 11 7 4 3 1 2)
	hashed subpkt 21 len 5 (pref-hash-algos: 10 9 8 11 3)
	hashed subpkt 22 len 3 (pref-zip-algos: 3 1 2)
	hashed subpkt 30 len 1 (features: 01)
	hashed subpkt 23 len 1 (keyserver preferences: 80)
	subpkt 16 len 8 (issuer key ID 1DCBDC01B44427C7)
	data: [3070 bits]
# off=11439 ctb=89 tag=2 hlen=3 plen=540
:signature packet: algo 1, keyid DB1187B9DD5F693B
	version 4, created 1437210170, md5len 0, sigclass 0x13
	digest algo 10, begin of digest 8b 3c
	hashed subpkt 2 len 4 (sig created 2015-07-18)
	subpkt 16 len 8 (issuer key ID DB1187B9DD5F693B)
	data: [4095 bits]
# off=11982 ctb=b4 tag=13 hlen=2 plen=38
:user ID packet: "Robert J. Hansen <rjh at sixdemonbag.org>"
# off=12022 ctb=89 tag=2 hlen=3 plen=449
:signature packet: algo 1, keyid 1DCBDC01B44427C7
	version 4, created 1467479780, md5len 0, sigclass 0x13
	digest algo 8, begin of digest 34 63
	hashed subpkt 27 len 1 (key flags: 03)
	hashed subpkt 11 len 11 (pref-sym-algos: 10 13 9 12 8 11 7 4 3 1 2)
	hashed subpkt 21 len 5 (pref-hash-algos: 10 9 8 11 3)
	hashed subpkt 22 len 3 (pref-zip-algos: 3 1 2)
	hashed subpkt 30 len 1 (features: 01)
	hashed subpkt 23 len 1 (keyserver preferences: 80)
	hashed subpkt 2 len 4 (sig created 2016-07-02)
	hashed subpkt 25 len 1 (primary user ID)
	subpkt 16 len 8 (issuer key ID 1DCBDC01B44427C7)
	data: [3072 bits]
# off=12474 ctb=89 tag=2 hlen=3 plen=540
:signature packet: algo 1, keyid DB1187B9DD5F693B
	version 4, created 1437210170, md5len 0, sigclass 0x13
	digest algo 10, begin of digest a8 e5
	hashed subpkt 2 len 4 (sig created 2015-07-18)
	subpkt 16 len 8 (issuer key ID DB1187B9DD5F693B)
	data: [4096 bits]
# off=13017 ctb=b4 tag=13 hlen=2 plen=41
:user ID packet: "Robert J. Hansen <rob at hansen.engineering>"
# off=13060 ctb=89 tag=2 hlen=3 plen=446
:signature packet: algo 1, keyid 1DCBDC01B44427C7
	version 4, created 1467479729, md5len 0, sigclass 0x13
	digest algo 8, begin of digest 81 4e
	hashed subpkt 2 len 4 (sig created 2016-07-02)
	hashed subpkt 27 len 1 (key flags: 03)
	hashed subpkt 11 len 11 (pref-sym-algos: 10 13 9 12 8 11 7 4 3 1 2)
	hashed subpkt 21 len 5 (pref-hash-algos: 10 9 8 11 3)
	hashed subpkt 22 len 3 (pref-zip-algos: 3 1 2)
	hashed subpkt 30 len 1 (features: 01)
	hashed subpkt 23 len 1 (keyserver preferences: 80)
	subpkt 16 len 8 (issuer key ID 1DCBDC01B44427C7)
	data: [3071 bits]
# off=13509 ctb=b9 tag=14 hlen=3 plen=397
:public sub key packet:
	version 4, algo 1, created 1437075659, expires 0
	pkey[0]: [3072 bits]
	pkey[1]: [17 bits]
	keyid: DC0F82625FA6AADE
# off=13909 ctb=89 tag=2 hlen=3 plen=415
:signature packet: algo 1, keyid 1DCBDC01B44427C7
	version 4, created 1437075659, md5len 0, sigclass 0x18
	digest algo 8, begin of digest 60 5b
	hashed subpkt 2 len 4 (sig created 2015-07-16)
	hashed subpkt 27 len 1 (key flags: 0C)
	subpkt 16 len 8 (issuer key ID 1DCBDC01B44427C7)
	data: [3067 bits]
# off=14327 ctb=b8 tag=14 hlen=2 plen=51
:public sub key packet:
	version 4, algo 22, created 1491360583, expires 0
	pkey[0]: [80 bits] ed25519 (1.3.6.1.4.1.11591.15.1)
	pkey[1]: [263 bits]
	keyid: A83CAE94D3DC3873
# off=14380 ctb=89 tag=2 hlen=3 plen=511
:signature packet: algo 1, keyid 1DCBDC01B44427C7
	version 4, created 1491360583, md5len 0, sigclass 0x18
	digest algo 2, begin of digest 69 5a
	hashed subpkt 2 len 4 (sig created 2017-04-05)
	hashed subpkt 27 len 1 (key flags: 02)
	subpkt 16 len 8 (issuer key ID 1DCBDC01B44427C7)
	subpkt 32 len 94 (signature: v4, class 0x19, algo 22, digest algo 8)
	data: [3072 bits]
# off=14894 ctb=b8 tag=14 hlen=2 plen=56
:public sub key packet:
	version 4, algo 18, created 1491360897, expires 0
	pkey[0]: [88 bits] cv25519 (1.3.6.1.4.1.3029.1.5.1)
	pkey[1]: [263 bits]
	pkey[2]: [32 bits]
	keyid: AA24CC81B8AED08B
# off=14952 ctb=89 tag=2 hlen=3 plen=415
:signature packet: algo 1, keyid 1DCBDC01B44427C7
	version 4, created 1491360897, md5len 0, sigclass 0x18
	digest algo 2, begin of digest a1 8d
	hashed subpkt 2 len 4 (sig created 2017-04-05)
	hashed subpkt 27 len 1 (key flags: 0C)
	subpkt 16 len 8 (issuer key ID 1DCBDC01B44427C7)
	data: [3071 bits]
# off=15370 ctb=99 tag=6 hlen=3 plen=525

[resuming omission of other people's keys]

gpg: pub  rsa3072/1DCBDC01B44427C7 2015-07-16  Robert J. Hansen 
<rob at enigmail.net>
gpg: key 1DCBDC01B44427C7: 2 signatures not checked due to missing keys
gpg: writing to '/home/rjh/.gnupg/pubring.kbx'
gpg: key 1DCBDC01B44427C7: public key "Robert J. Hansen 
<rjh at sixdemonbag.org>" imported
gpg: pub  rsa4096/XXXXXXXXXXXXXXXX 2017-03-18  XXXXXXXX
gpg: writing to '/home/rjh/.gnupg/pubring.kbx'
gpg: kbx: error computing keygrip
gpg: error writing keyring '/home/rjh/.gnupg/pubring.kbx': General error
gpg: error reading 'Downloads/keys.asc': General error
gpg: no valid OpenPGP data found.
gpg: import from 'Downloads/keys.asc' failed: General error
gpg: Total number processed: 5
gpg:               imported: 5
gpg: 0 keys processed (0 validity counts cleared)
gpg: no ultimately trusted keys found



More information about the Gnupg-users mailing list