Advertisement
alexs77

smartcard-debugging

Dec 6th, 2012
145
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.55 KB | None | 0 0
  1. ########################################### pcsc_scan
  2. ########################################### see below for output from:
  3. ########################################### opensc-tool
  4. ########################################### or:
  5. ########################################### pkcs15-tool
  6.  
  7. $ pcsc_scan
  8. PC/SC device scanner
  9. V 1.4.20 (c) 2001-2011, Ludovic Rousseau <ludovic.rousseau@free.fr>
  10. Compiled with PC/SC lite version: 1.8.3
  11. Using reader plug'n play mechanism
  12. Scanning present readers...
  13. 0: Cherry GmbH SmartTerminal ST-2xxx [Vendor Interface] (21121217150782) 00 00
  14.  
  15. Fri Nov 30 12:21:02 2012
  16. Reader 0: Cherry GmbH SmartTerminal ST-2xxx [Vendor Interface] (21121217150782) 00 00
  17. Card state: Card inserted,
  18. ATR: 3B FA 18 00 02 C1 0A 31 FE 58 4B 53 77 69 73 73 53 69 67 6E 89
  19.  
  20. ATR: 3B FA 18 00 02 C1 0A 31 FE 58 4B 53 77 69 73 73 53 69 67 6E 89
  21. + TS = 3B --> Direct Convention
  22. + T0 = FA, Y(1): 1111, K: 10 (historical bytes)
  23. TA(1) = 18 --> Fi=372, Di=12, 31 cycles/ETU
  24. 129032 bits/s at 4 MHz, fMax for Fi = 5 MHz => 161290 bits/s
  25. TB(1) = 00 --> VPP is not electrically connected
  26. TC(1) = 02 --> Extra guard time: 2
  27. TD(1) = C1 --> Y(i+1) = 1100, Protocol T = 1
  28. -----
  29. TC(2) = 0A --> Work waiting time: 960 x 10 x (Fi/F)
  30. TD(2) = 31 --> Y(i+1) = 0011, Protocol T = 1
  31. -----
  32. TA(3) = FE --> IFSC: 254
  33. TB(3) = 58 --> Block Waiting Integer: 5 - Character Waiting Integer: 8
  34. + Historical bytes: 4B 53 77 69 73 73 53 69 67 6E
  35. Category indicator byte: 4B (proprietary format)
  36. + TCK = 89 (correct checksum)
  37.  
  38. Possibly identified card (using /usr/share/pcsc/smartcard_list.txt):
  39. 3B FA 18 00 02 C1 0A 31 FE 58 4B 53 77 69 73 73 53 69 67 6E 89
  40. SuisseId card (used for qualified signatures)
  41. http://postsuisseid.ch/de/suisseid
  42. http://www.suisseid.ch/
  43. ^C
  44.  
  45.  
  46. ########################################### opensc-tool
  47.  
  48. alexander@ewzw032:~$ opensc-tool --list-readers
  49. # Detected readers (pcsc)
  50. Nr. Card Features Name
  51. 0 Yes PIN pad Cherry GmbH SmartTerminal ST-2xxx [Vendor Interface] (21121217150782) 00 00
  52.  
  53. alexander@ewzw032:~$ opensc-tool --reader 0 --name
  54. Card not present.
  55.  
  56. alexander@ewzw032:~$ opensc-tool --reader 0 --name -v
  57. Connecting to card in reader Cherry GmbH SmartTerminal ST-2xxx [Vendor Interface] (21121217150782) 00 00...
  58. Using card driver Default driver for unknown cards.
  59. Card name: Unsupported card
  60.  
  61.  
  62.  
  63. ########################################### pkcs15-tool
  64.  
  65. alexander@ewzw032:~$ pkcs15-tool -D
  66. Using reader with a card: Cherry GmbH SmartTerminal ST-2xxx [Vendor Interface] (21121217150782) 00 00
  67. PKCS#15 Card [SwissSignID ]:
  68. Version : 0
  69. Serial number :
  70. Manufacturer ID: SwissSign
  71. Flags : Login required, PRN generation
  72.  
  73. PIN [PIN]
  74. Object Flags : [0x3], private, modifiable
  75. Auth ID : 02
  76. ID : 01
  77. Flags : [0x11], case-sensitive, initialized
  78. Length : min_len:5, max_len:12, stored_len:0
  79. Pad char : 0x00
  80. Reference : 129
  81. Type : UTF-8
  82.  
  83. PIN [SO-PIN]
  84. Object Flags : [0x3], private, modifiable
  85. ID : 02
  86. Flags : [0x99], case-sensitive, unblock-disabled, initialized, soPin
  87. Length : min_len:6, max_len:12, stored_len:0
  88. Pad char : 0x00
  89. Reference : 130
  90. Type : UTF-8
  91.  
  92. PIN [Secondary Authentication PIN]
  93. Object Flags : [0x3], private, modifiable
  94. Auth ID : 02
  95. ID : 03
  96. Flags : [0x13], case-sensitive, local, initialized
  97. Length : min_len:6, max_len:12, stored_len:0
  98. Pad char : 0x00
  99. Reference : 144
  100. Type : UTF-8
  101. Path : 3f005015
  102.  
  103. PIN [Digital Signature PIN]
  104. Object Flags : [0x3], private, modifiable
  105. Auth ID : 12
  106. ID : 11
  107. Flags : [0x13], case-sensitive, local, initialized
  108. Length : min_len:6, max_len:12, stored_len:0
  109. Pad char : 0x00
  110. Reference : 129
  111. Type : UTF-8
  112. Path : 3f001fff
  113.  
  114. Private RSA Key [SwissSign_nonRep ]
  115. Object Flags : [0x3], private, modifiable
  116. Usage : [0x204], sign, nonRepudiation
  117. Access Flags : [0x1D], sensitive, alwaysSensitive, neverExtract, local
  118. ModLength : 2048
  119. Key ref : 2 (0x2)
  120. Native : yes
  121. Path : 3f001fffc100
  122. Auth ID : 11
  123. ID : 935abf517aa9398583b10474f64c8e826543a876
  124.  
  125. Private RSA Key [SwissSign_digSig ]
  126. Object Flags : [0x3], private, modifiable
  127. Usage : [0x26], decrypt, sign, unwrap
  128. Access Flags : [0x1D], sensitive, alwaysSensitive, neverExtract, local
  129. ModLength : 2048
  130. Key ref : 2 (0x2)
  131. Native : yes
  132. Path : 3f00501550724b025502
  133. Auth ID : 01
  134. ID : ×××
  135.  
  136. Private RSA Key [SwissSign_dataEnc ]
  137. Object Flags : [0x3], private, modifiable
  138. Usage : [0x26], decrypt, sign, unwrap
  139. Access Flags : [0x1D], sensitive, alwaysSensitive, neverExtract, local
  140. ModLength : 2048
  141. Key ref : 3 (0x3)
  142. Native : yes
  143. Path : 3f00501550724b035503
  144. Auth ID : 01
  145. ID : ×××
  146.  
  147. Public RSA Key [SwissSign_nonRep ]
  148. Object Flags : [0x2], modifiable
  149. Usage : [0x40], verify
  150. Access Flags : [0x0]
  151. ModLength : 2048
  152. Key ref : -1
  153. Native : no
  154. Path : 3f001fffc100
  155. ID : ×××
  156.  
  157. Public RSA Key [SwissSign_digSig ]
  158. Object Flags : [0x2], modifiable
  159. Usage : [0x51], encrypt, wrap, verify
  160. Access Flags : [0x10], local
  161. ModLength : 2048
  162. Key ref : -1
  163. Native : no
  164. Path : 3f00501550754b02
  165. ID : ×××
  166.  
  167. Public RSA Key [SwissSign_dataEnc ]
  168. Object Flags : [0x2], modifiable
  169. Usage : [0x51], encrypt, wrap, verify
  170. Access Flags : [0x10], local
  171. ModLength : 2048
  172. Key ref : -1
  173. Native : no
  174. Path : 3f00501550754b03
  175. ID : ×××
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement