How to extend expiry date of Gnu Privacy Guard Keys (GPG/PGP) keys

When PGP/GPG keys expire, you have option to generate a sub key (if you think your key has been compromised), or you can extend the validity of the current key by extending it’s expiry period. You can extend the key’s expiry period since the keys are not compromised. To continue, Open a terminal window and enter following commands.

$ gpg --list-keys <enter>
Lists all public keys

$ gpg --list-secret-keys <enter>
Lists all secret keys

$ gpg --edit-key 0x21221AC8 <enter>
where 0x21221AC8 is the key ID of key 1

First, the public key.
gpg> key 1 <enter>
gpg> expire <enter>
Enter how long key should be valid

Then, the private key.
gpg> key 1 <enter>
gpg> expire <enter>
Enter how long the key used for encryption should be valid

gpg> save <enter>

Done. Don’t forget to publish it a key server. If you want to understand how GPG/PGP works, see this link http://www.askmeaboutlinux.com/?p=2914.

Leave a Reply

  

  

  

Blue Captcha Image
Refresh

*

June 2019
M T W T F S S
« Feb    
 12
3456789
10111213141516
17181920212223
24252627282930