Advertisement
Guest User

Untitled

a guest
Jun 10th, 2016
218
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.17 KB | None | 0 0
  1. gpg --gen-key
  2.  
  3. Please select what kind of key you want:
  4. (1) RSA and RSA (default)
  5. (2) DSA and Elgamal
  6. (3) DSA (sign only)
  7. (4) RSA (sign only)
  8.  
  9. What keysize do you want? (2048)
  10.  
  11. Key is valid for? (0)
  12.  
  13. You need a user ID to identify your key;
  14. the software constructs the user ID
  15. from the Real Name, Comment and Email Address in this form:
  16. "Name Title (some comment) <samplename@example.com>"
  17.  
  18. Real name: My Name
  19. Email address: example@email.com
  20. Comment: comment
  21. You selected this USER-ID:
  22. "My Name (comment) <example@email.com>"
  23.  
  24. You need a Passphrase to protect your secret key.
  25.  
  26. gpg: key XXXXXXXL marked as ultimately trusted
  27. public and secret key created and signed.
  28.  
  29. pub ABCDE/XXXXXXXL 2016-06-09
  30. Key fingerprint = XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXXL
  31. uid My Name (comment) <example@email.com>
  32. sub ABCDE/XXXXXXXM 2016-06-09
  33.  
  34. export GPGKEY=XXXXXXXM
  35.  
  36. killall -q gpg-agent
  37. eval $(gpg-agent --daemon)
  38. export GPGKEY=XXXXXXXM
  39.  
  40. gpg --cert-digest-algo=SHA256 --edit-key XXXXXXXM
  41.  
  42. Secret key is available.
  43.  
  44. pub ABCDE/XXXXXXXM created: 2016-06-09 expires: never usage: SC
  45. trust: ultimate validity: ultimate
  46. [ultimate] (1). My Name (comment) <example@email.com>
  47.  
  48. Command>
  49.  
  50. addkey
  51.  
  52. Please select what kind of key you want:
  53. (2) DSA (sign only)
  54. (4) Elgamal (encrypt only)
  55. (5) RSA (sign only)
  56. (6) RSA (encrypt only)
  57.  
  58. What keysize do you want? (2048)
  59.  
  60. Key is valid for? (0)
  61.  
  62. pub ABCDE/XXXXXXXL created: 2016-06-09 expires: never usage: SC
  63. trust: ultimate validity: ultimate
  64. sub ABCDE/XXXXXXXM created: 2016-06-09 expires: never
  65. sub ABCDE/XXXXXXXN created: 2016-06-09 expires: never usage: E
  66.  
  67. [ultimate] (1). My Name (comment) <example@email.com>
  68. Command>
  69.  
  70. save
  71.  
  72. gpg --list-keys
  73.  
  74. pub ABCDE/XXXXXXXL 2016-06-09
  75. uid My Name (comment) <example@email.com>
  76. sub ABCDE/XXXXXXXM 2016-06-09
  77. sub ABCDE/XXXXXXXN 2016-06-10
  78.  
  79. `gpg --list-secret-keys`
  80.  
  81. sec ABCDE/XXXXXXXL 2016-06-09
  82. uid My Name (comment) <example@email.com>
  83. sub ABCDE/XXXXXXXM 2016-06-09
  84. sub ABCDE/XXXXXXXN 2016-06-10
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement