Cambio de vencimiento

Buscar llave a modificar:

$ gpg --list-keys liquidat@example.com
  pub   2048R/ABCDEF12 2012-09-10 [expires: 2032-09-10]
  uid                  liquidat <liquidat@example.com>
  sub   2048R/BCDEF123 2012-09-10 [expires: 2032-09-10]]

Editar llave y modificar:

$ gpg --edit-key ABCDEF12
  gpg (GnuPG) 1.4.12; Copyright (C) 2012 Free Software Foundation, Inc.
  This is free software: you are free to change and redistribute it.
  There is NO WARRANTY, to the extent permitted by law.

  Secret key is available.

  pub  2048R/ABCDEF12  created: 2012-09-10  expires: 2013-09-10  usage: SC
                       trust: ultimate      validity: ultimate
  sub  2048R/BCDEF123  created: 2012-09-10  expires: 2013-09-10  usage: E  
  [ultimate] (1). liquidat <liquidat@example.com>

  gpg> expire
  Changing expiration time for the primary key.
  Please specify how long the key should be valid.
           0 = key does not expire
        <n>  = key expires in n days
        <n>w = key expires in n weeks
        <n>m = key expires in n months
        <n>y = key expires in n years
  Key is valid for? (0) 3y
  Key expires at Fri May  6 15:45:42 2016 CEST
  Is this correct? (y/N) y

  You need a passphrase to unlock the secret key for
  user: "liquidat <liquidat@example.com>"
  2048-bit RSA key, ID ABCDEF12, created 2012-09-10

  gpg> list
  pub  2048R/ABCDEF12  created: 2012-09-10  expires: 2016-09-10  usage: SC
                       trust: ultimate      validity: ultimate
  sub  2048R/BCDEF123  created: 2012-09-10  expires: 2013-09-10  usage: E  
  [ultimate] (1). liquidat <liquidat@example.com>

  gpg> key 1
  pub  2048R/ABCDEF12  created: 2012-09-10  expires: 2016-09-10  usage: SC
                       trust: ultimate      validity: ultimate
  sub*  2048R/BCDEF123  created: 2012-09-10  expires: 2013-09-10  usage: E  
  [ultimate] (1). liquidat <liquidat@example.com>

  gpg> expire

  Changing expiration time for a subkey.
  Please specify how long the key should be valid.
           0 = key does not expire
        <n>  = key expires in n days
        <n>w = key expires in n weeks
        <n>m = key expires in n months
        <n>y = key expires in n years
  Key is valid for? (0) 3y
  Key expires at Fri May  6 15:45:42 2016 CEST
  Is this correct? (y/N) y

  You need a passphrase to unlock the secret key for
  user: "liquidat <liquidat@example.com>"
  2048-bit RSA key, ID BCDEF123, created 2012-09-10

  gpg> list
  pub  2048R/ABCDEF12  created: 2012-09-10  expires: 2016-09-10  usage: SC
                       trust: ultimate      validity: ultimate
  sub  2048R/BCDEF123  created: 2012-09-10  expires: 2016-09-10  usage: E  
  [ultimate] (1). liquidat <liquidat@example.com>

  gpg> save

Subier al keyserver:

$ gpg --keyserver pgp.mit.edu --send-keys ABCDEF12
gpg: sending key ABCDEF12 to hkp server pgp.mit.edu