Search This Blog

Tuesday, November 13, 2018

How to export and import GPG key pair

In exporting server:
gpg --export-ownertrust  > export-ownertrust
gpg --export -a "ad@i88.ca" > public.key
gpg --export-secret-key -a "ad@i88.ca" > private.key

In importing server:
gpg --allow-secret-key-import --import private.key
gpg  --import public.key
gpg  --import-ownertrust < export-ownertrust