system/notes/gpg.md

526 B

Generate key

gpg --full-generate-key

GnuPG Backup

References:

Export keys

gpg --export --export-options backup --output public.gpg
gpg --export-secret-keys --export-options backup --output private.gpg
gpg --export-ownertrust > trust.gpg

Import keys

gpg --import public.gpg
gpg --import private.gpg
gpg --import-ownertrust trust.gpg

Verify

gpg --list-secret-keys --keyid-format long