From: Florent D. <fde...@gm...> - 2013-03-14 12:46:07
|
Hello, I have the following environment : Ubuntu 12.10 32bits OpenSC 0.13 pcscd 1.8.5 pcsc-tools 1.4.20 libccid 1.4.7-1 I am using a Gemalto IAS/ECC smart into a Gemalto USB Shell Token V2. The token is fully operational when used on a physical machine however when my Ubuntu is a Virtual Machine running under VMware Player 5.0.2 I have a problem. The reader and the card are shown by pcsc_scan, however all OpenSC tools (opensc-tools, pkcs15-init, etc.) fail because it cannot see the card, i.e. I have the following error message: "Failed to connect to card: Unresponsive card (correctly inserted?)" Here's a output of lsusb and pcsc_scan and finally opensc-tool in debug mode : Many thanks! root@ubuntu12-10# lsusb Bus 001 Device 002: ID 0e0f:0003 VMware, Inc. Virtual Mouse Bus 001 Device 003: ID 0e0f:0002 VMware, Inc. Virtual USB Hub Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 001 Device 006: ID 08e6:3438 Gemplus GemPC Key SmartCard Reader -------------------------------------------------------------------------------------------------- root@ubuntu12-10# pcsc_scan PC/SC device scanner V 1.4.20 (c) 2001-2011, Ludovic Rousseau <lud...@fr...> Compiled with PC/SC lite version: 1.8.3 Using reader plug'n play mechanism Scanning present readers... Waiting for the first reader...found one Scanning present readers... 0: Gemalto USB Shell Token V2 (309EF81F) 00 00 Thu Mar 14 13:35:49 2013 Reader 0: Gemalto USB Shell Token V2 (309EF81F) 00 00 Card state: Card inserted, ATR: 3B 7F 96 00 00 00 31 B8 64 40 70 14 10 73 94 01 80 82 90 00 ATR: 3B 7F 96 00 00 00 31 B8 64 40 70 14 10 73 94 01 80 82 90 00 + TS = 3B --> Direct Convention + T0 = 7F, Y(1): 0111, K: 15 (historical bytes) TA(1) = 96 --> Fi=512, Di=32, 16 cycles/ETU 250000 bits/s at 4 MHz, fMax for Fi = 5 MHz => 312500 bits/s TB(1) = 00 --> VPP is not electrically connected TC(1) = 00 --> Extra guard time: 0 + Historical bytes: 00 31 B8 64 40 70 14 10 73 94 01 80 82 90 00 Category indicator byte: 00 (compact TLV data object) Tag: 3, len: 1 (card service data byte) Card service data byte: B8 - Application selection: by full DF name - BER-TLV data objects available in EF.DIR - BER-TLV data objects available in EF.ATR - EF.DIR and EF.ATR access services: by READ BINARY command - Card with MF Tag: 6, len: 4 (pre-issuing data) Data: 40 70 14 10 Tag: 7, len: 3 (card capabilities) Selection methods: 94 - DF selection by full DF name - DF selection by file identifier - Short EF identifier supported Data coding byte: 01 - Behaviour of write functions: one-time write - Value 'FF' for the first byte of BER-TLV tag fields: invalid - Data unit in quartets: 2 Command chaining, length fields and logical channels: 80 - Command chaining - Logical channel number assignment: No logical channel - Maximum number of logical channels: 1 Mandatory status indicator (3 last bytes) LCS (life card cycle): 82 (Proprietary) SW: 9000 (Normal processing.) Possibly identified card (using /usr/share/pcsc/smartcard_list.txt): 3B 7F 96 00 00 00 31 B8 64 40 70 14 10 73 94 01 80 82 90 00 IAS/ECC Gemalto (eID) --------------------------------------------------------------- root@ubuntu12-10# lsusb Bus 001 Device 002: ID 0e0f:0003 VMware, Inc. Virtual Mouse Bus 001 Device 003: ID 0e0f:0002 VMware, Inc. Virtual USB Hub Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 001 Device 006: ID 08e6:3438 Gemplus GemPC Key SmartCard Reader root@ubuntu12-10:/home/fdeybach# root@ubuntu12-10:/home/fdeybach# root@ubuntu12-10:/home/fdeybach# root@ubuntu12-10:/home/fdeybach# root@ubuntu12-10:/home/fdeybach# opensc-tool -a Using reader with a card: Gemalto USB Shell Token V2 (309EF81F) 00 00 Failed to connect to card: Unresponsive card (correctly inserted?) root@ubuntu12-10:/home/fdeybach# root@ubuntu12-10:/home/fdeybach# root@ubuntu12-10:/home/fdeybach# opensc-tool -a -vvvvv 0xb72806c0 13:39:22.704 [opensc-tool] sc.c:231:sc_detect_card_presence: called 0xb72806c0 13:39:22.704 [opensc-tool] reader-pcsc.c:370:pcsc_detect_card_presence: called 0xb72806c0 13:39:22.704 [opensc-tool] reader-pcsc.c:283:refresh_attributes: Gemalto USB Shell Token V2 (309EF81F) 00 00 check 0xb72806c0 13:39:22.705 [opensc-tool] reader-pcsc.c:299:refresh_attributes: returning with: 0 (Success) 0xb72806c0 13:39:22.705 [opensc-tool] reader-pcsc.c:375:pcsc_detect_card_presence: returning with: 1 0xb72806c0 13:39:22.705 [opensc-tool] sc.c:236:sc_detect_card_presence: returning with: 1 Using reader with a card: Gemalto USB Shell Token V2 (309EF81F) 00 00 0xb72806c0 13:39:22.705 [opensc-tool] sc.c:231:sc_detect_card_presence: called 0xb72806c0 13:39:22.705 [opensc-tool] reader-pcsc.c:370:pcsc_detect_card_presence: called 0xb72806c0 13:39:22.705 [opensc-tool] reader-pcsc.c:283:refresh_attributes: Gemalto USB Shell Token V2 (309EF81F) 00 00 check 0xb72806c0 13:39:22.705 [opensc-tool] reader-pcsc.c:299:refresh_attributes: returning with: 0 (Success) 0xb72806c0 13:39:22.705 [opensc-tool] reader-pcsc.c:375:pcsc_detect_card_presence: returning with: 1 0xb72806c0 13:39:22.705 [opensc-tool] sc.c:236:sc_detect_card_presence: returning with: 1 Connecting to card in reader Gemalto USB Shell Token V2 (309EF81F) 00 00... 0xb72806c0 13:39:22.705 [opensc-tool] card.c:125:sc_connect_card: called 0xb72806c0 13:39:22.705 [opensc-tool] reader-pcsc.c:450:pcsc_connect: called 0xb72806c0 13:39:22.705 [opensc-tool] reader-pcsc.c:283:refresh_attributes: Gemalto USB Shell Token V2 (309EF81F) 00 00 check 0xb72806c0 13:39:22.705 [opensc-tool] reader-pcsc.c:299:refresh_attributes: returning with: 0 (Success) 0xb72806c0 13:39:22.738 [opensc-tool] reader-pcsc.c:472:pcsc_connect: Gemalto USB Shell Token V2 (309EF81F) 00 00:SCardConnect failed: 0x80100066 0xb72806c0 13:39:22.738 [opensc-tool] card.c:249:sc_connect_card: returning with: -1113 (Unresponsive card (correctly inserted?)) Failed to connect to card: Unresponsive card (correctly inserted?) 0xb72806c0 13:39:22.738 [opensc-tool] ctx.c:787:sc_release_context: called 0xb72806c0 13:39:22.738 [opensc-tool] reader-pcsc.c:745:pcsc_finish: called |