GnuPG User ID expiry

Werner Koch wk at gnupg.org
Thu Oct 1 17:57:47 CEST 2015


On Wed, 30 Sep 2015 05:37, dkg at fifthhorseman.net said:

> In the subprompt GnuPG provides, use "1" (or "2", etc) to select which
> user ID you want.  then use "expire" to change the expiration for that

Well, you can do that but gpg ignores it.  The expiration date is taken
from the primary user id and the "expire" command only works on that
user id.

For easier debugging I just checked in a feature to show only self
signatures:

  $ ../g10/gpg2 --edit-key 5DE249965B0358A2
  [...]
  gpg> check selfsig
  uid  Werner Koch <wk at gnupg.org>
  sig-3        5DE249965B0358A2 1999-03-15 never       [self-signature]
               [expires: 2005-12-31 17:52:41]
  sig!3        5DE249965B0358A2 1999-04-19 never       [self-signature]
               [expires: 2005-12-31 17:52:41]
  sig!3        5DE249965B0358A2 2004-03-21 never       [self-signature]
               [primary]
               [expires: 2009-07-11 18:07:36]
  sig!3        5DE249965B0358A2 1999-04-19 never       [self-signature]
               [expires: 2005-12-31 17:52:41]
  sig!3        5DE249965B0358A2 2005-04-10 never       [self-signature]
               [primary]
               [expires: 2009-07-11 18:07:36]
  sig!3        5DE249965B0358A2 2004-03-21 never       [self-signature]
               [primary]
               [expires: 2009-07-11 18:07:36]
  sig!3        5DE249965B0358A2 2004-03-21 never       [self-signature]
               [primary]
               [expires: 2009-07-11 18:07:36]
  sig!3        5DE249965B0358A2 2005-04-10 never       [self-signature]
               [primary]
               [expires: 2009-07-11 18:07:36]
  sig!3        5DE249965B0358A2 2007-08-05 never       [self-signature]*
               [primary]
               [expires: 2011-07-11 22:00:08]
  1 bad signature

Which shows that the 2007 selfsig is the used one.  The listing also
shows the primary flag and the exiration time from each signature and
thus shows the history of my key (preference and expiration changes).



Salam-Shalom,

   Werner

-- 
Die Gedanken sind frei.  Ausnahmen regelt ein Bundesgesetz.




More information about the Gnupg-users mailing list