UID ordering

David Shaw dshaw at jabberwocky.com
Thu May 3 13:57:28 CEST 2007


On Thu, May 03, 2007 at 01:01:01AM -0500, Alex Mauer wrote:
> David Shaw wrote:
> > 
> > No.  Like I said, there is a signature subpacket that tags the UID as
> > the primary one.  If you don't tag any UID, then GnuPG will sort the
> > most recent one first, but that doesn't make it primary.
> > 
> >> Also, if it's just a flag that says "this one is
> >> primary", what happens if different UIDs are set as primary on different
> >> keyrings, and then they're merged?
> > 
> > The most recent of the UIDs tagged as primary will be treated as the
> > "true" primary.
> 
> Hate to revive this old thread, but:
> So does gpg create UIDs marked as primary by default?  It seems that it
> does, since if I generate a new key, and then add a UID, the new UID is
> marked as primary.

It doesn't mark a UID as primary by default.  However, if there is no
UID marked as primary, then the most recently added UID is treated as
primary.

David



More information about the Gnupg-devel mailing list