Re: [opensc-devel] Failed to connect to card: Card is invalid or cannot be handled

2012-04-24 Thread Martin Paljak
Hello,

 On Sun, Apr 8, 2012 at 21:56, Anton Svensson n00b1...@hotmail.com wrote:
 Hmm, what kind of info is needed?
 Dont have that much to be honest, Its a white card, got it after i went to
 a pki workshop (for 2k8), its from crescendo. And its also typed iclass eh
 on the bottom.
 Should i attatch any more logs to make this easier to solve?
 The card is not supported by OpenSC.

 It should be a JavaCard, but I don't know if it has some applets
 pre-loaded or if the keys for loading applets are available to you.
 You might try asking the body who gave you the card for global
 platform keys, which would allow you to load something (like
 MuscleApplet) to the card and use it with OpenSC, but the possibility
 for this is not guaranteed.

And I learned that these cards are locked and the keys not normally
available. Thus the card is only usable for Windows-centric operation
with the provided HID software.

Sorry, for OpenSC you need a different card.
___
opensc-devel mailing list
opensc-devel@lists.opensc-project.org
http://www.opensc-project.org/mailman/listinfo/opensc-devel


[opensc-devel] epass2003 unpowered immediately after plugging in

2012-04-24 Thread Martin Kaiser
Dear all,

I've spent some time trying to get my epass2003 token to work with
opensc and pcsclite. Unfortunately, I'm stuck and I hope you can help me
track down my problem.

I'm running on Debian squeeze
Linux xxx 2.6.39-bpo.2-amd64 #1 SMP Tue Jul 26 10:35:23 UTC 2011 x86_64
GNU/Linux

I'm using pcsclite and ccid drivers (compiled from source, not the
debian packages)

pcsc-lite version 1.8.3.
Copyright (C) 1999-2002 by David Corcoran corco...@linuxnet.com.
Copyright (C) 2001-2011 by Ludovic Rousseau ludovic.rouss...@free.fr.
Copyright (C) 2003-2004 by Damien Sauveron sauve...@labri.fr.
Report bugs to mus...@lists.musclecard.com.
Enabled features: Linux x86_64-unknown-linux-gnu serial usb libudev
usbdropdir=/usr/local/pcsclite/lib/pcsc/drivers ipcdir=/var/run/pcscd
configdir=/usr/local/pcsclite/etc/reader.conf.d


The token is detected by pcscd, it's powered when I plug it in. However,
it's unpowered immediately after reading the ATR. Therefore, it's not
visible with opensc-tool -l or similar.

It's recognized by lsusb -v even after it's unpowered.

I'll attach the logfile of pcscd -d -f and the output of lsusb -v

Do you have any idea why the token is unpowered? I have the same
behaviour with different tokens on different pcs (debian / fedora core 15)

The lines
2211 ccid_usb.c:1042:ControlUSB() control failed (2/3): -9 Success
0037 ccid_usb.c:973:get_data_rates() IFD does not support GET_DATA_RATES 
request: -9

look suspicious but I guess that's not the main problem.

Thanks for your help,

   Martin

Bus 002 Device 003: ID 096e:0807 Feitian Technologies, Inc. 
Device Descriptor:
  bLength18
  bDescriptorType 1
  bcdUSB   1.10
  bDeviceClass0 (Defined at Interface level)
  bDeviceSubClass 0 
  bDeviceProtocol 0 
  bMaxPacketSize016
  idVendor   0x096e Feitian Technologies, Inc.
  idProduct  0x0807 
  bcdDevice1.00
  iManufacturer   1 
  iProduct2 
  iSerial 0 
  bNumConfigurations  1
  Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength   86
bNumInterfaces  1
bConfigurationValue 1
iConfiguration  0 
bmAttributes 0x80
  (Bus Powered)
MaxPower  100mA
Interface Descriptor:
  bLength 9
  bDescriptorType 4
  bInterfaceNumber0
  bAlternateSetting   0
  bNumEndpoints   2
  bInterfaceClass11 Chip/SmartCard
  bInterfaceSubClass  0 
  bInterfaceProtocol  0 
  iInterface  0 
  ChipCard Interface Descriptor:
bLength54
bDescriptorType33
bcdCCID  1.10  (Warning: Only accurate for version
1.0)
nMaxSlotIndex   0
bVoltageSupport 1  5.0V 
dwProtocols 2  T=1
dwDefaultClock   3580
dwMaxiumumClock  3580
bNumClockSupported  0
dwDataRate   9600 bps
dwMaxDataRate9600 bps
bNumDataRatesSupp.  0
dwMaxIFSD2048
dwSyncProtocols   
dwMechanical  
dwFeatures   00040840
  Auto parameter negotation made by CCID
  Short and extended APDU level exchange
dwMaxCCIDMsgLen  2100
bClassGetResponseecho
bClassEnvelope   echo
wlcdLayout   none
bPINSupport 0 
bMaxCCIDBusySlots   1
  Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x82  EP 2 IN
bmAttributes2
  Transfer TypeBulk
  Synch Type   None
  Usage Type   Data
wMaxPacketSize 0x0040  1x 64 bytes
bInterval   0
  Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x02  EP 2 OUT
bmAttributes2
  Transfer TypeBulk
  Synch Type   None
  Usage Type   Data
wMaxPacketSize 0x0040  1x 64 bytes
bInterval   0

 debuglog.c:269:DebugLogSetLevel() debug level=debug
0070 debuglog.c:298:DebugLogSetCategory() Debug options: APDU
0236 configfile.l:298:DBGetReaderList() Parsing conf file: 
/usr/local/pcsclite/etc/reader.conf.d
0047 pcscdaemon.c:518:main() pcsc-lite 1.8.3 daemon ready.
3681 hotplug_libudev.c:260:get_driver() Looking for a driver for VID: 
0x1D6B, PID: 0x0001, path: /dev/bus/usb/002/001
0444 hotplug_libudev.c:260:get_driver() Looking for a driver for VID: 
0x1D6B, PID: 0x0001, path: /dev/bus/usb/003/001
0434 hotplug_libudev.c:260:get_driver() Looking for a driver for