Add 'Moving or copying GPG keys'
commit
b22f2cc721
1 changed files with 21 additions and 0 deletions
21
Moving-or-copying-GPG-keys.md
Normal file
21
Moving-or-copying-GPG-keys.md
Normal file
|
@ -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
|
Loading…
Reference in a new issue