[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
[36m00000005[0m [34mpcscdaemon.c:357:main() Force colored logs[0m
[36m00000085[0m configfile.l:358:DBGetReaderList() Parsing conf file: /usr/local/etc/reader.conf.d
[36m00000014[0m [34mpcscdaemon.c:672:main() pcsc-lite 1.8.17 daemon ready.[0m
[36m00002631[0m hotplug_libudev.c:294:get_driver() Looking for a driver for VID: 0x1D6B, PID: 0x0002, path: /dev/bus/usb/003/001
[36m00000097[0m hotplug_libudev.c:294:get_driver() Looking for a driver for VID: 0x1D6B, PID: 0x0002, path: /dev/bus/usb/003/001
[36m00000100[0m hotplug_libudev.c:294:get_driver() Looking for a driver for VID: 0x138A, PID: 0x0050, path: /dev/bus/usb/003/005
[36m00000083[0m hotplug_libudev.c:294:get_driver() Looking for a driver for VID: 0x1D6B, PID: 0x0002, path: /dev/bus/usb/003/001
[36m00000079[0m hotplug_libudev.c:294:get_driver() Looking for a driver for VID: 0x04CA, PID: 0x0061, path: /dev/bus/usb/003/002
[36m00000077[0m hotplug_libudev.c:294:get_driver() Looking for a driver for VID: 0x1D6B, PID: 0x0002, path: /dev/bus/usb/003/001
[36m00000080[0m hotplug_libudev.c:294:get_driver() Looking for a driver for VID: 0x8087, PID: 0x07DC, path: /dev/bus/usb/003/003
[36m00000077[0m hotplug_libudev.c:294:get_driver() Looking for a driver for VID: 0x8087, PID: 0x07DC, path: /dev/bus/usb/003/003
[36m00000074[0m hotplug_libudev.c:294:get_driver() Looking for a driver for VID: 0x1D6B, PID: 0x0002, path: /dev/bus/usb/003/001
[36m00000078[0m hotplug_libudev.c:294:get_driver() Looking for a driver for VID: 0x064E, PID: 0xC341, path: /dev/bus/usb/003/004
[36m00000077[0m hotplug_libudev.c:294:get_driver() Looking for a driver for VID: 0x064E, PID: 0xC341, path: /dev/bus/usb/003/004
[36m00000116[0m hotplug_libudev.c:294:get_driver() Looking for a driver for VID: 0x1D6B, PID: 0x0003, path: /dev/bus/usb/004/001
[36m00000113[0m hotplug_libudev.c:294:get_driver() Looking for a driver for VID: 0x1D6B, PID: 0x0002, path: /dev/bus/usb/001/001
[36m00000080[0m hotplug_libudev.c:294:get_driver() Looking for a driver for VID: 0x1D6B, PID: 0x0002, path: /dev/bus/usb/001/001
[36m00000087[0m hotplug_libudev.c:294:get_driver() Looking for a driver for VID: 0x8087, PID: 0x8008, path: /dev/bus/usb/001/002
[36m00000113[0m hotplug_libudev.c:294:get_driver() Looking for a driver for VID: 0x1D6B, PID: 0x0002, path: /dev/bus/usb/002/001
[36m00000071[0m hotplug_libudev.c:294:get_driver() Looking for a driver for VID: 0x1D6B, PID: 0x0002, path: /dev/bus/usb/002/001
[36m00000082[0m hotplug_libudev.c:294:get_driver() Looking for a driver for VID: 0x8087, PID: 0x8000, path: /dev/bus/usb/002/002
[36m03473026[0m [34mhotplug_libudev.c:648:HPEstablishUSBNotifications() USB Device add[0m
[36m00000456[0m hotplug_libudev.c:294:get_driver() Looking for a driver for VID: 0x096E, PID: 0x080A, path: /dev/bus/usb/003/013
[36m00000015[0m [34mhotplug_libudev.c:433:HPAddDevice() Adding USB device: FT ePass2003Auto[0m
[36m00000157[0m [34mreaderfactory.c:1079:RFInitializeReader() Attempting startup of FT ePass2003Auto 00 00 using /usr/local/lib/pcsc/drivers/ifd-ccid.bundle/Contents/Linux/libccid.so[0m
[36m00000433[0m [34mreaderfactory.c:954:RFBindFunctions() Loading IFD Handler 3.0[0m
[36m00000040[0m [34mifdhandler.c:1953:init_driver() Driver version: 1.4.24[0m
[36m00000748[0m [34mifdhandler.c:1970:init_driver() LogLevel: 0x0003[0m
[36m00000035[0m [34mifdhandler.c:1981:init_driver() DriverOptions: 0x0000[0m
[36m00000265[0m [34mifdhandler.c:1994:init_driver() LogLevel from LIBCCID_ifdLogLevel: 0x000F[0m
[36m00000009[0m [34mifdhandler.c:110:CreateChannelByNameOrChannel() Lun: 0, device: usb:096e/080a:libudev:0:/dev/bus/usb/003/013[0m
[36m00000006[0m ccid_usb.c:237:OpenUSBByName() Reader index: 0, Device: usb:096e/080a:libudev:0:/dev/bus/usb/003/013
[36m00000009[0m ccid_usb.c:269:OpenUSBByName() interface_number: 0
[36m00000004[0m ccid_usb.c:270:OpenUSBByName() usb bus/device: 3/13
[36m00000004[0m [34mccid_usb.c:287:OpenUSBByName() Using: /usr/local/lib/pcsc/drivers/ifd-ccid.bundle/Contents/Info.plist[0m
[36m00000694[0m [34mccid_usb.c:305:OpenUSBByName() ifdManufacturerString: Ludovic Rousseau (ludovic.rousseau at free.fr)[0m
[36m00000008[0m [34mccid_usb.c:306:OpenUSBByName() ifdProductString: Generic CCID driver[0m
[36m00000005[0m [34mccid_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.[0m
[36m00005457[0m ccid_usb.c:391:OpenUSBByName() Try device: 3/13
[36m00000006[0m ccid_usb.c:401:OpenUSBByName() vid/pid : 096E/080A
[36m00000003[0m ccid_usb.c:448:OpenUSBByName() Checking device: 3/13
[36m00000002[0m ccid_usb.c:510:OpenUSBByName() Trying to open USB bus/device: 3/13
[36m00000074[0m [34mccid_usb.c:590:OpenUSBByName() Found interface 1 but expecting 0[0m
[36m00000004[0m [34mccid_usb.c:592:OpenUSBByName() Wrong interface for USB device 3/13. Checking next one.[0m
[36m00000075[0m [34mccid_usb.c:189:close_libusb_if_needed() libusb_exit[0m
[36m00000046[0m [34mccid_usb.c:735:OpenUSBByName() Device not found?[0m
[36m00000006[0m [01;31mifdhandler.c:144:CreateChannelByNameOrChannel() failed[0m
[36m00000005[0m [01;31mreaderfactory.c:1110:RFInitializeReader() Open Port 0x200000 Failed (usb:096e/080a:libudev:0:/dev/bus/usb/003/013)[0m
[36m00000002[0m [35mreaderfactory.c:375:RFAddReader() FT ePass2003Auto init failed.[0m
[36m00000004[0m readerfactory.c:608:RFRemoveReader() UnrefReader() count was: 1
[36m00000002[0m [34mreaderfactory.c:1130:RFUnInitializeReader() Attempting shutdown of FT ePass2003Auto 00 00.[0m
[36m00000001[0m [34mreaderfactory.c:991:RFUnloadReader() Unloading reader driver.[0m
[36m00000062[0m [34mhotplug_libudev.c:648:HPEstablishUSBNotifications() USB Device add[0m
[36m00000112[0m hotplug_libudev.c:294:get_driver() Looking for a driver for VID: 0x096E, PID: 0x080A, path: /dev/bus/usb/003/013
[36m00000005[0m [34mhotplug_libudev.c:433:HPAddDevice() Adding USB device: FT ePass2003Auto[0m
[36m00000047[0m [34mreaderfactory.c:1079:RFInitializeReader() Attempting startup of FT ePass2003Auto 00 00 using /usr/local/lib/pcsc/drivers/ifd-ccid.bundle/Contents/Linux/libccid.so[0m
[36m00000153[0m [34mreaderfactory.c:954:RFBindFunctions() Loading IFD Handler 3.0[0m
[36m00000015[0m [34mifdhandler.c:1953:init_driver() Driver version: 1.4.24[0m
[36m00000393[0m [34mifdhandler.c:1970:init_driver() LogLevel: 0x0003[0m
[36m00000004[0m [34mifdhandler.c:1981:init_driver() DriverOptions: 0x0000[0m
[36m00000123[0m [34mifdhandler.c:1994:init_driver() LogLevel from LIBCCID_ifdLogLevel: 0x000F[0m
[36m00000003[0m [34mifdhandler.c:110:CreateChannelByNameOrChannel() Lun: 0, device: usb:096e/080a:libudev:1:/dev/bus/usb/003/013[0m
[36m00000003[0m ccid_usb.c:237:OpenUSBByName() Reader index: 0, Device: usb:096e/080a:libudev:1:/dev/bus/usb/003/013
[36m00000004[0m ccid_usb.c:269:OpenUSBByName() interface_number: 1
[36m00000001[0m ccid_usb.c:270:OpenUSBByName() usb bus/device: 3/13
[36m00000002[0m [34mccid_usb.c:287:OpenUSBByName() Using: /usr/local/lib/pcsc/drivers/ifd-ccid.bundle/Contents/Info.plist[0m
[36m00000388[0m [34mccid_usb.c:305:OpenUSBByName() ifdManufacturerString: Ludovic Rousseau (ludovic.rousseau at free.fr)[0m
[36m00000004[0m [34mccid_usb.c:306:OpenUSBByName() ifdProductString: Generic CCID driver[0m
[36m00000002[0m [34mccid_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.[0m
[36m00003565[0m ccid_usb.c:391:OpenUSBByName() Try device: 3/13
[36m00000005[0m ccid_usb.c:401:OpenUSBByName() vid/pid : 096E/080A
[36m00000001[0m ccid_usb.c:448:OpenUSBByName() Checking device: 3/13
[36m00000012[0m ccid_usb.c:510:OpenUSBByName() Trying to open USB bus/device: 3/13
[36m00000049[0m [34mccid_usb.c:612:OpenUSBByName() Found Vendor/Product: 096E/080A (FT ePass2003Auto)[0m
[36m00000013[0m [34mccid_usb.c:614:OpenUSBByName() Using USB bus/device: 3/13[0m
[36m00000002[0m [34mccid_usb.c:666:OpenUSBByName() bNumDataRatesSupported is 0[0m
[36m00000743[0m ccid_usb.c:1230:InterruptRead() before (0)
[36m00100162[0m ccid_usb.c:1276:InterruptRead() after (0) (2)
[36m00000020[0m -> 000000 65 00 00 00 00 00 00 00 00 00
[36m00000372[0m <- 000000 81 00 00 00 00 00 00 00 00 00
[36m00000020[0m -> 000000 65 00 00 00 00 00 01 00 00 00
[36m00000296[0m <- 000000 81 00 00 00 00 00 01 00 00 00
[36m00000020[0m [34mifdhandler.c:379:IFDHGetCapabilities() tag: 0xFB3, usb:096e/080a:libudev:1:/dev/bus/usb/003/013 (lun: 0)[0m
[36m00000002[0m [34mreaderfactory.c:395:RFAddReader() Using the reader polling thread[0m
[36m00000002[0m ifdhandler.c:1813:IFDHICCPresence() usb:096e/080a:libudev:1:/dev/bus/usb/003/013 (lun: 0)
[36m00000002[0m -> 000000 65 00 00 00 00 00 02 00 00 00
[36m00000350[0m <- 000000 81 00 00 00 00 00 02 00 00 00
[36m00000009[0m ifdhandler.c:1934:IFDHICCPresence() Card present
[36m00000062[0m [34mifdhandler.c:379:IFDHGetCapabilities() tag: 0xFAE, usb:096e/080a:libudev:1:/dev/bus/usb/003/013 (lun: 0)[0m
[36m00000003[0m [34mifdhandler.c:470:IFDHGetCapabilities() Reader supports 1 slot(s)[0m
[36m00000011[0m ifdhandler.c:1813:IFDHICCPresence() usb:096e/080a:libudev:1:/dev/bus/usb/003/013 (lun: 0)
[36m00000008[0m -> 000000 65 00 00 00 00 00 03 00 00 00
[36m00000294[0m <- 000000 81 00 00 00 00 00 03 00 00 00
[36m00000004[0m ifdhandler.c:1934:IFDHICCPresence() Card present
[36m00000002[0m ifdhandler.c:1813:IFDHICCPresence() usb:096e/080a:libudev:1:/dev/bus/usb/003/013 (lun: 0)
[36m00000013[0m -> 000000 65 00 00 00 00 00 04 00 00 00
[36m00000356[0m <- 000000 81 00 00 00 00 00 04 00 00 00
[36m00000009[0m ifdhandler.c:1934:IFDHICCPresence() Card present
[36m00000013[0m [34mifdhandler.c:1146:IFDHPowerICC() action: PowerUp, usb:096e/080a:libudev:1:/dev/bus/usb/003/013 (lun: 0)[0m
[36m00000003[0m -> 000000 62 00 00 00 00 00 05 01 00 00
[36m00005804[0m <- 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
[36m00000030[0m eventhandler.c:286:EHStatusHandlerThread() powerState: POWER_STATE_POWERED
[36m00000004[0m [34mCard ATR: 3B 9F 95 81 31 FE 9F 00 66 46 53 05 23 00 25 71 DF 00 00 03 90 00 96 [0m
[36m00000003[0m ifdhandler.c:1813:IFDHICCPresence() usb:096e/080a:libudev:1:/dev/bus/usb/003/013 (lun: 0)
[36m00000002[0m -> 000000 65 00 00 00 00 00 06 00 00 00
[36m00000361[0m <- 000000 81 00 00 00 00 00 06 00 00 00
[36m00000010[0m ifdhandler.c:1934:IFDHICCPresence() Card present
[36m00000013[0m [34mifdhandler.c:308:IFDHPolling() usb:096e/080a:libudev:1:/dev/bus/usb/003/013 (lun: 0) 5000 ms[0m
[36m00000002[0m ccid_usb.c:1230:InterruptRead() before (0)
[36m00060631[0m ccid_usb.c:1276:InterruptRead() after (0) (0)
[36m00000010[0m NotifySlotChange: 50 03
[36m00000014[0m ifdhandler.c:1813:IFDHICCPresence() usb:096e/080a:libudev:1:/dev/bus/usb/003/013 (lun: 0)
[36m00000003[0m -> 000000 65 00 00 00 00 00 07 00 00 00
[36m00000368[0m <- 000000 81 00 00 00 00 00 07 00 00 00
[36m00000010[0m ifdhandler.c:1934:IFDHICCPresence() Card present
[36m00000013[0m [34mifdhandler.c:1146:IFDHPowerICC() action: PowerDown, usb:096e/080a:libudev:1:/dev/bus/usb/003/013 (lun: 0)[0m
[36m00000004[0m -> 000000 63 00 00 00 00 00 08 00 00 00
[36m00000527[0m <- 000000 81 00 00 00 00 00 08 00 00 00
[36m00000021[0m eventhandler.c:479:EHStatusHandlerThread() powerState: POWER_STATE_UNPOWERED
[36m00000003[0m ifdhandler.c:1813:IFDHICCPresence() usb:096e/080a:libudev:1:/dev/bus/usb/003/013 (lun: 0)
[36m00000003[0m -> 000000 65 00 00 00 00 00 09 00 00 00
[36m00000367[0m <- 000000 81 00 00 00 00 00 09 00 00 00
[36m00000009[0m ifdhandler.c:1934:IFDHICCPresence() Card present
[36m00000013[0m [34mifdhandler.c:308:IFDHPolling() usb:096e/080a:libudev:1:/dev/bus/usb/003/013 (lun: 0) 600000 ms[0m
[36m00000002[0m ccid_usb.c:1230:InterruptRead() before (0)
More information about the pcsclite-muscle
mailing list