Hallo: We are having some problems with gemplus Twin cards Under Linux. We have downloaded pcsc daemon , ifd-ccid bundle and utilities from gemplus page . We have installed them and we start the daemon . The driver seems to work with some limitation . We want to perform access, list, store , erase , and format the cards as well as using them from Mozilla / Thundervbird or Netscape . For this porpueses we have download muscle framework add ins and Opensc . We could install Open sc In mozilla and it detects the Gemplus Token and its ready status but when we go to the certificate tab we are not able to detect any certificates. We also tried muscleframework plugin but it was not possible to install the plugin in navigator. At this moment the only thing that works is that the OS detects the token and the cards and identifies them but we cannot perform any list erase or format operations. When we try MuscleCard service with muscleTool we cannot even connect to the device ,and muscletest fails with errors .
Using pcscd -f everithing seems to be all rigth , see output details: -------------------------------------------------------------------------------------- :371:HPAddHotPluggable Adding USB device: 003:002 readerfactory.c:1178:RFInitializeReader Attempting startup of GemPC Twin 00 00. readerfactory.c:966:RFBindFunctions Loading IFD Handler 3.0 ifdhandler.c:961:init_driver LogLevel: 0x0003 ifdhandler.c:972:init_driver DriverOptions: 0x0000 ifdhandler.c:66:IFDHCreateChannelByName lun: 0, device: usb:08e6/3437:libusb:003 :002 ccid_usb.c:198:OpenUSBByName Manufacturer: Gemplus ([EMAIL PROTECTED]) ccid_usb.c:208:OpenUSBByName ProductString: Generic CCID reader v1.0.0 ccid_usb.c:214:OpenUSBByName Copyright: This driver is protected by terms of the GNU General Public License version 2, or (at your option) any later version. ccid_usb.c:331:OpenUSBByName Found Vendor/Product: 08E6/3437 (GemPC Twin) ccid_usb.c:333:OpenUSBByName Using USB bus/device: 003/002 ifdhandler.c:228:IFDHGetCapabilities lun: 0, tag: 0xFAE ifdhandler.c:653:IFDHPowerICC lun: 0 Card ATR: 3B A7 00 40 18 80 65 A2 09 01 03 52 winscard_msg.c:191:SHMProcessEventsServer Common channel packet arrival winscard_msg.c:198:SHMProcessEventsServer SHMProcessCommonChannelRequest detects : 7 pcscdaemon.c:136:SVCServiceRunLoop A new context thread creation is requested: 7 winscard_svc.c:102:ContextThread Thread is started: 7 winscard_msg.c:252:SHMProcessEventsContext correctly processed client: 7 winscard_svc.c:142:ContextThread Client is protocol version 2:0 winscard_msg.c:252:SHMProcessEventsContext correctly processed client: 7 winscard.c:68:SCardEstablishContext Establishing Context: 16991945 winscard_msg.c:252:SHMProcessEventsContext correctly processed client: 7 winscard.c:121:SCardConnect Attempting Connect to GemPC Twin 00 00 prothandler.c:126:PHSetProtocol Attempting PTS to T=0 ifdhandler.c:352:IFDHSetProtocolParameters lun: 0, protocol T=0 winscard.c:215:SCardConnect Active Protocol: T=0 winscard.c:222:SCardConnect hCard Identity: 18e3b winscard_msg.c:252:SHMProcessEventsContext correctly processed client: 7 winscard.c:757:SCardBeginTransaction Status: 0. winscard_msg.c:252:SHMProcessEventsContext correctly processed client: 7 winscard.c:1338:SCardTransmit Send Protocol: T=0 ifdhandler.c:770:IFDHTransmitToICC lun: 0 ----------------------------------------------------------------- If we do a testpcsc we notice that there are two operation unsupported : ------------------------------------------------------------------------------------- testpcsc MUSCLE PC/SC Lite Test Program Testing SCardEstablishContext : Command successful. Testing SCardGetStatusChange Please insert a working reader : Command successful. Testing SCardListReaderGroups : Command successful. Group 01: SCard$DefaultReaders Testing SCardListReaders : Command successful. Reader 01: GemPC Twin 00 00 Waiting for card insertion : Command successful. Testing SCardConnect : Command successful. Testing SCardControl : Transaction failed. Testing SCardGetAttrib : Command successful. 3B A7 00 40 18 80 65 A2 09 01 03 52 Testing SCardSetAttrib : Transaction failed. Testing SCardStatus : Command successful. Current Reader Name : GemPC Twin 00 00 Current Reader State : 34 Current Reader Protocol : 0 Current Reader ATR Size : c Current Reader ATR Value : 3B A7 00 40 18 80 65 A2 09 01 03 52 Testing SCardDisconnect : Command successful. Testing SCardReleaseContext : Command successful. PC/SC Test Completed Successfully ! ---------------------------------------------------------------------------------------- When we perform a muscletest command we get an unsupported response from the token: --------------------------------------------------------------------------- ******************************************************** Token #0 Token name : MuscleCard Applet Slot name : GemPC Twin 00 00 Token id : 3BA70040188065A209010352 Token state : 0022 Token type : 0004 token known ******************************************************** Token #0 Token name : MuscleCard Applet Slot name : GemPC Twin 00 00 Token id : 3BA70040188065A209010352 Token state : 0022 Token type : 0004 token known EstablishConn returns : Token is unsupported -------------------------------------------------------------------------- And when we use opensc-tool we are unable to list files: -------------------------------------------------------------------------- txussportatil:/opt/soft/muscleframework-1.1.3 # opensc-tool -a 3B A7 00 40 18 80 65 A2 09 01 03 52 ;[EMAIL PROTECTED] txussportatil:/opt/soft/muscleframework-1.1.3 # opensc-tool --name Gemplus GPK driver txussportatil:/opt/soft/muscleframework-1.1.3 # opensc-tool -l Readers known about: Nr. Driver Name 0 pcsc GemPC Twin 00 00 1 openct OpenCT reader (detached) 2 openct OpenCT reader (detached) 3 openct OpenCT reader (detached) 4 openct OpenCT reader (detached) 5 openct OpenCT reader (detached) txussportatil:/opt/soft/muscleframework-1.1.3 # opensc-tool -D Configured card drivers: etoken Siemens CardOS flex Schlumberger Multiflex/Cryptoflex cyberflex Schlumberger Cyberflex gpk Gemplus GPK driver miocos MioCOS 1.1 cards mcrd MICARDO 2.1 setcos Setec smartcards starcos driver for STARCOS SPK 2.3 cards tcos TCOS 2.0 cards openpgp OpenPGP Card jcop JCOP cards with BlueZ PKCS#15 applet oberthur Oberthur AuthentIC.v2/CosmopolIC.v4 emv EMV compatible cards default Default driver for unknown cards txussportatil:/opt/soft/muscleframework-1.1.3 # opensc-tool -f 3F00 type: DF, size: 0 select[NONE] lock[PROT] delete[NEVR] create[PROT] rehab[NEVR] inval[NEVR] list[NEVR] sc_list_files() failed: Not supported ------------------------------------------------------------------------------------- We thougth that tis problems may appear due to a windows incorrect format of the token and we tried to format the token with muscleTool and with opensc-explorer but they fail with protocol errors . If we start the pcscd daemon with -f --apdu we get this error: Doing a Opensc-explorer erase: ------------------------------------------------------------------------- inscard.c:222:SCardConnect hCard Identity: 10627 winscard_msg.c:252:SHMProcessEventsContext correctly processed client: 7 winscard.c:757:SCardBeginTransaction Status: 0. winscard_msg.c:252:SHMProcessEventsContext correctly processed client: 7 winscard.c:1338:SCardTransmit Send Protocol: T=0 APDU: 80 C0 02 A4 0D ifdhandler.c:770:IFDHTransmitToICC lun: 0 SW: A2 09 01 01 52 00 FF 00 10 00 FF 8E 8E 90 00 winscard_msg.c:252:SHMProcessEventsContext correctly processed client: 7 winscard.c:1338:SCardTransmit Send Protocol: T=0 APDU: 00 A4 00 00 02 3F 00 ifdhandler.c:770:IFDHTransmitToICC lun: 0 SW: 61 12 winscard_msg.c:252:SHMProcessEventsContext correctly processed client: 7 winscard.c:903:SCardEndTransaction Status: 0. winscard_msg.c:252:SHMProcessEventsContext correctly processed client: 7 winscard.c:757:SCardBeginTransaction Status: 0. winscard_msg.c:252:SHMProcessEventsContext correctly processed client: 7 winscard.c:1338:SCardTransmit Send Protocol: T=0 APDU: 00 A4 00 00 02 3F 00 00 ifdhandler.c:770:IFDHTransmitToICC lun: 0 SW: 61 12 winscard_msg.c:252:SHMProcessEventsContext correctly processed client: 7 winscard.c:1338:SCardTransmit Send Protocol: T=0 APDU: 00 C0 00 00 12 ifdhandler.c:770:IFDHTransmitToICC lun: 0 SW: 85 10 80 01 3F 00 38 00 00 00 01 00 01 00 00 00 00 6B 90 00 winscard_msg.c:252:SHMProcessEventsContext correctly processed client: 7 winscard.c:1338:SCardTransmit Send Protocol: T=0 APDU: DB DE 00 00 ifdhandler.c:770:IFDHTransmitToICC lun: 0 SW: 6B 00 ---------------------------------------------------------------------------------------------- Doing a MuscleTool format : ********************* WARNING ! ********************* You are about to destroy all data on this token. ***************************************************** Current admin pin : ,ïï New admin pin : 12345678 New user pin : 12345678 New user unblock pin : 12345678 Number of tries : 1 Object memory : 8192 Are you sure you want to continue ? (1-YES, 2-NO): 1 Formatting token [**] : Failed (Unknown SW: 6D00) winscard_msg.c:252:SHMProcessEventsContext correctly processed client: 7 winscard.c:121:SCardConnect Attempting Connect to GemPC Twin 00 00 winscard.c:215:SCardConnect Active Protocol: T=0 winscard.c:222:SCardConnect hCard Identity: 162d5 winscard_msg.c:252:SHMProcessEventsContext correctly processed client: 7 winscard_msg.c:252:SHMProcessEventsContext correctly processed client: 7 winscard.c:1338:SCardTransmit Send Protocol: T=0 APDU: 00 A4 04 00 06 A0 00 00 00 01 01 ifdhandler.c:770:IFDHTransmitToICC lun: 0 SW: 6A 82 winscard_msg.c:252:SHMProcessEventsContext correctly processed client: 7 winscard.c:1338:SCardTransmit Send Protocol: T=0 APDU: B0 2A 00 00 38 08 2C 15 E5 26 E9 3E 8A 19 04 01 08 31 32 33 34 35 36 37 38 08 31 32 33 34 35 36 37 38 01 02 08 31 32 33 34 35 36 37 38 08 31 32 33 34 35 36 37 38 00 00 20 00 00 02 01 ifdhandler.c:770:IFDHTransmitToICC lun: 0 SW: 6D 00 winscard_msg.c:252:SHMProcessEventsContext correctly processed client: 7 winscard.c:587:SCardDisconnect Active Contexts: 1 ifdhandler.c:653:IFDHPowerICC lun: 0 winscard.c:645:SCardDisconnect Reset complete. _______________________________________________ Muscle mailing list [email protected] http://lists.drizzle.com/mailman/listinfo/muscle
