Re: Error after secret key list.
Hi. Am Freitag, den 23.11.2018, 20:36 +0100 schrieb Werner Koch: > On Fri, 23 Nov 2018 18:56, dirk.gottschalk1...@googlemail.com said: > > > I saw the Listing in the debugging log. I tried this also. > > gpg -k does not show this message, but two messages regarding two > > keys, > > Hmmm, not easy to debug by mail. > > > gpg: bad data signature from key 2894CD20EE47166D: Wrong key usage > > (0x19, 0x2) > > That is bug we introduced in 2.2.10 or so which was fixed in > 2.2.11. It > is just wrong diagnostic. > > > Could this be the reason for this error message? > > No. Thanks to all for your help. Just to update you: I solved the problem by exporting the public keyring into a file, deleting pubring.kbx and re-importing the entire keyring. Not to mention that the problem fixed itself automagically. GnuPG reported one key less as imported than the keyring contained and the "dead bird" has been gone. Regards, Dirk -- Dirk Gottschalk Paulusstrasse 6-8 52064 Aachen, Germany GPG: DDCB AF8E 0132 AA54 20AB B864 4081 0B18 1ED8 E838 Keybase.io: https://keybase.io/dgottschalk GitHub: https://github.com/Dirk1980ac signature.asc Description: This is a digitally signed message part ___ Gnupg-users mailing list Gnupg-users@gnupg.org http://lists.gnupg.org/mailman/listinfo/gnupg-users
Re: Error after secret key list.
Hi, if you can compile a not too old gpg version, you might be able to apply this patch. It should show you the fingerprint of the cuplrit. --8<---cut here---start->8--- diff --git a/g10/keyid.c b/g10/keyid.c index a9034ee46..3694c26cc 100644 --- a/g10/keyid.c +++ b/g10/keyid.c @@ -975,7 +975,12 @@ keygrip_from_pk (PKT_public_key *pk, unsigned char *array) if (!gcry_pk_get_keygrip (s_pkey, array)) { - log_info ("error computing keygrip\n"); + char *hexfpr; + + hexfpr = hexfingerprint (pk, NULL, 0); + log_info ("error computing keygrip (fpr=%s)\n", hexfpr); + xfree (hexfpr); + memset (array, 0, 20); err = gpg_error (GPG_ERR_GENERAL); } --8<---cut here---end--->8--- Salam-Shalom, Werner -- Die Gedanken sind frei. Ausnahmen regelt ein Bundesgesetz. pgp2uyz7te0OO.pgp Description: PGP signature ___ Gnupg-users mailing list Gnupg-users@gnupg.org http://lists.gnupg.org/mailman/listinfo/gnupg-users
Re: Error after secret key list.
On Fri, 23 Nov 2018 18:56, dirk.gottschalk1...@googlemail.com said: > I saw the Listing in the debugging log. I tried this also. > gpg -k does not show this message, but two messages regarding two keys, Hmmm, not easy to debug by mail. > gpg: bad data signature from key 2894CD20EE47166D: Wrong key usage > (0x19, 0x2) That is bug we introduced in 2.2.10 or so which was fixed in 2.2.11. It is just wrong diagnostic. > Could this be the reason for this error message? No. Shalom-Salam, Werner -- Die Gedanken sind frei. Ausnahmen regelt ein Bundesgesetz. pgpTd0QDWJCFS.pgp Description: PGP signature ___ Gnupg-users mailing list Gnupg-users@gnupg.org http://lists.gnupg.org/mailman/listinfo/gnupg-users
Re: Error after secret key list.
Hello. Am Freitag, den 23.11.2018, 16:41 +0100 schrieb Werner Koch: > On Thu, 22 Nov 2018 16:38, gnupg-users@gnupg.org said: > > After listing the keys, gpg reports: gpg: error computing keygrip > Looks like you have a garbled key or one with an unknown encryption > algorithm. Not easy to pinpoint because that diagnostics comes from > the deep innards of gpg. > Do you see any error if you run gpg -k ? The secret key listing does > internally a listing of each public key and looks for a macthing > secret key. I saw the Listing in the debugging log. I tried this also. gpg -k does not show this message, but two messages regarding two keys, one from a person who is known as Werner Koch. Does anyone know this guy? ;) These are the messages I get: gpg: bad data signature from key 2894CD20EE47166D: Wrong key usage (0x19, 0x2) gpg: bad data signature from key A588F0D2ABD0CAF6: Wrong key usage (0x19, 0x8) I'm not gonna say you messed up your keys. I think, my .kbx is some kind of messed up. Or did you do nasty things to your key, for testing purposes? I don't think so. Could this be the reason for this error message? I'll delete your key and the other one from my key ring and re-import it from the servers. Probably this solves the problem. Deleting the keys re-importing them didn't solve the problem. Any hints? Thanks for your help. Regards, Dirk -- Dirk Gottschalk Paulusstrasse 6-8 52064 Aachen, Germany GPG: DDCB AF8E 0132 AA54 20AB B864 4081 0B18 1ED8 E838 Keybase.io: https://keybase.io/dgottschalk GitHub: https://github.com/Dirk1980ac signature.asc Description: This is a digitally signed message part ___ Gnupg-users mailing list Gnupg-users@gnupg.org http://lists.gnupg.org/mailman/listinfo/gnupg-users
Re: Error after secret key list.
On Thu, 22 Nov 2018 16:38, gnupg-users@gnupg.org said: > After listing the keys, gpg reports: gpg: error computing keygrip Looks like you have a garbled key or one with an unknown encryption algorithm. Not easy to pinpoint because that diagnostics comes from the deep innards of gpg. Do you see any error if you run gpg -k ? The secret key listing does internally a listing of each public key and looks for a macthing secret key. Salam-Shalom, Werner -- Die Gedanken sind frei. Ausnahmen regelt ein Bundesgesetz. pgpBDWbpl0HJq.pgp Description: PGP signature ___ Gnupg-users mailing list Gnupg-users@gnupg.org http://lists.gnupg.org/mailman/listinfo/gnupg-users
Re: Error after secret key list.
Hello Stefan. Am Donnerstag, den 22.11.2018, 17:22 +0100 schrieb Stefan Claas: > On Thu, 22 Nov 2018 16:38:39 +0100, Dirk Gottschalk via Gnupg-users > wrote: > Hi Dirk, > > Since today, I get a strange error at the end of the secret key > > list > > (gpg -K). > > > > After listing the keys, gpg reports: gpg: error computing keygrip > > > > Everything seems to work right. > > > > Unfortunately it does not tell me which key causes the error. > Maybe gpg -K -vvv tells you a little bit more (hopefully). Guess what I tried at first. :D No information in there. :( Regards, Dirk -- Dirk Gottschalk Paulusstrasse 6-8 52064 Aachen, Germany GPG: DDCB AF8E 0132 AA54 20AB B864 4081 0B18 1ED8 E838 Keybase.io: https://keybase.io/dgottschalk GitHub: https://github.com/Dirk1980ac signature.asc Description: This is a digitally signed message part ___ Gnupg-users mailing list Gnupg-users@gnupg.org http://lists.gnupg.org/mailman/listinfo/gnupg-users
Re: Error after secret key list.
On Thu, 22 Nov 2018 16:38:39 +0100, Dirk Gottschalk via Gnupg-users wrote: Hi Dirk, > Since today, I get a strange error at the end of the secret key list > (gpg -K). > > After listing the keys, gpg reports: gpg: error computing keygrip > > Everything seems to work right. > > Unfortunately it does not tell me which key causes the error. Maybe gpg -K -vvv tells you a little bit more (hopefully). Regards Stefan -- https://www.behance.net/futagoza https://keybase.io/stefan_claas pgpWm0QSdU2yA.pgp Description: Digitale Signatur von OpenPGP ___ Gnupg-users mailing list Gnupg-users@gnupg.org http://lists.gnupg.org/mailman/listinfo/gnupg-users
Error after secret key list.
Hello. Since today, I get a strange error at the end of the secret key list (gpg -K). After listing the keys, gpg reports: gpg: error computing keygrip Everything seems to work right. Unfortunately it does not tell me which key causes the error. Any hints what went wrong or how i can go for hinting the praobaly damaged key? Regards, Dirk -- Dirk Gottschalk Paulusstrasse 6-8 52064 Aachen, Germany GPG: DDCB AF8E 0132 AA54 20AB B864 4081 0B18 1ED8 E838 Keybase.io: https://keybase.io/dgottschalk GitHub: https://github.com/Dirk1980ac signature.asc Description: This is a digitally signed message part ___ Gnupg-users mailing list Gnupg-users@gnupg.org http://lists.gnupg.org/mailman/listinfo/gnupg-users