setting expiration date changes primary UID (was: Re: GnuPG race causes misordered uids?

Werner Koch wk at
Tue May 27 10:31:02 CEST 2003

On Tue, 27 May 2003 06:29:39 +0200, Marcus Brinkmann said:

> key.  This reveals a completely unrelated bug in GPG.  Setting the
> expiration date of a key changes the primary UID!

Its a feature not a bug.  The primary UID is the one with the primary
uid flag set or in absence of this flag the UID with the newest
self-signature.  Changing the expiration time creates a new
self-signature using the current time.

  Nonviolence is the greatest force at the disposal of
  mankind. It is mightier than the mightiest weapon of
  destruction devised by the ingenuity of man. -Gandhi

More information about the Gnupg-devel mailing list