github gitlab twitter mastodon linkedin instagram 500px email
GPG2 Keys cheatsheet
Nov 20, 2018
One minute read

Creating GPG Key

gpg2 --full-gen-key

Export private key

gpg2 --export-secret-keys --armor jqdoe@example.com > jqdoe-privkey.asc

Export public key

gpg2 --export --armor jqdoe@example.com > jqdoe-pubkey.asc

Export trustdb

gpg2 --export-ownertrust > otrust.txt

Import trustdb

gpg2 --import-ownertrust < otrust.txt

Update trustdb

gpg2 --update-trustdb

Import GPG keys

gpg2 --import < keys.asc

Back to posts