Skip to content

PGP Key Management

Import from backup

  1. Import master key from backup
gpg --import jon@jonwebb.dev.master.gpg
  1. Get keygrip of primary secret key (sec)
gpg --list-secret-keys --with-keygrip
  1. Delete secret key (sec), retaining signing and encryption secret subkeys (ssb) (“laptop” keypair)
sudo rm ~/.gnupg/private-keys-v1.d/${SECRET_KEY_KEYGRIP}.key
  1. Assign key trust
gpg --edit-key jon@jonwebb.dev

> trust # follow the prompt to set trust level (ultimate)
> quit