GnuPG 2.1.6: Failure with using fingerprint for expired key

Patrick Brunschwig patrick at enigmail.net
Sun Jul 26 11:31:44 CEST 2015


I just found the following error with GnuPG 2.1.6 (I didn't try older
versions):

If I run the following command for an expired key (example with
Bernhard's old key), GnuPG will run into an endless loop and needs to be
killed:

> gpg2 --status-fd 2 -e -r 0xC17B4E355CF2C8022295C2FF87D6A0DDDA4A1116
[GNUPG:] KEYEXPIRED 1359650467
[GNUPG:] KEYEXPIRED 1359650467
[GNUPG:] KEYEXPIRED 1359650467
[GNUPG:] KEYEXPIRED 1359650467
[GNUPG:] KEYEXPIRED 1359650467
[GNUPG:] KEYEXPIRED 1359650467
[GNUPG:] KEYEXPIRED 1359650467
(this will continue forever)

Using the same command with the short key specification work correctly:

> gpg2 --status-fd 2 -e -r 0xDA4A1116

[GNUPG:] KEYEXPIRED 1359650467
[GNUPG:] KEYEXPIRED 1359650467
[GNUPG:] KEYEXPIRED 1359650467
[GNUPG:] KEYEXPIRED 1359650467
gpg: 0xDA4A1116: skipped: Unusable public key
[GNUPG:] INV_RECP 0 0xDA4A1116
gpg: [stdin]: encryption failed: Unusable public key


-Patrick

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: </pipermail/attachments/20150726/692a6226/attachment.sig>


More information about the Gnupg-devel mailing list