Change PGP Key Expiration Date

  • Boot into Tails with Persistent Storage unlocked

  • Open Terminal

  • Set KEYID to full fingerprint of primary

    KEYID="E3F7F5F76640299C5507FBAA49B9FD3BB4422EBB"
    
  • Set new expire date on primary key

    gpg --quick-set-expire $KEYID 2025-01-01
    
  • Set new expire date on all subkeys

    gpg --quick-set-expire $KEYID 2025-01-01 '*'
    

    Note: if you're letting one or more subkeys expire, instead of '*' specify the full fingerprint of each subkey whose expiration date you DO want to change.

  • Export PUBLIC key again.

    • wherever/however you exported the key when creating it

    • secret keys do not change, so they don't need to be backed up again