Extend the expiration of a GPG key

When I created my GPG key I gave it an expiration date. That date came and went and now my key was unusable. I had two options, create a new key, or extend the expiration of the original key. Here is how to extend the expiration of your GPG key:

gpg --edit-key email@domain.com

Set the expire date to whatever you want the new expiration date to be. Then you have to change the expiration of your secret key (sub key #1)

key 1

Set an appropriate date, and make sure to save your key before you exit. The part that I was missing was editting the subkey.

Leave A Reply
All content licensed under the Creative Commons License