[Pkg-gnupg-maint] Bug#497372: gpg -u only searches UIDs in secret keyring

Gerfried Fuchs rhonda at deb.at
Sat Nov 21 17:07:25 UTC 2009


	Hi!

 Sorry for the late response, it seems to have got drowned in my bugs
folder with other ones reported and bugs I'm responsible to clean up
myself. :)

* Daniel Leidert <daniel.leidert at wgdd.de> [2009-05-08 14:44:48 CEST]:
> I tried to reproduce your problem but failed. Can you please give me a short
> description of what exactly you did (which key, which UID, setup, ..) so I can
> try to "simulate" this locally.

 Create a key, --export-secret-key and import it on some other system,
create a UID there, and export the public key from that other system
into your local one.

> I'm especially confused by: "[..] -u only seems to want to take UIDs
> that are displayed through gpg --list-secret-keys [..]". An UID not
> shown there does not have a secret key.

 Erm, I think you are confusing some terms here. A UID itself doesn't
have any secret key anyway. A UID is attached to a key, and it seems
like it can both be attached to a public key and to a private key, but
signatures on files or decryption from something encrypted to a key is
in no way related to the UID.

> So how to sign with this key?

 Signing with the key works, and signing with a key is a signature that
involes the key itself, not a UID.

> I have problems understanding your setup (or how you think, gpg should work).

 gpg works, it's just that gpg doesn't find UIDs that are only on public
key for which the secret keys are available.

 Hope that clears up your understanding problem. :)
Rhonda





More information about the Pkg-gnupg-maint mailing list