Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RFAddReader() Yubico Yubikey NEO OTP+U2F+CCID init failed #78

Closed
lodpp opened this issue Jun 9, 2020 · 1 comment
Closed

RFAddReader() Yubico Yubikey NEO OTP+U2F+CCID init failed #78

lodpp opened this issue Jun 9, 2020 · 1 comment

Comments

@lodpp
Copy link

lodpp commented Jun 9, 2020

Hello,

I'm trying to figure out why my 2fa is not working
here are the info I could gathered from https://pcsclite.apdu.fr/#support

Versions

CCID version 1.4.32
pcsc-list version 1.8.26
( I've updaded from CCID 1.4.21 / pcsc-lite 1.8.14 and I thought it could help, but same symptoms)

$ /usr/sbin/pcscd --version
pcsc-lite version 1.8.26.
Copyright (C) 1999-2002 by David Corcoran <[email protected]>.
Copyright (C) 2001-2018 by Ludovic Rousseau <[email protected]>.
Copyright (C) 2003-2004 by Damien Sauveron <[email protected]>.
Report bugs to <[email protected]>.
Enabled features: Linux x86_64-slackware-linux-gnu serial usb libudev usbdropdir=/usr/lib64/pcsc/drivers ipcdir=/var/run/pcscd filter configdir=/etc/reader.conf.d

Platform

  • linux slackware current
  • key: tested both with yubikey neo and yubikey 4, logs below are with yubikey neo

logs

Jun  9 15:12:11 lp1 kernel: [  653.479034] usb 1-1: new full-speed USB device number 23 using xhci_hcd
Jun  9 15:12:11 lp1 kernel: [  653.606745] usb 1-1: New USB device found, idVendor=1050, idProduct=0116, bcdDevice= 3.50
Jun  9 15:12:11 lp1 kernel: [  653.606746] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
Jun  9 15:12:11 lp1 kernel: [  653.606747] usb 1-1: Product: Yubikey NEO OTP+U2F+CCID
Jun  9 15:12:11 lp1 kernel: [  653.606748] usb 1-1: Manufacturer: Yubico
Jun  9 15:12:11 lp1 kernel: [  653.612951] input: Yubico Yubikey NEO OTP+U2F+CCID as /devices/pci0000:00/0000:00:14.0/usb1/1-1/1-1:1.0/0003:1050:0116.000C/input/input27
Jun  9 15:12:11 lp1 kernel: [  653.664544] hid-generic 0003:1050:0116.000C: input,hidraw0: USB HID v1.10 Keyboard [Yubico Yubikey NEO OTP+U2F+CCID] on usb-0000:00:14.0-1/input0
Jun  9 15:12:11 lp1 kernel: [  653.665144] hid-generic 0003:1050:0116.000D: hiddev96,hidraw1: USB HID v1.10 Device [Yubico Yubikey NEO OTP+U2F+CCID] on usb-0000:00:14.0-1/input1
Jun  9 15:12:11 lp1 mtp-probe: checking bus 1, device 23: "/sys/devices/pci0000:00/0000:00:14.0/usb1/1-1" 
Jun  9 15:12:11 lp1 mtp-probe: bus: 1, device: 23 was not an MTP device 
Jun  9 15:12:11 lp1 pcscd: ifdhandler.c:150:CreateChannelByNameOrChannel() failed
Jun  9 15:12:11 lp1 pcscd: readerfactory.c:1105:RFInitializeReader() Open Port 0x200000 Failed (usb:1050/0116:libudev:1:/dev/bus/usb/001/023)
Jun  9 15:12:11 lp1 pcscd: readerfactory.c:376:RFAddReader() Yubico Yubikey NEO OTP+U2F+CCID init failed.
Jun  9 15:12:11 lp1 pcscd: ifdhandler.c:150:CreateChannelByNameOrChannel() failed
Jun  9 15:12:11 lp1 pcscd: readerfactory.c:1105:RFInitializeReader() Open Port 0x200001 Failed (usb:1050/0116:libudev:0:/dev/bus/usb/001/023)
Jun  9 15:12:11 lp1 pcscd: readerfactory.c:376:RFAddReader() Yubico Yubikey NEO OTP+U2F+CCID init failed.

output from LIBCCID_ifdLogLevel=0x000F pcscd --foreground --debug --apdu --color | tee log.txt , I've added steps where I connect the key the first time, disconnect then reconnect:
yubikey_pcscd_debug.log

Thanks for any help you can provide !

@LudovicRousseau
Copy link
Owner

From your log it all works fine. After each token connection you get the ATR.
Just ignore the "init failed." messages.

You can use the pcsc_scan command from the pcsc-tools package to check your token works fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants