Advertisement
Guest User

Untitled

a guest
Apr 24th, 2017
587
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.90 KB | None | 0 0
  1. # GPG Instructions
  2.  
  3. Quick instructions on managing the creation, destruction, backup and recovery of your public and private keys using gpg
  4.  
  5. #### Create keys
  6.  
  7. ```bash
  8. gpg --generate-key
  9. ```
  10.  
  11. #### Delete keys
  12.  
  13. ```bash
  14. gpg --delete-secret-keys [KEY_ID]
  15. gpg --delete-keys [KEY_ID]
  16. ```
  17.  
  18. #### Show keys
  19.  
  20. ```bash
  21. gpg -k
  22. gpg --list-keys
  23. ```
  24.  
  25. #### Export keys
  26.  
  27. ```bash
  28. gpg -a --export-secret-keys mygorillacode@gmail.com > mygorillacode-private.key
  29. gpg -a --export mygorillacode@gmail.com > mygorillacode-public.key
  30. gpg --export-ownertrust > mygorillacode-ownertrust.txt
  31. ```
  32.  
  33. #### Import keys
  34.  
  35. ```bash
  36. gpg --import mygorillacode-private.key
  37. gpg --import mygorillacode-public.key
  38. gpg --import-ownertrust mygorillacode-ownertrust.txt
  39. ```
  40.  
  41. #### Generate a Revocation Certificate
  42.  
  43. In the event that you forget your passphrase or your keys are compromised
  44.  
  45. ```bash
  46. gpg --output mygorillacode-revocation.cert --gen-revoke [KEY_NAME]
  47. ```
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement