Yubico Forum
https://forum.yubico.com/

[QUESTION] Smartcard only working after pcscd restart
https://forum.yubico.com/viewtopic.php?f=26&t=2452
Page 1 of 1

Author:  TheRealSnafu [ Tue Oct 11, 2016 8:42 am ]
Post subject:  [QUESTION] Smartcard only working after pcscd restart

Hello,

when I plug in my Yubikey NEO on Linux Mint 18 I see the following in the log files:
Code:
Oct 11 09:29:49 violet pcscd[2636]: 02700324 ifdhandler.c:144:CreateChannelByNameOrChannel() failed
Oct 11 09:29:49 violet pcscd[2636]: 00000014 readerfactory.c:1043:RFInitializeReader() Open Port 0x200000 Failed (usb:1050/0116:libudev:0:/dev/bus/usb/002/009)
Oct 11 09:29:49 violet pcscd[2636]: 00000004 readerfactory.c:335:RFAddReader() Yubico Yubikey NEO OTP+U2F+CCID init failed.
Oct 11 09:29:49 violet pcscd[2636]: 00046794 ifdhandler.c:144:CreateChannelByNameOrChannel() failed
Oct 11 09:29:49 violet pcscd[2636]: 00000013 readerfactory.c:1043:RFInitializeReader() Open Port 0x200002 Failed (usb:1050/0116:libudev:1:/dev/bus/usb/002/009)
Oct 11 09:29:49 violet pcscd[2636]: 00000005 readerfactory.c:335:RFAddReader() Yubico Yubikey NEO OTP+U2F+CCID init failed.

Code:
gpg2 --card-status
tells me that no card is present. Decrypting of PGP-encrypted mails is not working then of course.

When I do a
Code:
sudo service pcscd restart

I get the exact same error message in the logs as above, but gpg2 --card-status shows my Yubikey correctly and PGP-decryption is working as expected.
On Windows 10 I have a similar issue: After the login I need to reconnect my Yubikey in order to make the smartcard work.

Any ideas what causes this behavior and what to do to avoid it?

Thanks,
Gerhard

Author:  mehdi [ Wed Feb 08, 2017 11:49 am ]
Post subject:  Re: [QUESTION] Smartcard only working after pcscd restart

Until recently I was using doing the same. However, a recent upgrade of my Archlinux distro, changed the pcsc library to version 1.8.20 and the workaround does not work anymore.

Page 1 of 1 All times are UTC + 1 hour
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/