Le 05/07/2019 à 16:56, Julien Palard a écrit :
Hello Ludovic,

It could be interesting to have a pcscd log as documented 
athttps://pcsclite.apdu.fr/#support

Here are the requested infos:

$ ykman info
Device type: YubiKey 4
[...]
Firmware version: 4.3.5
Enabled USB interfaces: OTP+FIDO+CCID

Applications
OTP             Enabled
FIDO U2F        Enabled
OpenPGP         Enabled
PIV             Enabled
OATH            Enabled
FIDO2           Not available

$ /usr/sbin/pcscd --version
pcsc-lite version 1.8.25.
Copyright (C) 1999-2002 by David Corcoran <corco...@musclecard.com>.
Copyright (C) 2001-2018 by Ludovic Rousseau <ludovic.rouss...@free.fr>.
Copyright (C) 2003-2004 by Damien Sauveron <sauve...@labri.fr>.
Report bugs to <pcsclite-mus...@lists.alioth.debian.org>.
Enabled features: Linux x86_64-pc-linux-gnu libsystemd serial usb libudev 
usbdropdir=/usr/lib/pcsc/drivers ipcdir=/var/run/pcscd 
configdir=/etc/reader.conf.d

$ lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description:    Debian GNU/Linux 10 (buster)
Release:        10
Codename:       buster

$ lsusb | grep -i yubi
Bus 003 Device 030: ID 1050:0407 Yubico.com Yubikey 4 OTP+U2F+CCID

logs attached where I ran the following sequence:

mdk@lighthaven$ ssh-add -e /usr/lib/x86_64-linux-gnu/opensc-pkcs11.so; ssh-add 
-s /usr/lib/x86_64-linux-gnu/opensc-pkcs11.so
Card removed: /usr/lib/x86_64-linux-gnu/opensc-pkcs11.so
Enter passphrase for PKCS#11:
Card added: /usr/lib/x86_64-linux-gnu/opensc-pkcs11.so

00000012 [140528082081536] APDU: 00 CB 3F FF 03 5C 01 7E 00
00000009 [140528082081536] ifdhandler.c:1303:IFDHTransmitToICC() 
usb:1050/0407:libudev:2:/dev/bus/usb/003/030 (lun: 0)
00000008 [140528082081536] commands.c:1623:CmdXfrBlockAPDU_extended() T=0 
(extended): 9 bytes
00000017 [140528082081536] -> 000000 6F 09 00 00 00 00 31 00 00 00 00 CB 3F FF 
03 5C 01 7E 00
00000298 [140528082081536] <- 000000 81 00 00 00 00 00 31 40 FC 00
00000011 [140528082081536] commands.c:1523:CCID_Receive Overrun error
00000006 [140528082081536] SW:
00000007 [140528082081536] ifdwrapper.c:543:IFDTransmit() Card not transacted: 
612
00000007 [140528082081536] winscard.c:1620:SCardTransmit() Card not transacted: 
0x80100016

The reader reports an error 0xFC Overrun error.
According to the CCID specification it is "Overrun error while talking to the 
ICC". ICC is the smart card. In your case it is the chip inside the token.

I have no idea why the token reports such an error. I reader firmware issue?

The problem is not with pscsd. I am not sure I can help here.
You can try to report the problem on OpenSC-devel mailing list. Maybe someone 
with YubiKey experience can help.
https://github.com/OpenSC/OpenSC/wiki/Mailing-lists

Bye

--
 Dr. Ludovic Rousseau

Reply via email to