[Pcsclite-muscle] Issue when plugging yubikey after pcscd has started
Laurent Bigonville
bigon at bigon.be
Tue Jan 16 00:19:25 PST 2024
Hello,
I've an issue that when I'm plugging the my yubikey 5 while pcscd is
already running, gpg/scdaemon cannot communicate with it. If I'm
plugging it and then I'm starting the daemon, it works fine. I'm
suspecting that it might be happening with all smartcard reader plugged
after the daemon has started.
I'm running debian unstable (pcscd: 2.0.1-1 - libccid 1.5.5-1 - gpg
2.2.40-1.1+b1). I uninstalled opensc completely to avoid interferences.
$ sudo pcscd --version
pcsc-lite version 2.0.1.
Copyright (C) 1999-2002 by David Corcoran<corcoran at musclecard.com>.
Copyright (C) 2001-2022 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.infradead.org>.
Enabled features: Linux x86_64-pc-linux-gnu libsystemd serial usb libudev polkit usbdropdir=/usr/lib/pcsc/drivers ipcdir=/run/pcscd filter configdir=/etc/reader.conf.d
MAX_READERNAME: 128, PCSCLITE_MAX_READERS_CONTEXTS: 16
scdaemon is configured as follow:
$ cat .gnupg/scdaemon.conf
pcsc-driver /usr/lib/x86_64-linux-gnu/libpcsclite.so.1
card-timeout 5
disable-ccid
pcsc-shared
$ LC_ALL=C gpg --card-status
gpg: selecting card failed: No such device
gpg: OpenPGP card not available: No such device
I've attached the logs generated with the following procedure:
1. Stop scdaemon and pcscd
2. Plug the yubikey (only for the plugged_before log file)
3. Start pcscd
4. Run gpg --card-status
5. Unplug the yubikey
6. Ctrl-C the daemon
Any idea what's happening here?
Kind regards,
Laurent Bigonville
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pcscd_plugged_before.log.gz
Type: application/gzip
Size: 10247 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/pcsclite-muscle/attachments/20240116/7a33d08c/attachment.gz>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pcscd.log.gz
Type: application/gzip
Size: 4927 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/pcsclite-muscle/attachments/20240116/7a33d08c/attachment-0001.gz>
More information about the pcsclite-muscle
mailing list