Add 'Moving or copying GPG keys'

Matej Focko 2022-03-13 13:56:23 +01:00
commit b22f2cc721

@ -0,0 +1,21 @@
# Moving or copying GPG keys
1. Export the keys
$ gpg --export-secret-keys -a > my_private_key.asc
$ gpg --export -a > my_public_key.asc
2. Import the keys
$ gpg --import my_private_key.asc
$ gpg --import my_public_key.asc
3. Trust the imported key
$ gpg --edit-key insert mail here
Command> trust
# trust ultimately
---
Source: https://www.phildev.net/pgp/gpg_moving_keys.html