"gpg --verbose --list-secret-keys" prints a lot of warning messages unrelated to secret keys
Closed, ResolvedPublic


--list-secret-keys works (i think) by iterating through all public keys and asking the agent whether a corresponding secret key exists.

Most users don't know (and shouldn't need to know) this implementation detail.

However, when doing --list-secret-keys --verbose on my own keyring, i see tons of messages like:

gpg: public key algorithm ELG not suitable for signing

even when they do not correspond to my secret keys. This is confusing, and leads users to report bugs and problems (i was just dealing with one such report on the #gnupg IRC channel).

For example, in a fresh GNUPGHOME, i've imported @werner's OpenPGP certificate:

There are no secret keys in this keyring at all, and yet:

0 dkg@alice:/tmp/cdtemp.q1pEEJ$ gpg --verbose --list-secret-keys
gpg: using pgp trust model
gpg: public key algorithm ELG not suitable for signing
0 dkg@alice:/tmp/cdtemp.q1pEEJ$

Related Objects

dkg created this task.Jul 15 2019, 5:17 PM
werner triaged this task as Low priority.Jul 16 2019, 8:29 AM
werner changed the task status from Open to Testing.Aug 23 2019, 12:55 PM

Fixed for 2.2.18. To allow seeing these warnings this change will only have an effect if a listing of all keys is requested.

werner lowered the priority of this task from Low to Wishlist.
werner closed this task as Resolved.Mon, Nov 25, 10:15 PM
werner claimed this task.