See here: https://www.g-loaded.eu/2010/11/01/change-expiration-date-gpg-key/
- Need to figure out your key ID (check the recent commits you've made on GitHub, probably? Or use
gpg --list-secret-keys --keyid-format LONG
) gpg --edit-key ID_GOES_HERE
expire
- Set the expiration to whenever (1 year is probably fine)
save
- Check
gpg --list-keys
andgpg --list-secret-keys
to make sure the keys now have updated dates. - Delete the existing key (for work, you probably only have the one that's associated to your work email) in your GitHub GPG settings and re-generate a public key with
gpg --armor --export KEY_ID_HERE
. (If you try to upload the newly-renewed key without deleting the old key, GitHub won't let you upload it.) - Use that new public key to create a new key in GitHub's GPG settings.
- Everything should be gucci now, hurray!