Skip to content

Latest commit

 

History

History
36 lines (24 loc) · 602 Bytes

gpg-move.md

File metadata and controls

36 lines (24 loc) · 602 Bytes

Move GPG keys and data

Export keys

# export all public keys
gpg -a --export > gpg-all-pubkeys.asc

# export a specific public key
gpg -a --export [key-id] > gpg-my-pubkey.asc

# export all secret keys
gpg -a --export-secret-keys > gpg-all-seckeys.asc

# export a specific secret key
gpg -a --export-secret-keys [key-id] > gpg-my-seckey.asc

Import keys

# import public/secret keys
gpg --import keys.asc

Export/import trust

# export trust settings
gpg --export-ownertrust > keytrust.txt

# import trust settings
gpg --import-ownertrust keytrust.txt