[Pcsclite-muscle] cannot erase epass2003auto - token init failure

Jay Aurabind jay.aurabind
Sun Jun 19 01:00:02 PDT 2016


Hi,

I bought a new usb crypto token epass2003auto. I used pkcs15-init to
initially create some keys on it. Later I decided to erase the token,
and from then onwards, I am unable to use my token for anything. I
always get this message "Failed to erase card: Security status not
satisfied" every time I try to erase it. I cannot create new keys
either. Here is what I saw with opesc-explorer:


OpenSC [3F00]> erase
Failed to erase card: Security status not satisfied
OpenSC [3F00]> info

Dedicated File  ID 3F00

File path:     3F00
File size:     0 bytes
DF name:       entersafe-fips
ACL for SELECT:       N/A
ACL for LOCK:         N/A
ACL for DELETE:       N/A
ACL for CREATE:       N/A
ACL for REHABILITATE: N/A
ACL for INVALIDATE:   N/A
ACL for LIST FILES:   N/A
ACL for CRYPTO:       N/A
ACL for DELETE SELF:  N/A
Proprietary attributes:  00 7F
Security attributes:     9F 9F FF 9F FF FF FF FF


Somebody else reported the issue with OpenSC github[1], but Feitian is
giving a tool under nda to fix the issue. I too got the tool as well,
but even that aint working. I've been mailing the contact at feitian,
but no responses. From the output of that tool, I speculate that it
needs a properly initialized pcscd running on the system. (the tool
complains about a service not found)

Hopefully if I solve the pcscd problem, this tool might work to fix my
ePass2003auto

Kindly help me fix the issue. Below are the details you need:

USB Token: Feitian ePass2003auto
USB driver version: CCID 1.4.24

Output of pcscd --version:

pcsc-lite version 1.8.17.
Copyright (C) 1999-2002 by David Corcoran <corcoran at musclecard.com>.
Copyright (C) 2001-2015 by Ludovic Rousseau <ludovic.rousseau at free.fr>.
Copyright (C) 2003-2004 by Damien Sauveron <sauveron at labri.fr>.
Report bugs to <pcsclite-muscle at lists.alioth.debian.org>.
Enabled features: Linux x86_64-unknown-linux-gnu serial usb libudev
usbdropdir=/usr/local/lib/pcsc/drivers ipcdir=/var/run/pcscd
configdir=/usr/local/etc/reader.conf.d

However, directory /usr/local/etc/reader.conf.d does not exist.

Platform: OS: Fedora 23, using latest versions of pcsc, built locally.

Please revert back to me if you any more information. Full log is
attached as well.

[1]:https://github.com/OpenSC/OpenSC/issues/767

-- 

Thanks and Regards,
Aurabindo J
-------------- next part --------------
00000000 debuglog.c:289:DebugLogSetLevel() debug level=debug
00000030 debuglog.c:310:DebugLogSetCategory() Debug options: APDU
00000005 pcscdaemon.c:357:main() Force colored logs
00000085 configfile.l:358:DBGetReaderList() Parsing conf file: /usr/local/etc/reader.conf.d
00000014 pcscdaemon.c:672:main() pcsc-lite 1.8.17 daemon ready.
00002631 hotplug_libudev.c:294:get_driver() Looking for a driver for VID: 0x1D6B, PID: 0x0002, path: /dev/bus/usb/003/001
00000097 hotplug_libudev.c:294:get_driver() Looking for a driver for VID: 0x1D6B, PID: 0x0002, path: /dev/bus/usb/003/001
00000100 hotplug_libudev.c:294:get_driver() Looking for a driver for VID: 0x138A, PID: 0x0050, path: /dev/bus/usb/003/005
00000083 hotplug_libudev.c:294:get_driver() Looking for a driver for VID: 0x1D6B, PID: 0x0002, path: /dev/bus/usb/003/001
00000079 hotplug_libudev.c:294:get_driver() Looking for a driver for VID: 0x04CA, PID: 0x0061, path: /dev/bus/usb/003/002
00000077 hotplug_libudev.c:294:get_driver() Looking for a driver for VID: 0x1D6B, PID: 0x0002, path: /dev/bus/usb/003/001
00000080 hotplug_libudev.c:294:get_driver() Looking for a driver for VID: 0x8087, PID: 0x07DC, path: /dev/bus/usb/003/003
00000077 hotplug_libudev.c:294:get_driver() Looking for a driver for VID: 0x8087, PID: 0x07DC, path: /dev/bus/usb/003/003
00000074 hotplug_libudev.c:294:get_driver() Looking for a driver for VID: 0x1D6B, PID: 0x0002, path: /dev/bus/usb/003/001
00000078 hotplug_libudev.c:294:get_driver() Looking for a driver for VID: 0x064E, PID: 0xC341, path: /dev/bus/usb/003/004
00000077 hotplug_libudev.c:294:get_driver() Looking for a driver for VID: 0x064E, PID: 0xC341, path: /dev/bus/usb/003/004
00000116 hotplug_libudev.c:294:get_driver() Looking for a driver for VID: 0x1D6B, PID: 0x0003, path: /dev/bus/usb/004/001
00000113 hotplug_libudev.c:294:get_driver() Looking for a driver for VID: 0x1D6B, PID: 0x0002, path: /dev/bus/usb/001/001
00000080 hotplug_libudev.c:294:get_driver() Looking for a driver for VID: 0x1D6B, PID: 0x0002, path: /dev/bus/usb/001/001
00000087 hotplug_libudev.c:294:get_driver() Looking for a driver for VID: 0x8087, PID: 0x8008, path: /dev/bus/usb/001/002
00000113 hotplug_libudev.c:294:get_driver() Looking for a driver for VID: 0x1D6B, PID: 0x0002, path: /dev/bus/usb/002/001
00000071 hotplug_libudev.c:294:get_driver() Looking for a driver for VID: 0x1D6B, PID: 0x0002, path: /dev/bus/usb/002/001
00000082 hotplug_libudev.c:294:get_driver() Looking for a driver for VID: 0x8087, PID: 0x8000, path: /dev/bus/usb/002/002
03473026 hotplug_libudev.c:648:HPEstablishUSBNotifications() USB Device add
00000456 hotplug_libudev.c:294:get_driver() Looking for a driver for VID: 0x096E, PID: 0x080A, path: /dev/bus/usb/003/013
00000015 hotplug_libudev.c:433:HPAddDevice() Adding USB device: FT ePass2003Auto
00000157 readerfactory.c:1079:RFInitializeReader() Attempting startup of FT ePass2003Auto 00 00 using /usr/local/lib/pcsc/drivers/ifd-ccid.bundle/Contents/Linux/libccid.so
00000433 readerfactory.c:954:RFBindFunctions() Loading IFD Handler 3.0
00000040 ifdhandler.c:1953:init_driver() Driver version: 1.4.24
00000748 ifdhandler.c:1970:init_driver() LogLevel: 0x0003
00000035 ifdhandler.c:1981:init_driver() DriverOptions: 0x0000
00000265 ifdhandler.c:1994:init_driver() LogLevel from LIBCCID_ifdLogLevel: 0x000F
00000009 ifdhandler.c:110:CreateChannelByNameOrChannel() Lun: 0, device: usb:096e/080a:libudev:0:/dev/bus/usb/003/013
00000006 ccid_usb.c:237:OpenUSBByName() Reader index: 0, Device: usb:096e/080a:libudev:0:/dev/bus/usb/003/013
00000009 ccid_usb.c:269:OpenUSBByName() interface_number: 0
00000004 ccid_usb.c:270:OpenUSBByName() usb bus/device: 3/13
00000004 ccid_usb.c:287:OpenUSBByName() Using: /usr/local/lib/pcsc/drivers/ifd-ccid.bundle/Contents/Info.plist
00000694 ccid_usb.c:305:OpenUSBByName() ifdManufacturerString: Ludovic Rousseau (ludovic.rousseau at free.fr)
00000008 ccid_usb.c:306:OpenUSBByName() ifdProductString: Generic CCID driver
00000005 ccid_usb.c:307:OpenUSBByName() Copyright: This driver is protected by terms of the GNU Lesser General Public License version 2.1, or (at your option) any later version.
00005457 ccid_usb.c:391:OpenUSBByName() Try device: 3/13
00000006 ccid_usb.c:401:OpenUSBByName() vid/pid : 096E/080A
00000003 ccid_usb.c:448:OpenUSBByName() Checking device: 3/13
00000002 ccid_usb.c:510:OpenUSBByName() Trying to open USB bus/device: 3/13
00000074 ccid_usb.c:590:OpenUSBByName() Found interface 1 but expecting 0
00000004 ccid_usb.c:592:OpenUSBByName() Wrong interface for USB device 3/13. Checking next one.
00000075 ccid_usb.c:189:close_libusb_if_needed() libusb_exit
00000046 ccid_usb.c:735:OpenUSBByName() Device not found?
00000006 ifdhandler.c:144:CreateChannelByNameOrChannel() failed
00000005 readerfactory.c:1110:RFInitializeReader() Open Port 0x200000 Failed (usb:096e/080a:libudev:0:/dev/bus/usb/003/013)
00000002 readerfactory.c:375:RFAddReader() FT ePass2003Auto init failed.
00000004 readerfactory.c:608:RFRemoveReader() UnrefReader() count was: 1
00000002 readerfactory.c:1130:RFUnInitializeReader() Attempting shutdown of FT ePass2003Auto 00 00.
00000001 readerfactory.c:991:RFUnloadReader() Unloading reader driver.
00000062 hotplug_libudev.c:648:HPEstablishUSBNotifications() USB Device add
00000112 hotplug_libudev.c:294:get_driver() Looking for a driver for VID: 0x096E, PID: 0x080A, path: /dev/bus/usb/003/013
00000005 hotplug_libudev.c:433:HPAddDevice() Adding USB device: FT ePass2003Auto
00000047 readerfactory.c:1079:RFInitializeReader() Attempting startup of FT ePass2003Auto 00 00 using /usr/local/lib/pcsc/drivers/ifd-ccid.bundle/Contents/Linux/libccid.so
00000153 readerfactory.c:954:RFBindFunctions() Loading IFD Handler 3.0
00000015 ifdhandler.c:1953:init_driver() Driver version: 1.4.24
00000393 ifdhandler.c:1970:init_driver() LogLevel: 0x0003
00000004 ifdhandler.c:1981:init_driver() DriverOptions: 0x0000
00000123 ifdhandler.c:1994:init_driver() LogLevel from LIBCCID_ifdLogLevel: 0x000F
00000003 ifdhandler.c:110:CreateChannelByNameOrChannel() Lun: 0, device: usb:096e/080a:libudev:1:/dev/bus/usb/003/013
00000003 ccid_usb.c:237:OpenUSBByName() Reader index: 0, Device: usb:096e/080a:libudev:1:/dev/bus/usb/003/013
00000004 ccid_usb.c:269:OpenUSBByName() interface_number: 1
00000001 ccid_usb.c:270:OpenUSBByName() usb bus/device: 3/13
00000002 ccid_usb.c:287:OpenUSBByName() Using: /usr/local/lib/pcsc/drivers/ifd-ccid.bundle/Contents/Info.plist
00000388 ccid_usb.c:305:OpenUSBByName() ifdManufacturerString: Ludovic Rousseau (ludovic.rousseau at free.fr)
00000004 ccid_usb.c:306:OpenUSBByName() ifdProductString: Generic CCID driver
00000002 ccid_usb.c:307:OpenUSBByName() Copyright: This driver is protected by terms of the GNU Lesser General Public License version 2.1, or (at your option) any later version.
00003565 ccid_usb.c:391:OpenUSBByName() Try device: 3/13
00000005 ccid_usb.c:401:OpenUSBByName() vid/pid : 096E/080A
00000001 ccid_usb.c:448:OpenUSBByName() Checking device: 3/13
00000012 ccid_usb.c:510:OpenUSBByName() Trying to open USB bus/device: 3/13
00000049 ccid_usb.c:612:OpenUSBByName() Found Vendor/Product: 096E/080A (FT ePass2003Auto)
00000013 ccid_usb.c:614:OpenUSBByName() Using USB bus/device: 3/13
00000002 ccid_usb.c:666:OpenUSBByName() bNumDataRatesSupported is 0
00000743 ccid_usb.c:1230:InterruptRead() before (0)
00100162 ccid_usb.c:1276:InterruptRead() after (0) (2)
00000020 -> 000000 65 00 00 00 00 00 00 00 00 00 
00000372 <- 000000 81 00 00 00 00 00 00 00 00 00 
00000020 -> 000000 65 00 00 00 00 00 01 00 00 00 
00000296 <- 000000 81 00 00 00 00 00 01 00 00 00 
00000020 ifdhandler.c:379:IFDHGetCapabilities() tag: 0xFB3, usb:096e/080a:libudev:1:/dev/bus/usb/003/013 (lun: 0)
00000002 readerfactory.c:395:RFAddReader() Using the reader polling thread
00000002 ifdhandler.c:1813:IFDHICCPresence() usb:096e/080a:libudev:1:/dev/bus/usb/003/013 (lun: 0)
00000002 -> 000000 65 00 00 00 00 00 02 00 00 00 
00000350 <- 000000 81 00 00 00 00 00 02 00 00 00 
00000009 ifdhandler.c:1934:IFDHICCPresence() Card present
00000062 ifdhandler.c:379:IFDHGetCapabilities() tag: 0xFAE, usb:096e/080a:libudev:1:/dev/bus/usb/003/013 (lun: 0)
00000003 ifdhandler.c:470:IFDHGetCapabilities() Reader supports 1 slot(s)
00000011 ifdhandler.c:1813:IFDHICCPresence() usb:096e/080a:libudev:1:/dev/bus/usb/003/013 (lun: 0)
00000008 -> 000000 65 00 00 00 00 00 03 00 00 00 
00000294 <- 000000 81 00 00 00 00 00 03 00 00 00 
00000004 ifdhandler.c:1934:IFDHICCPresence() Card present
00000002 ifdhandler.c:1813:IFDHICCPresence() usb:096e/080a:libudev:1:/dev/bus/usb/003/013 (lun: 0)
00000013 -> 000000 65 00 00 00 00 00 04 00 00 00 
00000356 <- 000000 81 00 00 00 00 00 04 00 00 00 
00000009 ifdhandler.c:1934:IFDHICCPresence() Card present
00000013 ifdhandler.c:1146:IFDHPowerICC() action: PowerUp, usb:096e/080a:libudev:1:/dev/bus/usb/003/013 (lun: 0)
00000003 -> 000000 62 00 00 00 00 00 05 01 00 00 
00005804 <- 000000 80 17 00 00 00 00 05 00 00 00 3B 9F 95 81 31 FE 9F 00 66 46 53 05 23 00 25 71 DF 00 00 03 90 00 96 
00000030 eventhandler.c:286:EHStatusHandlerThread() powerState: POWER_STATE_POWERED
00000004 Card ATR: 3B 9F 95 81 31 FE 9F 00 66 46 53 05 23 00 25 71 DF 00 00 03 90 00 96 
00000003 ifdhandler.c:1813:IFDHICCPresence() usb:096e/080a:libudev:1:/dev/bus/usb/003/013 (lun: 0)
00000002 -> 000000 65 00 00 00 00 00 06 00 00 00 
00000361 <- 000000 81 00 00 00 00 00 06 00 00 00 
00000010 ifdhandler.c:1934:IFDHICCPresence() Card present
00000013 ifdhandler.c:308:IFDHPolling() usb:096e/080a:libudev:1:/dev/bus/usb/003/013 (lun: 0) 5000 ms
00000002 ccid_usb.c:1230:InterruptRead() before (0)
00060631 ccid_usb.c:1276:InterruptRead() after (0) (0)
00000010 NotifySlotChange: 50 03 
00000014 ifdhandler.c:1813:IFDHICCPresence() usb:096e/080a:libudev:1:/dev/bus/usb/003/013 (lun: 0)
00000003 -> 000000 65 00 00 00 00 00 07 00 00 00 
00000368 <- 000000 81 00 00 00 00 00 07 00 00 00 
00000010 ifdhandler.c:1934:IFDHICCPresence() Card present
00000013 ifdhandler.c:1146:IFDHPowerICC() action: PowerDown, usb:096e/080a:libudev:1:/dev/bus/usb/003/013 (lun: 0)
00000004 -> 000000 63 00 00 00 00 00 08 00 00 00 
00000527 <- 000000 81 00 00 00 00 00 08 00 00 00 
00000021 eventhandler.c:479:EHStatusHandlerThread() powerState: POWER_STATE_UNPOWERED
00000003 ifdhandler.c:1813:IFDHICCPresence() usb:096e/080a:libudev:1:/dev/bus/usb/003/013 (lun: 0)
00000003 -> 000000 65 00 00 00 00 00 09 00 00 00 
00000367 <- 000000 81 00 00 00 00 00 09 00 00 00 
00000009 ifdhandler.c:1934:IFDHICCPresence() Card present
00000013 ifdhandler.c:308:IFDHPolling() usb:096e/080a:libudev:1:/dev/bus/usb/003/013 (lun: 0) 600000 ms
00000002 ccid_usb.c:1230:InterruptRead() before (0)



More information about the pcsclite-muscle mailing list