[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
00000002 pcscdaemon.c:352:main() Force colored logs
00000020 utils.c:82:GetDaemonPid() Can't open /var/run/pcscd/pcscd.pid: No such file or directory
00000057 configfile.l:285:DBGetReaderListDir() Parsing conf directory: /etc/reader.conf.d
00000007 configfile.l:322:DBGetReaderListDir() Skipping non regular file: .
00000001 configfile.l:322:DBGetReaderListDir() Skipping non regular file: ..
00000002 configfile.l:361:DBGetReaderList() Parsing conf file: /etc/reader.conf.d/libccidtwin
00000023 pcscdaemon.c:662:main() pcsc-lite 1.8.23 daemon ready.
00003279 hotplug_libudev.c:297:get_driver() Looking for a driver for VID: 0x1D6B, PID: 0x0002, path: /dev/bus/usb/005/001
00000143 hotplug_libudev.c:297:get_driver() Looking for a driver for VID: 0x1D6B, PID: 0x0003, path: /dev/bus/usb/006/001
00000115 hotplug_libudev.c:297:get_driver() Looking for a driver for VID: 0x1D6B, PID: 0x0002, path: /dev/bus/usb/003/001
00000070 hotplug_libudev.c:297:get_driver() Looking for a driver for VID: 0x1D6B, PID: 0x0002, path: /dev/bus/usb/003/001
00000074 hotplug_libudev.c:297:get_driver() Looking for a driver for VID: 0x0424, PID: 0x2134, path: /dev/bus/usb/003/003
00000079 hotplug_libudev.c:297:get_driver() Looking for a driver for VID: 0x045E, PID: 0x082C, path: /dev/bus/usb/003/004
00000079 hotplug_libudev.c:297:get_driver() Looking for a driver for VID: 0x045E, PID: 0x082C, path: /dev/bus/usb/003/004
00000077 hotplug_libudev.c:297:get_driver() Looking for a driver for VID: 0x0424, PID: 0x2134, path: /dev/bus/usb/003/003
00000078 hotplug_libudev.c:297:get_driver() Looking for a driver for VID: 0x3057, PID: 0x0001, path: /dev/bus/usb/003/005
00000069 hotplug_libudev.c:297:get_driver() Looking for a driver for VID: 0x0424, PID: 0x2134, path: /dev/bus/usb/003/003
00000077 hotplug_libudev.c:297:get_driver() Looking for a driver for VID: 0x04B8, PID: 0x013D, path: /dev/bus/usb/003/006
00000070 hotplug_libudev.c:297:get_driver() Looking for a driver for VID: 0x0424, PID: 0x2134, path: /dev/bus/usb/003/003
00000066 hotplug_libudev.c:297:get_driver() Looking for a driver for VID: 0x1D6B, PID: 0x0002, path: /dev/bus/usb/003/001
00000070 hotplug_libudev.c:297:get_driver() Looking for a driver for VID: 0x1050, PID: 0x0406, path: /dev/bus/usb/003/007
00000004 hotplug_libudev.c:436:HPAddDevice() Adding USB device: Yubico Yubikey 4 U2F+CCID
00000027 readerfactory.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
00000149 readerfactory.c:950:RFBindFunctions() Loading IFD Handler 3.0
00000015 ifdhandler.c:1961:init_driver() Driver version: 1.4.29
00000323 ifdhandler.c:1978:init_driver() LogLevel: 0x0003
00000004 ifdhandler.c:1989:init_driver() DriverOptions: 0x0000
00000114 ifdhandler.c:2002:init_driver() LogLevel from LIBCCID_ifdLogLevel: 0x000F
00000003 ifdhandler.c:110:CreateChannelByNameOrChannel() Lun: 0, device: usb:1050/0406:libudev:0:/dev/bus/usb/003/007
00000003 ccid_usb.c:237:OpenUSBByName() Reader index: 0, Device: usb:1050/0406:libudev:0:/dev/bus/usb/003/007
00000005 ccid_usb.c:269:OpenUSBByName() interface_number: 0
00000002 ccid_usb.c:270:OpenUSBByName() usb bus/device: 3/7
00000002 ccid_usb.c:302:OpenUSBByName() Using: /usr/lib64/pcsc/drivers/ifd-ccid.bundle/Contents/Info.plist
00000327 ccid_usb.c:320:OpenUSBByName() ifdManufacturerString: Ludovic Rousseau (ludovic.rousseau at free.fr)
00000003 ccid_usb.c:321:OpenUSBByName() ifdProductString: Generic CCID driver
00000003 ccid_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.
00003174 ccid_usb.c:406:OpenUSBByName() Try device: 3/7
00000004 ccid_usb.c:416:OpenUSBByName() vid/pid : 1050/0406
00000002 ccid_usb.c:483:OpenUSBByName() Checking device: 3/7
00000004 ccid_usb.c:554:OpenUSBByName() Trying to open USB bus/device: 3/7
00000055 ccid_usb.c:634:OpenUSBByName() Found interface 1 but expecting 0
00000003 ccid_usb.c:636:OpenUSBByName() Wrong interface for USB device 3/7. Checking next one.
00000022 ccid_usb.c:189:close_libusb_if_needed() libusb_exit
00000059 ccid_usb.c:789:OpenUSBByName() Device not found?
00000002 ifdhandler.c:150:CreateChannelByNameOrChannel() failed
00000003 readerfactory.c:1106:RFInitializeReader() Open Port 0x200000 Failed (usb:1050/0406:libudev:0:/dev/bus/usb/003/007)
00000002 readerfactory.c:376:RFAddReader() Yubico Yubikey 4 U2F+CCID init failed.
00000002 readerfactory.c:610:RFRemoveReader() UnrefReader() count was: 1
00000002 readerfactory.c:1126:RFUnInitializeReader() Attempting shutdown of Yubico Yubikey 4 U2F+CCID 00 00.
00000002 readerfactory.c:987:RFUnloadReader() Unloading reader driver.
00000109 hotplug_libudev.c:297:get_driver() Looking for a driver for VID: 0x1050, PID: 0x0406, path: /dev/bus/usb/003/007
00000006 hotplug_libudev.c:436:HPAddDevice() Adding USB device: Yubico Yubikey 4 U2F+CCID
00000026 readerfactory.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
00000139 readerfactory.c:950:RFBindFunctions() Loading IFD Handler 3.0
00000014 ifdhandler.c:1961:init_driver() Driver version: 1.4.29
00000326 ifdhandler.c:1978:init_driver() LogLevel: 0x0003
00000003 ifdhandler.c:1989:init_driver() DriverOptions: 0x0000
00000112 ifdhandler.c:2002:init_driver() LogLevel from LIBCCID_ifdLogLevel: 0x000F
00000002 ifdhandler.c:110:CreateChannelByNameOrChannel() Lun: 0, device: usb:1050/0406:libudev:1:/dev/bus/usb/003/007
00000003 ccid_usb.c:237:OpenUSBByName() Reader index: 0, Device: usb:1050/0406:libudev:1:/dev/bus/usb/003/007
00000004 ccid_usb.c:269:OpenUSBByName() interface_number: 1
00000002 ccid_usb.c:270:OpenUSBByName() usb bus/device: 3/7
00000001 ccid_usb.c:302:OpenUSBByName() Using: /usr/lib64/pcsc/drivers/ifd-ccid.bundle/Contents/Info.plist
00000327 ccid_usb.c:320:OpenUSBByName() ifdManufacturerString: Ludovic Rousseau (ludovic.rousseau at free.fr)
00000003 ccid_usb.c:321:OpenUSBByName() ifdProductString: Generic CCID driver
00000002 ccid_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.
00002968 ccid_usb.c:406:OpenUSBByName() Try device: 3/7
00000005 ccid_usb.c:416:OpenUSBByName() vid/pid : 1050/0406
00000001 ccid_usb.c:483:OpenUSBByName() Checking device: 3/7
00000004 ccid_usb.c:554:OpenUSBByName() Trying to open USB bus/device: 3/7
00000046 ccid_usb.c:656:OpenUSBByName() Found Vendor/Product: 1050/0406 (Yubico Yubikey 4 U2F+CCID)
00000006 ccid_usb.c:658:OpenUSBByName() Using USB bus/device: 3/7
00000002 ccid_usb.c:717:OpenUSBByName() bNumDataRatesSupported is 0
00000402 ccid_usb.c:1296:InterruptRead() before (0)
00100113 ccid_usb.c:1342:InterruptRead() after (0) (2)
00000010 -> 000000 65 00 00 00 00 00 00 00 00 00 
00000108 <- 000000 81 00 00 00 00 00 00 00 00 00 
00000005 -> 000000 65 00 00 00 00 00 01 00 00 00 
00000109 <- 000000 81 00 00 00 00 00 01 00 00 00 
00000007 ifdhandler.c:381:IFDHGetCapabilities() tag: 0xFB3, usb:1050/0406:libudev:1:/dev/bus/usb/003/007 (lun: 0)
00000002 readerfactory.c:396:RFAddReader() Using the reader polling thread
00000002 ifdhandler.c:1821:IFDHICCPresence() usb:1050/0406:libudev:1:/dev/bus/usb/003/007 (lun: 0)
00000003 -> 000000 65 00 00 00 00 00 02 00 00 00 
00000100 <- 000000 81 00 00 00 00 00 02 00 00 00 
00000004 ifdhandler.c:1942:IFDHICCPresence() Card present
00000065 ifdhandler.c:381:IFDHGetCapabilities() tag: 0xFAE, usb:1050/0406:libudev:1:/dev/bus/usb/003/007 (lun: 0)
00000003 ifdhandler.c:476:IFDHGetCapabilities() Reader supports 1 slot(s)
00000018 ifdhandler.c:1821:IFDHICCPresence() usb:1050/0406:libudev:1:/dev/bus/usb/003/007 (lun: 0)
00000005 -> 000000 65 00 00 00 00 00 03 00 00 00 
00000123 <- 000000 81 00 00 00 00 00 03 00 00 00 
00000004 ifdhandler.c:1942:IFDHICCPresence() Card present
00000002 ifdhandler.c:1821:IFDHICCPresence() usb:1050/0406:libudev:1:/dev/bus/usb/003/007 (lun: 0)
00000002 -> 000000 65 00 00 00 00 00 04 00 00 00 
00000068 hotplug_libudev.c:297:get_driver() Looking for a driver for VID: 0x1D6B, PID: 0x0003, path: /dev/bus/usb/004/001
00000012 <- 000000 81 00 00 00 00 00 04 00 00 00 
00000002 ifdhandler.c:1942:IFDHICCPresence() Card present
00000002 ifdhandler.c:1154:IFDHPowerICC() action: PowerUp, usb:1050/0406:libudev:1:/dev/bus/usb/003/007 (lun: 0)
00000002 -> 000000 62 00 00 00 00 00 05 00 00 00 
00000059 hotplug_libudev.c:297:get_driver() Looking for a driver for VID: 0x1D6B, PID: 0x0003, path: /dev/bus/usb/004/001
00000063 <- 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 
00000002 eventhandler.c:287:EHStatusHandlerThread() powerState: POWER_STATE_POWERED
00000002 Card ATR: 3B F8 13 00 00 81 31 FE 15 59 75 62 69 6B 65 79 34 D4 
00000002 ifdhandler.c:1821:IFDHICCPresence() usb:1050/0406:libudev:1:/dev/bus/usb/003/007 (lun: 0)
00000001 -> 000000 65 00 00 00 00 00 06 00 00 00 
00000010 hotplug_libudev.c:297:get_driver() Looking for a driver for VID: 0x0BDA, PID: 0x8153, path: /dev/bus/usb/004/002
00000068 hotplug_libudev.c:297:get_driver() Looking for a driver for VID: 0x1D6B, PID: 0x0003, path: /dev/bus/usb/004/001
00000001 <- 000000 81 00 00 00 00 00 06 00 00 00 
00000003 ifdhandler.c:1942:IFDHICCPresence() Card present
00000001 ifdhandler.c:310:IFDHPolling() usb:1050/0406:libudev:1:/dev/bus/usb/003/007 (lun: 0) 5000 ms
00000002 ccid_usb.c:1296:InterruptRead() before (0)
00000071 hotplug_libudev.c:297:get_driver() Looking for a driver for VID: 0x0424, PID: 0x5534, path: /dev/bus/usb/004/003
00000115 hotplug_libudev.c:297:get_driver() Looking for a driver for VID: 0x1D6B, PID: 0x0002, path: /dev/bus/usb/001/001
00000066 hotplug_libudev.c:297:get_driver() Looking for a driver for VID: 0x1D6B, PID: 0x0002, path: /dev/bus/usb/001/001
00000073 hotplug_libudev.c:297:get_driver() Looking for a driver for VID: 0x8087, PID: 0x8009, path: /dev/bus/usb/001/002
00000113 hotplug_libudev.c:297:get_driver() Looking for a driver for VID: 0x1D6B, PID: 0x0002, path: /dev/bus/usb/002/001
00000066 hotplug_libudev.c:297:get_driver() Looking for a driver for VID: 0x1D6B, PID: 0x0002, path: /dev/bus/usb/002/001
00000071 hotplug_libudev.c:297:get_driver() Looking for a driver for VID: 0x8087, PID: 0x8001, path: /dev/bus/usb/002/002
04999565 ccid_usb.c:1342:InterruptRead() after (0) (2)
00000009 ifdhandler.c:1821:IFDHICCPresence() usb:1050/0406:libudev:1:/dev/bus/usb/003/007 (lun: 0)
00000003 -> 000000 65 00 00 00 00 00 07 00 00 00 
00000115 <- 000000 81 00 00 00 00 00 07 00 00 00 
00000004 ifdhandler.c:1942:IFDHICCPresence() Card present
00000002 ifdhandler.c:1154:IFDHPowerICC() action: PowerDown, usb:1050/0406:libudev:1:/dev/bus/usb/003/007 (lun: 0)
00000001 -> 000000 63 00 00 00 00 00 08 00 00 00 
00000201 <- 000000 81 00 00 00 00 00 08 02 00 00 
00000003 eventhandler.c:480:EHStatusHandlerThread() powerState: POWER_STATE_UNPOWERED
00000001 ifdhandler.c:1821:IFDHICCPresence() usb:1050/0406:libudev:1:/dev/bus/usb/003/007 (lun: 0)
00000002 -> 000000 65 00 00 00 00 00 09 00 00 00 
00000118 <- 000000 81 00 00 00 00 00 09 00 00 00 
00000004 ifdhandler.c:1942:IFDHICCPresence() Card present
00000002 ifdhandler.c:310:IFDHPolling() usb:1050/0406:libudev:1:/dev/bus/usb/003/007 (lun: 0) 600000 ms
00000005 ccid_usb.c:1296:InterruptRead() before (0)


More information about the pcsclite-muscle mailing list