[Pcsclite-muscle] pcscd Yubico Yubikey 4 U2F+CCID init failed

Trevor Clark r.trevor.clark at gmail.com
Sat Apr 17 17:09:17 BST 2021


 Hi Dr. Rousseau,

As far as I can tell everything about the yubikey is working as
expected except the Daemon. I can see the card with pcsc_scan. I can
interact with the card through pk11 etc.

```
[tclark at tc-desktop ~]$ pcsc_scan
Using reader plug'n play mechanism
Scanning present readers...
0: Yubico Yubikey 4 U2F+CCID 00 00

Sat Apr 17 09:06:35 2021
 Reader 0: Yubico Yubikey 4 U2F+CCID 00 00
  Card state: Card inserted, Shared Mode,
  ATR: 3B F8 13 00 00 81 31 FE 15 59 75 62 69 6B 65 79 34 D4

ATR: 3B F8 13 00 00 81 31 FE 15 59 75 62 69 6B 65 79 34 D4
+ TS = 3B --> Direct Convention
+ T0 = F8, Y(1): 1111, K: 8 (historical bytes)
  TA(1) = 13 --> Fi=372, Di=4, 93 cycles/ETU
    43010 bits/s at 4 MHz, fMax for Fi = 5 MHz => 53763 bits/s
  TB(1) = 00 --> VPP is not electrically connected
  TC(1) = 00 --> Extra guard time: 0
  TD(1) = 81 --> Y(i+1) = 1000, Protocol T = 1
-----
  TD(2) = 31 --> Y(i+1) = 0011, Protocol T = 1
-----
  TA(3) = FE --> IFSC: 254
  TB(3) = 15 --> Block Waiting Integer: 1 - Character Waiting Integer: 5
+ Historical bytes: 59 75 62 69 6B 65 79 34
  Category indicator byte: 59 (proprietary format)
+ TCK = D4 (correct checksum)

Possibly identified card (using /usr/share/pcsc/smartcard_list.txt):
3B F8 13 00 00 81 31 FE 15 59 75 62 69 6B 65 79 34 D4
    Yubico Yubikey 4 OTP+CCID
```

Thank you for taking the time to respond. I really appreciate it.

 Dr. Ludovic Rousseau

On Sat, Apr 17, 2021 at 7:31 AM Trevor Clark <r.trevor.clark at gmail.com> wrote:
>
> 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



More information about the pcsclite-muscle mailing list