Skip to content

Instantly share code, notes, and snippets.

@AuHau
Last active June 28, 2021 16:10
Show Gist options
  • Save AuHau/58350e2f14c5fbf2bd12caed23384f01 to your computer and use it in GitHub Desktop.
Save AuHau/58350e2f14c5fbf2bd12caed23384f01 to your computer and use it in GitHub Desktop.
Steps on how to prolong my subkeys on Yubikey

PGP Subkey refresh for Yubikey

This is my workflow and might not be applicable to yours. I am not rotating subkeys but only extending their expiration.

  1. Boot to Tails
  2. Go to the place of backedup GPG folder and run export GNUPGHOME="$(pwd)"
  3. gpg --list-keys
  4. export KEY="<<KEYID>>"
  5. gpg --edit-key $KEY
  6. key 1 and repeat for 2 and 3
  7. expire and set the new expiration
  8. save
  9. gpg --output public.pub --armor --export $KEY
  10. Go to online machine
  11. gpg --import public.pub
  12. gpg --send-key $KEY
  13. Update website with new key
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment