Guest User

Untitled

a guest
Nov 20th, 2018
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.15 KB | None | 0 0
  1. $ gpg --gen-key
  2. gpg (GnuPG) 1.4.5; Copyright (C) 2006 Free Software Foundation, Inc.
  3. This program comes with ABSOLUTELY NO WARRANTY.
  4. This is free software, and you are welcome to redistribute it
  5. under certain conditions. See the file COPYING for details.
  6.  
  7. Please select what kind of key you want:
  8. (1) DSA and Elgamal (default)
  9. (2) DSA (sign only)
  10. (5) RSA (sign only)
  11. Your selection? 1
  12. DSA keypair will have 1024 bits.
  13. ELG-E keys may be between 1024 and 4096 bits long.
  14. What keysize do you want? (2048)
  15. Requested keysize is 2048 bits
  16. Please specify how long the key should be valid.
  17. 0 = key does not expire
  18. = key expires in n days
  19. w = key expires in n weeks
  20. m = key expires in n months
  21. y = key expires in n years
  22. Key is valid for? (0) 0
  23. Key does not expire at all
  24. Is this correct? (y/N) y
  25.  
  26. You need a user ID to identify your key; the software constructs the user ID
  27. from the Real Name, Comment and Email Address in this form:
  28. "Heinrich Heine (Der Dichter) "
  29.  
  30. Real name: Repository Owner
  31. Email address: repository@example.org
  32. Comment:
  33. You selected this USER-ID:
  34. "Repository Owner "
  35.  
  36. Change (N)ame, (C)omment, (E)mail or (O)kay/(Q)uit? o
  37. You need a Passphrase to protect your secret key.
  38.  
  39. We need to generate a lot of random bytes. It is a good idea to perform
  40. some other action (type on the keyboard, move the mouse, utilize the
  41. disks) during the prime generation; this gives the random number
  42. generator a better chance to gain enough entropy.
  43. +++++.+++++++++++++++++++++++++..+++++...+++++++++++++++....++++++++++++++++++++....++++++++++++++++++++++++++++++..+++++..+++++++++++++++.++++++++++.+++++.........+++++
  44. We need to generate a lot of random bytes. It is a good idea to perform
  45. some other action (type on the keyboard, move the mouse, utilize the
  46. disks) during the prime generation; this gives the random number
  47. generator a better chance to gain enough entropy.
  48. +++++++++++++++++++++++++++++++++++++++++++++....+++++...+++++.+++++++++++++++..++++++++++++++++++++++++++++++.+++++++++++++++....+++++..+++++...+++++++++++++++..+++++>++++++++++>+++++>+++++.............<+++++....>.+++++..............+++++^^^
  49. gpg: key 79E7E0DB marked as ultimately trusted
  50. public and secret key created and signed.
  51.  
  52. gpg: checking the trustdb
  53. gpg: 3 marginal(s) needed, 1 complete(s) needed, classic trust model
  54. gpg: depth: 0 valid: 2 signed: 13 trust: 0-, 0q, 0n, 0m, 0f, 2u
  55. gpg: depth: 1 valid: 13 signed: 2 trust: 13-, 0q, 0n, 0m, 0f, 0u
  56. gpg: next trustdb check due at 2007-12-31
  57. pub 1024D/79E7E0DB 2007-10-08
  58. Key fingerprint = 5ACE 5EBF ED46 BAF7 93BD 8F02 E0BB DB6B 79E7 E0DB
  59. uid Repository Owner
  60. sub 2048g/04F5FDBA 2007-10-08
  61.  
  62. %_signature gpg
  63. %_gpg_name Repository Owner
  64.  
  65. $ rpm --resign sabayon-2.12.1-1.src.rpm
  66. Enter pass phrase:
  67. Pass phrase is good.
  68. sabayon-2.12.1-1.src.rpm:
  69.  
  70. $ rpm -K sabayon-2.12.1-1.src.rpm
  71. sabayon-2.12.1-1.src.rpm: (SHA1) DSA sha1 md5 (GPG) NOT OK (MISSING KEYS: GPG#79e7e0db)
  72.  
  73. $ gpg --export -a "Repository Owner " >RPM-GPG-KEY-example.com
  74.  
  75. $ rpm --import RPM-GPG-KEY-example.com
  76.  
  77. $ rpm -q gpg-pubkey-*
  78. gpg-pubkey-f51839ac-46362566
  79. gpg-pubkey-b2980b13-3c1d0597
  80. gpg-pubkey-44cb93fd-4a68c9c4
Add Comment
Please, Sign In to add comment