Adam Richardson's Site

GnuPG Notes

Table of Contents

<2023-07-26 Wed>

Importing a backed up secret

  • Obtain you backed up gpg key
  • Run gpg --import /path/to/secret-key-backup.asc
  • Restore gpg trust gpg --import-ownertrust < /path/to/trustdb-backup.txt
  • Verify everything looks right when you run gpg --list-secret-keys

Importing a public key

  • gpg --recv-keys --keyserver hkp://pgp.mit.edu <SOME_PUBLIC_KEY>

Default pinentry-mac to not save in keychain

  • defaults write org.gpgtools.common UseKeychain NO