597 B
597 B
Generate key
gpg --full-generate-key
Get Public Key
gpg --list-keys
gpg --armor --export <ID>
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