These are my own notes for my re-expiration of GPG keys.
sudo cryptsetup open /dev/sdb1 --type=tcrypt flashdrive
sudo mkdir -p /mnt/flashdrive
sudo mount /dev/mapper/flashdrive /mnt/flashdrive
export GNUPGHOME=/mnt/flashdrive/gnupg
gpg --edit-key 7A4F38C201F43F111C95A9E575481C55CEC8925D
gpg> expire
Choose 1y
, save and exit.
gpg --send-keys --keyserver hkp://pgp.surf.nl 75481C55CEC8925D
Wait a minute, then in another terminal (normal GNUPGHOME
) run:
gpg --refresh-keys --keyserver hkp://pgp.surf.nl 75481C55CEC8925D
Sometimes you have to send/recv specific keys. It'll work eventually.
- Push to S3
- Delete, re-add in GitHub:
gpg -a --export [email protected] | xclip -selection clipboard
If you extend the encryption subkey, you have to copy it:
gpg --list-secret-keys --keyid-format short
gpg --export-secret-keys 33868FEC! >ecryption.key
gpg --import ./encryption.key
schred ./ecryption.key