You are not logged in.

#1 2021-11-20 17:41:16

ache
Member
From: Sorry, I'm french
Registered: 2019-09-03
Posts: 10
Website

[SOLVED ✔️ ] Yubikey connected only on boot

Hi, I have the exact opposite problem of <https://bbs.archlinux.org/viewtopic.php?id=244769>.

I can acces a Yubikey unless it's plugged on boot.
What I have :

$ gpg --card-status
Reader ...........: Yubico YubiKey OTP FIDO CCID 00 00
Application ID ...: D276XXXXXXXXXXXXXXXXXXXXXX
Application type .: OpenPGP
Version ..........: 3.4
Manufacturer .....: Yubico
Serial number ....: 11XXXXXX
~~~sh
$ ykman inoof
Reader ...........: Yubico YubiKey OTP FIDO CCID 00 00

I don't know what can I look now. When the PC boot with the Yubikey, everything works as expected (u2f and GPG) but if I remove and (re)plug it, it will not be shown anywhere and gpg will not report any card, it will no blink on the Key. u2f will not work either. I have to reboot to make the key readable to my computer.

What I'm doing wrong ? I should not remove the Yubikey of is there is something special to do before removing it ?

____________

Ok, I have got some news. I tried with 2 Yubikey (3 in fact ...). I can disconnect and reconnect any Yubikey since there is at least one Yubikey connected to the computer (???). Even if the remaining key is a new Yubikey that my computer don't know about. It just have to be a Yubikey.
But as soon as the last Yubikey got disconnected I can't reconnect a Yubikey.

So It definitively looks like a bug to me. I'm still investigating but there is nothing in `dmesg -w` on replug of Yubikey after the last Yubikey got disconnect.

____________

Just to be clear. After a having unplug every Yubikey, plugin a new one doesn't do anything. `dmesg` doesn't react, `lsusb` doesn't show anything. `systemctl status pcscd` or `journalctl -u pcscd` shows some errors on unplug but nothing on replug.

nov. 21 12:43:32 law pcscd[2860]: 00000000 ccid_usb.c:1433:InterruptStop() libusb_cancel_transfer failed: LIBUSB_ERROR_NO_DEVICE
nov. 21 12:43:32 law pcscd[2860]: 00400552 ccid_usb.c:863:WriteUSB() write failed (2/3): -4 LIBUSB_ERROR_NO_DEVICE
nov. 21 12:43:32 law pcscd[2860]: 00000039 ifdwrapper.c:364:IFDStatusICC() Card not transacted: 617
nov. 21 12:43:33 law pcscd[2860]: 01000973 ccid_usb.c:863:WriteUSB() write failed (2/3): -4 LIBUSB_ERROR_NO_DEVICE
nov. 21 12:43:41 law pcscd[2860]: 07511280 ccid_usb.c:863:WriteUSB() write failed (2/4): -4 LIBUSB_ERROR_NO_DEVICE
nov. 21 12:43:41 law pcscd[2860]: 00000039 ifdwrapper.c:364:IFDStatusICC() Card not transacted: 617
nov. 21 12:43:42 law pcscd[2860]: 01000456 ccid_usb.c:863:WriteUSB() write failed (2/4): -4 LIBUSB_ERROR_NO_DEVICE
nov. 21 12:43:47 law pcscd[2860]: 05031284 ccid_usb.c:1433:InterruptStop() libusb_cancel_transfer failed: LIBUSB_ERROR_NO_DEVICE
nov. 21 12:43:47 law pcscd[2860]: 00400404 ccid_usb.c:863:WriteUSB() write failed (2/2): -4 LIBUSB_ERROR_NO_DEVICE

____________

Ok, I don't understand why but the problem is that I have put

pcsc-driver /usr/lib/libpcsclite.so
card-timeout 5
disable-ccid

In the file `~/.gnupg/scdaemon.conf`

I just delete it and now everything works.

Thank you anyway ! ヘ( ^o^)ノ\(^_^ )
____

Any help would be greatly appreciated.

Last edited by ache (2021-11-21 12:51:11)

Offline

Board footer

Powered by FluxBB