GPG (MingW32) defaults to revoked key/uid

Daniel Kahn Gillmor dkg at
Tue Feb 15 17:26:53 CET 2011

On 02/14/2011 09:59 AM, M. Henry wrote:
> Now, when I use gpg to look up a key by any part of a uid (for example when using --edit-
> key), it automatically selects the first-created _revoked_ key, not the sole non-revoked one. I 
> have tried revoking and deleting specific uids from the revoked keys, but this makes no 
> difference.

I think this discussion is relevant to your question:

which resulted in the following bug report:

Your best bet is to remove the old keys from your keyring entirely, so
that your preferred key is the first one in the output of gpg
--list-keys (if they get re-imported later, they'll show up later in the

i agree, this is a suboptimal situation, i'm just sharing the
workarounds that i've found.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 1030 bytes
Desc: OpenPGP digital signature
URL: </pipermail/attachments/20110215/32dc7318/attachment.pgp>

More information about the Gnupg-users mailing list