Advertisement
Guest User

Untitled

a guest
Jul 15th, 2017
489
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.03 KB | None | 0 0
  1. $ gpg --expert --gen-key
  2.  
  3. Your selection? 8
  4.  
  5. Your selection? s
  6.  
  7. Your selection? e
  8.  
  9. Your selection? q
  10.  
  11. What keysize do you want? (2048) 4096
  12. Key is valid for? (0) 3y
  13. Is this correct? (y/N)y
  14.  
  15. $ gpg --expert --edit-key john.doe@example.com
  16. gpg> addkey
  17.  
  18. Your selection? 8
  19. Your selection? e
  20. Your selection? q
  21.  
  22. What keysize do you want? (2048) 3072
  23. Key is valid for? (0) 6m
  24. Is this correct? (y/N)y
  25. Really create? (y/N) y
  26.  
  27. gpg> save
  28.  
  29. $ gpg -a --export-secret-key john.doe@example.com > secret_key
  30. $ gpg -a --gen-revoke john.doe@example.com > revocation_cert.gpg
  31.  
  32. $ gpg -a --export-secret-subkeys john.doe@example.com > secret_subkeys.gpg
  33. $ gpg --delete-secret-keys john.doe@example.com
  34. Delete this key from the keyring? (y/N) y
  35. This is a secret key! - really delete? (y/N) y
  36. $ gpg --import secret_subkeys.gpg
  37.  
  38. $ gpg -a --export-secret-keys john.doe@example.com > laptop_keys_secret.gpg
  39. $ gpg -a --export john.doe@example.com > laptop_keys_public.gpg
  40.  
  41. $ gpg --import laptop_keys_public.gpg
  42. $ gpg --import laptop_keys_secret.gpg
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement