Advertisement
Guest User

Untitled

a guest
Jul 6th, 2015
342
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. gpg --expert --gen-key
  2. (certify only)
  3. gpg --edit-key Alice
  4. addkey sign
  5. addkey encrypt
  6.  
  7. Now we have:
  8.  
  9. $ gpg -k
  10. /home/alice/.gnupg/pubring.gpg
  11. -------------------------------
  12. pub   4096R/DCAAB3AB 2015-07-06
  13. uid                  Alice
  14. sub   4096R/17A1DF65 2015-07-06
  15. sub   4096R/25FF3FEC 2015-07-06
  16.  
  17. and:
  18.  
  19. $ gpg -K
  20. /home/alice/.gnupg/secring.gpg
  21. -------------------------------
  22. sec   4096R/DCAAB3AB 2015-07-06
  23. uid                  Alice
  24. ssb   4096R/17A1DF65 2015-07-06
  25. ssb   4096R/25FF3FEC 2015-07-06
  26.  
  27. gpg --output=alice.primary.pub.key --armour --export Alice
  28. gpg --output=alice.primary.sec.key --armour --export-secret-keys Alice
  29. gpg --output=alice.sec.sub.keys --armour --export-secret-subkeys 17A1DF65! 25FF3FEC!
  30.  
  31. gpg --delete-secret-and-public-keys Alice
  32. gpg --import alice.sec.sub.keys && gpg --import alice.primary.pub.key
Advertisement
Advertisement
Advertisement
RAW Paste Data Copied
Advertisement