SHARE
TWEET

Untitled

a guest Sep 29th, 2019 85 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. root@vagrant-ubuntu-trusty-64:~/.gnupg# gpg2 --card-edit
  2.  
  3. gnupg-pkcs11-scd[3398.1442064192]: Listening to socket '/tmp/gnupg-pkcs11-scd.x4dYTZ/agent.S'
  4. gnupg-pkcs11-scd[3398]: chan_5 -> OK PKCS#11 smart-card server for GnuPG ready
  5. gnupg-pkcs11-scd[3398]: chan_5 <- GETINFO socket_name
  6. gnupg-pkcs11-scd[3398]: chan_5 -> D /tmp/gnupg-pkcs11-scd.x4dYTZ/agent.S
  7. gnupg-pkcs11-scd[3398]: chan_5 -> OK
  8. gnupg-pkcs11-scd[3398]: chan_5 <- SERIALNO openpgp
  9. gnupg-pkcs11-scd[3398]: chan_5 -> S SERIALNO D2760001240111111111111111111111 0
  10. gnupg-pkcs11-scd[3398]: chan_5 -> OK
  11. gnupg-pkcs11-scd[3398]: chan_5 <- SERIALNO openpgp
  12. gnupg-pkcs11-scd[3398]: chan_5 -> S SERIALNO D2760001240111111111111111111111 0
  13. gnupg-pkcs11-scd[3398]: chan_5 -> OK
  14. gnupg-pkcs11-scd[3398]: chan_5 <- LEARN --force
  15. gnupg-pkcs11-scd[3398]: chan_5 -> S SERIALNO D2760001240111111111111111111111 0
  16. gnupg-pkcs11-scd[3398]: chan_5 -> S APPTYPE PKCS11
  17. gnupg-pkcs11-scd[3398]: chan_5 -> S KEY-FRIEDNLY BEDF773D43C5B817E5B7DA164DA6DF21B9F44C2A /C=ru/ST=lenoblast/L=saint peterburg/O=russian post/OU=it/CN=russianpost.ru/emailAddress=sept_29@pochta.ru on rutoken_blue
  18. gnupg-pkcs11-scd[3398]: chan_5 -> S KEY-FPR 3 BEDF773D43C5B817E5B7DA164DA6DF21B9F44C2A
  19. gnupg-pkcs11-scd[3398]: chan_5 -> S KEYPAIRINFO BEDF773D43C5B817E5B7DA164DA6DF21B9F44C2A Aktiv\x20Co\x2E/Rutoken\x20ECP/35715afc/rutoken_blue/01
  20. gnupg-pkcs11-scd[3398]: chan_5 -> OK
  21. gnupg-pkcs11-scd[3398]: chan_5 <- GETATTR KEY-ATTR
  22. gnupg-pkcs11-scd[3398]: chan_5 -> S KEY-ATTR 1 1 1 2048 0
  23. gnupg-pkcs11-scd[3398]: chan_5 -> S KEY-ATTR 2 1 1 2048 0
  24. gnupg-pkcs11-scd[3398]: chan_5 -> S KEY-ATTR 3 1 1 2048 0
  25. gnupg-pkcs11-scd[3398]: chan_5 -> OK
  26. Application ID ...: D2760001240111111111111111111111
  27. Version ..........: 11.11
  28. Manufacturer .....: unknown
  29. Serial number ....: 11111111
  30. Name of cardholder: [not set]
  31. Language prefs ...: [not set]
  32. Sex ..............: unspecified
  33. URL of public key : [not set]
  34. Login data .......: [not set]
  35. Signature PIN ....: forced
  36. Key attributes ...: 1R 1R 1R
  37. Max. PIN lengths .: 0 0 0
  38. PIN retry counter : 0 0 0
  39. Signature counter : 0
  40. Signature key ....: [none]
  41. Encryption key....: [none]
  42. Authentication key: BEDF 773D 43C5 B817 E5B7  DA16 4DA6 DF21 B9F4 4C2A
  43. General key info..: [none]
  44.  
  45. gpg/card> admin
  46. Admin commands are allowed
  47.  
  48. gpg/card> generate
  49. gnupg-pkcs11-scd[3398]: chan_5 <- GETATTR SERIALNO
  50. gnupg-pkcs11-scd[3398]: chan_5 -> S SERIALNO D2760001240111111111111111111111 0
  51. gnupg-pkcs11-scd[3398]: chan_5 -> OK
  52. gnupg-pkcs11-scd[3398]: chan_5 <- GETATTR KEY-FPR
  53. gnupg-pkcs11-scd[3398]: chan_5 -> S SERIALNO D2760001240111111111111111111111 0
  54. gnupg-pkcs11-scd[3398]: chan_5 -> S APPTYPE PKCS11
  55. gnupg-pkcs11-scd[3398]: chan_5 -> S KEY-FRIEDNLY BEDF773D43C5B817E5B7DA164DA6DF21B9F44C2A /C=ru/ST=lenoblast/L=saint peterburg/O=russian post/OU=it/CN=russianpost.ru/emailAddress=sept_29@pochta.ru on rutoken_blue
  56. gnupg-pkcs11-scd[3398]: chan_5 -> S KEY-FPR 3 BEDF773D43C5B817E5B7DA164DA6DF21B9F44C2A
  57. gnupg-pkcs11-scd[3398]: chan_5 -> S KEYPAIRINFO BEDF773D43C5B817E5B7DA164DA6DF21B9F44C2A Aktiv\x20Co\x2E/Rutoken\x20ECP/35715afc/rutoken_blue/01
  58. gnupg-pkcs11-scd[3398]: chan_5 -> OK
  59. gnupg-pkcs11-scd[3398]: chan_5 <- GETATTR CHV-STATUS
  60. gnupg-pkcs11-scd[3398]: chan_5 -> S CHV-STATUS 1 1 1 1 1 1 1
  61. gnupg-pkcs11-scd[3398]: chan_5 -> OK
  62. gnupg-pkcs11-scd[3398]: chan_5 <- GETATTR DISP-NAME
  63. gnupg-pkcs11-scd[3398]: chan_5 -> S DISP-NAME PKCS#11
  64. gnupg-pkcs11-scd[3398]: chan_5 -> OK
  65. gnupg-pkcs11-scd[3398]: chan_5 <- GETATTR EXTCAP
  66. gnupg-pkcs11-scd[3398]: chan_5 -> S EXTCAP gc=0 ki=0 fc=0 pd=0 mcl3=2048 aac=0 sm=0
  67. gnupg-pkcs11-scd[3398]: chan_5 -> S EXTCAP gc=0 ki=0 fc=0 pd=0 mcl3=2048 aac=0 sm=0
  68. gnupg-pkcs11-scd[3398]: chan_5 -> S EXTCAP gc=0 ki=0 fc=0 pd=0 mcl3=2048 aac=0 sm=0
  69. gnupg-pkcs11-scd[3398]: chan_5 -> OK
  70. gnupg-pkcs11-scd[3398]: chan_5 <- GETATTR KEY-ATTR
  71. gnupg-pkcs11-scd[3398]: chan_5 -> S KEY-ATTR 1 1 1 2048 0
  72. gnupg-pkcs11-scd[3398]: chan_5 -> S KEY-ATTR 2 1 1 2048 0
  73. gnupg-pkcs11-scd[3398]: chan_5 -> S KEY-ATTR 3 1 1 2048 0
  74. gnupg-pkcs11-scd[3398]: chan_5 -> OK
  75.  
  76. gpg: NOTE: keys are already stored on the card!
  77.  
  78. Replace existing keys? (y/N) y
  79. gnupg-pkcs11-scd[3398]: chan_5 <- CHECKPIN D2760001240111111111111111111111
  80. gnupg-pkcs11-scd[3398]: chan_5 -> OK
  81. Please specify how long the key should be valid.
  82.          0 = key does not expire
  83.       <n>  = key expires in n days
  84.       <n>w = key expires in n weeks
  85.       <n>m = key expires in n months
  86.       <n>y = key expires in n years
  87. Key is valid for? (0) 0
  88. Key does not expire at all
  89. Is this correct? (y/N) y
  90.  
  91. GnuPG needs to construct a user ID to identify your key.
  92.  
  93. Real name: alexander
  94. Email address: sept_29@pochta.ru
  95. Comment: sss
  96. You selected this USER-ID:
  97.     "alexander (sss) <sept_29@pochta.ru>"
  98.  
  99. Change (N)ame, (C)omment, (E)mail or (O)kay/(Q)uit? O
  100. gnupg-pkcs11-scd[3398]: chan_5 <- GENKEY --timestamp=20190929T143836 --force 1
  101. gnupg-pkcs11-scd[3398]: chan_5 -> S KEY-FPR BEDF773D43C5B817E5B7DA164DA6DF21B9F44C2A
  102. gnupg-pkcs11-scd[3398]: chan_5 -> S KEY-CREATED-AT 1569767916
  103. gnupg-pkcs11-scd[3398]: chan_5 -> S SERIALNO D2760001240111111111111111111111 0
  104. gnupg-pkcs11-scd[3398]: chan_5 -> S KEY-DATA n 00C73E5752EBA6BD116D3610F356DB15317C4068F5C222D39242D3C2579DDE815CD18A48B1A0B3AB8AA426135317F9FD083D0FDAD67BFE44B0E9F869FF7E63C147CE6EFA9C701B4313F918600F942B74289EA11F7790399FAA6DDE0BDF6120E59A7F2150D28B1A9BBB0C57E2EBC9B3A0BDCF5E7EF041800A76D4E67BED9697143126E0B3E9F04B784E5C733D389BCAF2C595524A84CD96CFDEE47CA43BAF8888DD6C4055DC8DD61DFE49F8CF02A1BE83DC04F499345BB4314177AE1B115E8AC1915E6A8D3F9EEF52367E28D0C98D55F53C71897E35B3D7DD99A43794BBCB25A6999A05BC0A289F083B68DED6AB7815CB532B0AA89421387F3787C24E2940957AA3
  105. gnupg-pkcs11-scd[3398]: chan_5 -> S KEY-DATA e 010001
  106. gnupg-pkcs11-scd[3398]: chan_5 -> OK
  107. gnupg-pkcs11-scd[3398]: chan_5 <- SERIALNO openpgp
  108. gnupg-pkcs11-scd[3398]: chan_5 -> S SERIALNO D2760001240111111111111111111111 0
  109. gnupg-pkcs11-scd[3398]: chan_5 -> OK
  110. gnupg-pkcs11-scd[3398]: chan_5 <- SETDATA B9DF1CBAD622158A6E966E64E0A29773BFFE7100
  111. gnupg-pkcs11-scd[3398]: chan_5 -> OK
  112. gnupg-pkcs11-scd[3398]: chan_5 <- PKSIGN --hash=sha1 D2760001240111111111111111111111/F372DD422C6E6F16D2C29209EFDA42C693299ECF
  113. gnupg-pkcs11-scd[3398]: chan_5 -> INQUIRE NEEDPIN PIN required for token 'rutoken_blue' (try 0)
  114. gnupg-pkcs11-scd[3398]: chan_5 <- [ 44 20 31 32 33 34 35 36 37 38 00 00 00 00 00 00 ...(76 byte(s) skipped) ]
  115. gnupg-pkcs11-scd[3398]: chan_5 <- END
  116. gnupg-pkcs11-scd[3398]: chan_5 -> [ 44 20 66 8d 8c 15 e5 41 ef 6c 47 47 29 1b 24 ab ...(252 byte(s) skipped) ]
  117. gnupg-pkcs11-scd[3398]: chan_5 -> OK
  118. gnupg-pkcs11-scd[3398]: chan_5 <- GENKEY --timestamp=20190929T143836 --force 3
  119. gnupg-pkcs11-scd[3398]: chan_5 -> S KEY-FPR BEDF773D43C5B817E5B7DA164DA6DF21B9F44C2A
  120. gnupg-pkcs11-scd[3398]: chan_5 -> S KEY-CREATED-AT 1569767916
  121. gnupg-pkcs11-scd[3398]: chan_5 -> S SERIALNO D2760001240111111111111111111111 0
  122. gnupg-pkcs11-scd[3398]: chan_5 -> S KEY-DATA n 00C73E5752EBA6BD116D3610F356DB15317C4068F5C222D39242D3C2579DDE815CD18A48B1A0B3AB8AA426135317F9FD083D0FDAD67BFE44B0E9F869FF7E63C147CE6EFA9C701B4313F918600F942B74289EA11F7790399FAA6DDE0BDF6120E59A7F2150D28B1A9BBB0C57E2EBC9B3A0BDCF5E7EF041800A76D4E67BED9697143126E0B3E9F04B784E5C733D389BCAF2C595524A84CD96CFDEE47CA43BAF8888DD6C4055DC8DD61DFE49F8CF02A1BE83DC04F499345BB4314177AE1B115E8AC1915E6A8D3F9EEF52367E28D0C98D55F53C71897E35B3D7DD99A43794BBCB25A6999A05BC0A289F083B68DED6AB7815CB532B0AA89421387F3787C24E2940957AA3
  123. gnupg-pkcs11-scd[3398]: chan_5 -> S KEY-DATA e 010001
  124. gnupg-pkcs11-scd[3398]: chan_5 -> OK
  125. gnupg-pkcs11-scd[3398]: chan_5 <- SERIALNO openpgp
  126. gnupg-pkcs11-scd[3398]: chan_5 -> S SERIALNO D2760001240111111111111111111111 0
  127. gnupg-pkcs11-scd[3398]: chan_5 -> OK
  128. gnupg-pkcs11-scd[3398]: chan_5 <- SETDATA 898B37B5A011AE065920169A49B97733C825AAE0
  129. gnupg-pkcs11-scd[3398]: chan_5 -> OK
  130. gnupg-pkcs11-scd[3398]: chan_5 <- PKSIGN --hash=sha1 D2760001240111111111111111111111/F372DD422C6E6F16D2C29209EFDA42C693299ECF
  131. gnupg-pkcs11-scd[3398]: chan_5 -> [ 44 20 4b 7d 29 96 a1 6b c1 30 c8 72 66 9f e1 49 ...(252 byte(s) skipped) ]
  132. gnupg-pkcs11-scd[3398]: chan_5 -> OK
  133. gnupg-pkcs11-scd[3398]: chan_5 <- SERIALNO openpgp
  134. gnupg-pkcs11-scd[3398]: chan_5 -> S SERIALNO D2760001240111111111111111111111 0
  135. gnupg-pkcs11-scd[3398]: chan_5 -> OK
  136. gnupg-pkcs11-scd[3398]: chan_5 <- SETDATA 898B37B5A011AE065920169A49B97733C825AAE0
  137. gnupg-pkcs11-scd[3398]: chan_5 -> OK
  138. gnupg-pkcs11-scd[3398]: chan_5 <- PKSIGN --hash=sha1 D2760001240111111111111111111111/F372DD422C6E6F16D2C29209EFDA42C693299ECF
  139. gnupg-pkcs11-scd[3398]: chan_5 -> [ 44 20 4b 7d 29 96 a1 6b c1 30 c8 72 66 9f e1 49 ...(252 byte(s) skipped) ]
  140. gnupg-pkcs11-scd[3398]: chan_5 -> OK
  141. gnupg-pkcs11-scd[3398]: chan_5 <- GENKEY --timestamp=20190929T143836 --force 2
  142. gnupg-pkcs11-scd[3398]: chan_5 -> ERR 19 Bad session key <Unspecified source>
  143. gpg: key generation failed: Bad session key
  144. Key generation failed: Bad session key
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top