Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # GPG Instructions
- Quick instructions on managing the creation, destruction, backup and recovery of your public and private keys using gpg
- #### Create keys
- ```bash
- gpg --generate-key
- ```
- #### Delete keys
- ```bash
- gpg --delete-secret-keys [KEY_ID]
- gpg --delete-keys [KEY_ID]
- ```
- #### Show keys
- ```bash
- gpg -k
- gpg --list-keys
- ```
- #### Export keys
- ```bash
- gpg -a --export-secret-keys mygorillacode@gmail.com > mygorillacode-private.key
- gpg -a --export mygorillacode@gmail.com > mygorillacode-public.key
- gpg --export-ownertrust > mygorillacode-ownertrust.txt
- ```
- #### Import keys
- ```bash
- gpg --import mygorillacode-private.key
- gpg --import mygorillacode-public.key
- gpg --import-ownertrust mygorillacode-ownertrust.txt
- ```
- #### Generate a Revocation Certificate
- In the event that you forget your passphrase or your keys are compromised
- ```bash
- gpg --output mygorillacode-revocation.cert --gen-revoke [KEY_NAME]
- ```
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement