====== GNUpg ====== ===== 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 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 gpg> expire Changing expiration time for the primary key. Please specify how long the key should be valid. 0 = key does not expire = key expires in n days w = key expires in n weeks m = key expires in n months 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 " 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 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 gpg> expire Changing expiration time for a subkey. Please specify how long the key should be valid. 0 = key does not expire = key expires in n days w = key expires in n weeks m = key expires in n months 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 " 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 gpg> save Subir al keyserver: $ gpg --keyserver pgp.mit.edu --send-keys ABCDEF12 gpg: sending key ABCDEF12 to hkp server pgp.mit.edu * Ref [[https://liquidat.wordpress.com/2013/05/07/howto-changing-the-expiry-date-of-gpg-keys/|How changing the expiry date of gpg keys]]