Page MenuHome GnuPG

--recv-keys of multiple keys yields misleading output if one of the requested keyIDs is not available on the requested server
Closed, InvalidPublic

Description

Requesting a single keyID works fine if that key exists on the server:

> gpg --recv-keys 0xA197DF6B6AE1EF56
...
gpg: Anzahl insgesamt bearbeiteter Schlüssel: 1
gpg:                             unverändert: 1

Requesting a single keyID yields an UNCLEAR error if that key does not exist on the server (IMHO it should read "no such key found" or similar):

> gpg --recv-keys 0xD9E286C65EE3393F
gpg: Empfangen vom Schlüsselserver fehlgeschlagen: Keine Daten

But if one requests multiple keyIDs, the output is just weird/wrong:

C:\Users\Olav>gpg --recv-keys 0xA197DF6B6AE1EF56, 0xCD05C2F196873BE6, 0xD9E286C65EE3393F
gpg: "0xA197DF6B6AE1EF56," ist keine Schlüssel-ID: überspringe
gpg: "0xCD05C2F196873BE6," ist keine Schlüssel-ID: überspringe
gpg: Empfangen vom Schlüsselserver fehlgeschlagen: Keine Daten

(This is GnuPG 2.2.4 (GPG4win 3.0.3) on W10Pro64bit.)

Details

Version
2.2.4

Event Timeline

It turned out to be a bug in Enigmail. The "," in the key list s wrong.