import of GPG key doesn't work and doesn't give an error message

Marco Moock mm at dorfdsl.de
Sun Nov 17 08:25:54 CET 2024


Am 16.11.2024 um 17:34:31 Uhr schrieb Robert J. Hansen via Gnupg-users:

> > It won't be listed by --list-keys and doesn't give an error
> > message.  
> 
> It does, in fact.

It doesn't, on my machine, which I want to investigate further.

> rjh at sarah ~ % gpg --recv-keys
> 0x020898F03962F8B76B42D9F1E805C860F0E3CCB5 --verbose
> gpg: Note: '--verbose' is not considered an option
> gpg: "--verbose" not a key ID: skipping
> gpg: key E805C860F0E3CCB5: no user ID
> gpg: Total number processed: 1

I dong see those line starting with gpg: when running the same command.

> "--verbose" needs to come before any commands. That's why you're not 
> seeing verbose output.

I now put it at the beginning, but still no output at all.
$? is zero, which is strange if the key is broken and won't be imported.

> The reason why you're not importing the certificate is because the 
> certificate is corrupt or malformed.  According to the OpenPGP 
> specification, a certificate must have at least one user ID.  This 
> certificate has no user IDs, which means it's garbage data and GnuPG
> is doing the right thing by not importing a corrupt or malformed
> certificate.

Thanks!
I will contact the user.

-- 
Gruß
Marco

Send unsolicited bulk mail to 1731774871muell at cartoonies.org



More information about the Gnupg-users mailing list