[Pcsclite-muscle] pcscd Yubico Yubikey 4 U2F+CCID init failed
Trevor Clark
r.trevor.clark at gmail.com
Sat Apr 17 15:31:16 BST 2021
I cannot get pcscd to work with my yubikey on RHEL 8 ( I have also
tried Fedora 33 with no luck either ).
smart card reader driver name and version: Yubico Yubikey 4 U2F+CCID 00 00
This is a USB type A Yubikey.
pcsc-lite version:
```
Name : pcsc-lite
Version : 1.8.23
Release : 3.el8
Architecture : x86_64
Size : 224 k
Source : pcsc-lite-1.8.23-3.el8.src.rpm
```
the output of the command "/usr/sbin/pcscd --version"
```
pcsc-lite version 1.8.23.
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-redhat-linux-gnu libsystemd serial usb
libudev usbdropdir=/usr/lib64/pcsc/drivers ipcdir=/var/run/pcscd
configdir=/etc/reader.conf.d
```
Operating system or GNU/Linux distribution name and version: RHEL 8.3
When I look at the status of pcscd I get the following stating that
Yubico init failed
```
pcscd.service - PC/SC Smart Card Daemon
Loaded: loaded (/usr/lib/systemd/system/pcscd.service; indirect;
vendor preset: disabled)
Active: active (running) since Fri 2021-04-16 19:44:35 PDT; 57min ago
Main PID: 82341 (pcscd)
Tasks: 5 (limit: 150548)
Memory: 2.3M
CGroup: /system.slice/pcscd.service
└─82341 /usr/sbin/pcscd --foreground --auto-exit
Apr 16 19:44:35 tc-desktop systemd[1]: Started PC/SC Smart Card Daemon.
Apr 16 19:44:35 tc-desktop pcscd[82341]: 00000000
ifdhandler.c:150:CreateChannelByNameOrChannel() failed
Apr 16 19:44:35 tc-desktop pcscd[82341]: 00000010
readerfactory.c:1106:RFInitializeReader() Open Port 0x200000 Failed
(usb:1050/0406:libudev:0:/dev/bus>
Apr 16 19:44:35 tc-desktop pcscd[82341]: 00000002
readerfactory.c:376:RFAddReader() Yubico Yubikey 4 U2F+CCID init
failed.
```
Please let me know if there is anything other information that you
need. I would really like to resolve this.
Thanks for all your hard work and help in advance.
-Trevor Clark
-------------- next part --------------
00000000 debuglog.c:289:DebugLogSetLevel() debug level=debug
00000008 debuglog.c:310:DebugLogSetCategory() Debug options: APDU
[36m00000002[0m [34mpcscdaemon.c:352:main() Force colored logs[0m
[36m00000020[0m [01;31mutils.c:82:GetDaemonPid() Can't open /var/run/pcscd/pcscd.pid: No such file or directory[0m
[36m00000057[0m configfile.l:285:DBGetReaderListDir() Parsing conf directory: /etc/reader.conf.d
[36m00000007[0m configfile.l:322:DBGetReaderListDir() Skipping non regular file: .
[36m00000001[0m configfile.l:322:DBGetReaderListDir() Skipping non regular file: ..
[36m00000002[0m configfile.l:361:DBGetReaderList() Parsing conf file: /etc/reader.conf.d/libccidtwin
[36m00000023[0m [34mpcscdaemon.c:662:main() pcsc-lite 1.8.23 daemon ready.[0m
[36m00003279[0m hotplug_libudev.c:297:get_driver() Looking for a driver for VID: 0x1D6B, PID: 0x0002, path: /dev/bus/usb/005/001
[36m00000143[0m hotplug_libudev.c:297:get_driver() Looking for a driver for VID: 0x1D6B, PID: 0x0003, path: /dev/bus/usb/006/001
[36m00000115[0m hotplug_libudev.c:297:get_driver() Looking for a driver for VID: 0x1D6B, PID: 0x0002, path: /dev/bus/usb/003/001
[36m00000070[0m hotplug_libudev.c:297:get_driver() Looking for a driver for VID: 0x1D6B, PID: 0x0002, path: /dev/bus/usb/003/001
[36m00000074[0m hotplug_libudev.c:297:get_driver() Looking for a driver for VID: 0x0424, PID: 0x2134, path: /dev/bus/usb/003/003
[36m00000079[0m hotplug_libudev.c:297:get_driver() Looking for a driver for VID: 0x045E, PID: 0x082C, path: /dev/bus/usb/003/004
[36m00000079[0m hotplug_libudev.c:297:get_driver() Looking for a driver for VID: 0x045E, PID: 0x082C, path: /dev/bus/usb/003/004
[36m00000077[0m hotplug_libudev.c:297:get_driver() Looking for a driver for VID: 0x0424, PID: 0x2134, path: /dev/bus/usb/003/003
[36m00000078[0m hotplug_libudev.c:297:get_driver() Looking for a driver for VID: 0x3057, PID: 0x0001, path: /dev/bus/usb/003/005
[36m00000069[0m hotplug_libudev.c:297:get_driver() Looking for a driver for VID: 0x0424, PID: 0x2134, path: /dev/bus/usb/003/003
[36m00000077[0m hotplug_libudev.c:297:get_driver() Looking for a driver for VID: 0x04B8, PID: 0x013D, path: /dev/bus/usb/003/006
[36m00000070[0m hotplug_libudev.c:297:get_driver() Looking for a driver for VID: 0x0424, PID: 0x2134, path: /dev/bus/usb/003/003
[36m00000066[0m hotplug_libudev.c:297:get_driver() Looking for a driver for VID: 0x1D6B, PID: 0x0002, path: /dev/bus/usb/003/001
[36m00000070[0m hotplug_libudev.c:297:get_driver() Looking for a driver for VID: 0x1050, PID: 0x0406, path: /dev/bus/usb/003/007
[36m00000004[0m [34mhotplug_libudev.c:436:HPAddDevice() Adding USB device: Yubico Yubikey 4 U2F+CCID[0m
[36m00000027[0m [34mreaderfactory.c:1075:RFInitializeReader() Attempting startup of Yubico Yubikey 4 U2F+CCID 00 00 using /usr/lib64/pcsc/drivers/ifd-ccid.bundle/Contents/Linux/libccid.so[0m
[36m00000149[0m [34mreaderfactory.c:950:RFBindFunctions() Loading IFD Handler 3.0[0m
[36m00000015[0m [34mifdhandler.c:1961:init_driver() Driver version: 1.4.29[0m
[36m00000323[0m [34mifdhandler.c:1978:init_driver() LogLevel: 0x0003[0m
[36m00000004[0m [34mifdhandler.c:1989:init_driver() DriverOptions: 0x0000[0m
[36m00000114[0m [34mifdhandler.c:2002:init_driver() LogLevel from LIBCCID_ifdLogLevel: 0x000F[0m
[36m00000003[0m [34mifdhandler.c:110:CreateChannelByNameOrChannel() Lun: 0, device: usb:1050/0406:libudev:0:/dev/bus/usb/003/007[0m
[36m00000003[0m ccid_usb.c:237:OpenUSBByName() Reader index: 0, Device: usb:1050/0406:libudev:0:/dev/bus/usb/003/007
[36m00000005[0m ccid_usb.c:269:OpenUSBByName() interface_number: 0
[36m00000002[0m ccid_usb.c:270:OpenUSBByName() usb bus/device: 3/7
[36m00000002[0m [34mccid_usb.c:302:OpenUSBByName() Using: /usr/lib64/pcsc/drivers/ifd-ccid.bundle/Contents/Info.plist[0m
[36m00000327[0m [34mccid_usb.c:320:OpenUSBByName() ifdManufacturerString: Ludovic Rousseau (ludovic.rousseau at free.fr)[0m
[36m00000003[0m [34mccid_usb.c:321:OpenUSBByName() ifdProductString: Generic CCID driver[0m
[36m00000003[0m [34mccid_usb.c:322: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
[36m00003174[0m ccid_usb.c:406:OpenUSBByName() Try device: 3/7
[36m00000004[0m ccid_usb.c:416:OpenUSBByName() vid/pid : 1050/0406
[36m00000002[0m ccid_usb.c:483:OpenUSBByName() Checking device: 3/7
[36m00000004[0m ccid_usb.c:554:OpenUSBByName() Trying to open USB bus/device: 3/7
[36m00000055[0m [34mccid_usb.c:634:OpenUSBByName() Found interface 1 but expecting 0[0m
[36m00000003[0m [34mccid_usb.c:636:OpenUSBByName() Wrong interface for USB device 3/7. Checking next one.[0m
[36m00000022[0m [34mccid_usb.c:189:close_libusb_if_needed() libusb_exit[0m
[36m00000059[0m [34mccid_usb.c:789:OpenUSBByName() Device not found?[0m
[36m00000002[0m [01;31mifdhandler.c:150:CreateChannelByNameOrChannel() failed[0m
[36m00000003[0m [01;31mreaderfactory.c:1106:RFInitializeReader() Open Port 0x200000 Failed (usb:1050/0406:libudev:0:/dev/bus/usb/003/007)[0m
[36m00000002[0m [35mreaderfactory.c:376:RFAddReader() Yubico Yubikey 4 U2F+CCID init failed.[0m
[36m00000002[0m readerfactory.c:610:RFRemoveReader() UnrefReader() count was: 1
[36m00000002[0m [34mreaderfactory.c:1126:RFUnInitializeReader() Attempting shutdown of Yubico Yubikey 4 U2F+CCID 00 00.[0m
[36m00000002[0m [34mreaderfactory.c:987:RFUnloadReader() Unloading reader driver.[0m
[36m00000109[0m hotplug_libudev.c:297:get_driver() Looking for a driver for VID: 0x1050, PID: 0x0406, path: /dev/bus/usb/003/007
[36m00000006[0m [34mhotplug_libudev.c:436:HPAddDevice() Adding USB device: Yubico Yubikey 4 U2F+CCID[0m
[36m00000026[0m [34mreaderfactory.c:1075:RFInitializeReader() Attempting startup of Yubico Yubikey 4 U2F+CCID 00 00 using /usr/lib64/pcsc/drivers/ifd-ccid.bundle/Contents/Linux/libccid.so[0m
[36m00000139[0m [34mreaderfactory.c:950:RFBindFunctions() Loading IFD Handler 3.0[0m
[36m00000014[0m [34mifdhandler.c:1961:init_driver() Driver version: 1.4.29[0m
[36m00000326[0m [34mifdhandler.c:1978:init_driver() LogLevel: 0x0003[0m
[36m00000003[0m [34mifdhandler.c:1989:init_driver() DriverOptions: 0x0000[0m
[36m00000112[0m [34mifdhandler.c:2002:init_driver() LogLevel from LIBCCID_ifdLogLevel: 0x000F[0m
[36m00000002[0m [34mifdhandler.c:110:CreateChannelByNameOrChannel() Lun: 0, device: usb:1050/0406:libudev:1:/dev/bus/usb/003/007[0m
[36m00000003[0m ccid_usb.c:237:OpenUSBByName() Reader index: 0, Device: usb:1050/0406:libudev:1:/dev/bus/usb/003/007
[36m00000004[0m ccid_usb.c:269:OpenUSBByName() interface_number: 1
[36m00000002[0m ccid_usb.c:270:OpenUSBByName() usb bus/device: 3/7
[36m00000001[0m [34mccid_usb.c:302:OpenUSBByName() Using: /usr/lib64/pcsc/drivers/ifd-ccid.bundle/Contents/Info.plist[0m
[36m00000327[0m [34mccid_usb.c:320:OpenUSBByName() ifdManufacturerString: Ludovic Rousseau (ludovic.rousseau at free.fr)[0m
[36m00000003[0m [34mccid_usb.c:321:OpenUSBByName() ifdProductString: Generic CCID driver[0m
[36m00000002[0m [34mccid_usb.c:322: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
[36m00002968[0m ccid_usb.c:406:OpenUSBByName() Try device: 3/7
[36m00000005[0m ccid_usb.c:416:OpenUSBByName() vid/pid : 1050/0406
[36m00000001[0m ccid_usb.c:483:OpenUSBByName() Checking device: 3/7
[36m00000004[0m ccid_usb.c:554:OpenUSBByName() Trying to open USB bus/device: 3/7
[36m00000046[0m [34mccid_usb.c:656:OpenUSBByName() Found Vendor/Product: 1050/0406 (Yubico Yubikey 4 U2F+CCID)[0m
[36m00000006[0m [34mccid_usb.c:658:OpenUSBByName() Using USB bus/device: 3/7[0m
[36m00000002[0m [34mccid_usb.c:717:OpenUSBByName() bNumDataRatesSupported is 0[0m
[36m00000402[0m ccid_usb.c:1296:InterruptRead() before (0)
[36m00100113[0m ccid_usb.c:1342:InterruptRead() after (0) (2)
[36m00000010[0m -> 000000 65 00 00 00 00 00 00 00 00 00
[36m00000108[0m <- 000000 81 00 00 00 00 00 00 00 00 00
[36m00000005[0m -> 000000 65 00 00 00 00 00 01 00 00 00
[36m00000109[0m <- 000000 81 00 00 00 00 00 01 00 00 00
[36m00000007[0m [34mifdhandler.c:381:IFDHGetCapabilities() tag: 0xFB3, usb:1050/0406:libudev:1:/dev/bus/usb/003/007 (lun: 0)[0m
[36m00000002[0m [34mreaderfactory.c:396:RFAddReader() Using the reader polling thread[0m
[36m00000002[0m ifdhandler.c:1821:IFDHICCPresence() usb:1050/0406:libudev:1:/dev/bus/usb/003/007 (lun: 0)
[36m00000003[0m -> 000000 65 00 00 00 00 00 02 00 00 00
[36m00000100[0m <- 000000 81 00 00 00 00 00 02 00 00 00
[36m00000004[0m ifdhandler.c:1942:IFDHICCPresence() Card present
[36m00000065[0m [34mifdhandler.c:381:IFDHGetCapabilities() tag: 0xFAE, usb:1050/0406:libudev:1:/dev/bus/usb/003/007 (lun: 0)[0m
[36m00000003[0m [34mifdhandler.c:476:IFDHGetCapabilities() Reader supports 1 slot(s)[0m
[36m00000018[0m ifdhandler.c:1821:IFDHICCPresence() usb:1050/0406:libudev:1:/dev/bus/usb/003/007 (lun: 0)
[36m00000005[0m -> 000000 65 00 00 00 00 00 03 00 00 00
[36m00000123[0m <- 000000 81 00 00 00 00 00 03 00 00 00
[36m00000004[0m ifdhandler.c:1942:IFDHICCPresence() Card present
[36m00000002[0m ifdhandler.c:1821:IFDHICCPresence() usb:1050/0406:libudev:1:/dev/bus/usb/003/007 (lun: 0)
[36m00000002[0m -> 000000 65 00 00 00 00 00 04 00 00 00
[36m00000068[0m hotplug_libudev.c:297:get_driver() Looking for a driver for VID: 0x1D6B, PID: 0x0003, path: /dev/bus/usb/004/001
[36m00000012[0m <- 000000 81 00 00 00 00 00 04 00 00 00
[36m00000002[0m ifdhandler.c:1942:IFDHICCPresence() Card present
[36m00000002[0m [34mifdhandler.c:1154:IFDHPowerICC() action: PowerUp, usb:1050/0406:libudev:1:/dev/bus/usb/003/007 (lun: 0)[0m
[36m00000002[0m -> 000000 62 00 00 00 00 00 05 00 00 00
[36m00000059[0m hotplug_libudev.c:297:get_driver() Looking for a driver for VID: 0x1D6B, PID: 0x0003, path: /dev/bus/usb/004/001
[36m00000063[0m <- 000000 80 12 00 00 00 00 05 00 00 00 3B F8 13 00 00 81 31 FE 15 59 75 62 69 6B 65 79 34 D4
[36m00000002[0m eventhandler.c:287:EHStatusHandlerThread() powerState: POWER_STATE_POWERED
[36m00000002[0m [34mCard ATR: 3B F8 13 00 00 81 31 FE 15 59 75 62 69 6B 65 79 34 D4 [0m
[36m00000002[0m ifdhandler.c:1821:IFDHICCPresence() usb:1050/0406:libudev:1:/dev/bus/usb/003/007 (lun: 0)
[36m00000001[0m -> 000000 65 00 00 00 00 00 06 00 00 00
[36m00000010[0m hotplug_libudev.c:297:get_driver() Looking for a driver for VID: 0x0BDA, PID: 0x8153, path: /dev/bus/usb/004/002
[36m00000068[0m hotplug_libudev.c:297:get_driver() Looking for a driver for VID: 0x1D6B, PID: 0x0003, path: /dev/bus/usb/004/001
[36m00000001[0m <- 000000 81 00 00 00 00 00 06 00 00 00
[36m00000003[0m ifdhandler.c:1942:IFDHICCPresence() Card present
[36m00000001[0m [34mifdhandler.c:310:IFDHPolling() usb:1050/0406:libudev:1:/dev/bus/usb/003/007 (lun: 0) 5000 ms[0m
[36m00000002[0m ccid_usb.c:1296:InterruptRead() before (0)
[36m00000071[0m hotplug_libudev.c:297:get_driver() Looking for a driver for VID: 0x0424, PID: 0x5534, path: /dev/bus/usb/004/003
[36m00000115[0m hotplug_libudev.c:297:get_driver() Looking for a driver for VID: 0x1D6B, PID: 0x0002, path: /dev/bus/usb/001/001
[36m00000066[0m hotplug_libudev.c:297:get_driver() Looking for a driver for VID: 0x1D6B, PID: 0x0002, path: /dev/bus/usb/001/001
[36m00000073[0m hotplug_libudev.c:297:get_driver() Looking for a driver for VID: 0x8087, PID: 0x8009, path: /dev/bus/usb/001/002
[36m00000113[0m hotplug_libudev.c:297:get_driver() Looking for a driver for VID: 0x1D6B, PID: 0x0002, path: /dev/bus/usb/002/001
[36m00000066[0m hotplug_libudev.c:297:get_driver() Looking for a driver for VID: 0x1D6B, PID: 0x0002, path: /dev/bus/usb/002/001
[36m00000071[0m hotplug_libudev.c:297:get_driver() Looking for a driver for VID: 0x8087, PID: 0x8001, path: /dev/bus/usb/002/002
[36m04999565[0m ccid_usb.c:1342:InterruptRead() after (0) (2)
[36m00000009[0m ifdhandler.c:1821:IFDHICCPresence() usb:1050/0406:libudev:1:/dev/bus/usb/003/007 (lun: 0)
[36m00000003[0m -> 000000 65 00 00 00 00 00 07 00 00 00
[36m00000115[0m <- 000000 81 00 00 00 00 00 07 00 00 00
[36m00000004[0m ifdhandler.c:1942:IFDHICCPresence() Card present
[36m00000002[0m [34mifdhandler.c:1154:IFDHPowerICC() action: PowerDown, usb:1050/0406:libudev:1:/dev/bus/usb/003/007 (lun: 0)[0m
[36m00000001[0m -> 000000 63 00 00 00 00 00 08 00 00 00
[36m00000201[0m <- 000000 81 00 00 00 00 00 08 02 00 00
[36m00000003[0m eventhandler.c:480:EHStatusHandlerThread() powerState: POWER_STATE_UNPOWERED
[36m00000001[0m ifdhandler.c:1821:IFDHICCPresence() usb:1050/0406:libudev:1:/dev/bus/usb/003/007 (lun: 0)
[36m00000002[0m -> 000000 65 00 00 00 00 00 09 00 00 00
[36m00000118[0m <- 000000 81 00 00 00 00 00 09 00 00 00
[36m00000004[0m ifdhandler.c:1942:IFDHICCPresence() Card present
[36m00000002[0m [34mifdhandler.c:310:IFDHPolling() usb:1050/0406:libudev:1:/dev/bus/usb/003/007 (lun: 0) 600000 ms[0m
[36m00000005[0m ccid_usb.c:1296:InterruptRead() before (0)
More information about the pcsclite-muscle
mailing list