Mailing List Archive

CCID no longer working
Hello,

for a few weeks now gpg has been unable to contact my smartcard. I have recently updated to gpg 2.3.1, so it *might* have to do with that, but I can't positively confirm.

Things had been working flawlessly until then. Running scdaemon with debug gave a telltale hint:

2021-05-25 21:33:11 scdaemon[13946] DBG: chan_7 -> D /home/andreas/.gnupg/S.scdaemon
2021-05-25 21:33:11 scdaemon[13946] DBG: chan_7 -> OK
2021-05-25 21:33:11 scdaemon[13946] DBG: chan_7 <- OPTION event-signal=12
2021-05-25 21:33:11 scdaemon[13946] DBG: chan_7 -> OK
2021-05-25 21:33:11 scdaemon[13946] DBG: chan_7 <- GETINFO version
2021-05-25 21:33:11 scdaemon[13946] DBG: chan_7 -> D 2.3.1
2021-05-25 21:33:11 scdaemon[13946] DBG: chan_7 -> OK
2021-05-25 21:33:11 scdaemon[13946] DBG: chan_7 <- SERIALNO
2021-05-25 21:33:11 scdaemon[13946] ccid open error: skip
2021-05-25 21:33:11 scdaemon[13946] check permission of USB device at Bus 005 Device 004
2021-05-25 21:33:11 scdaemon[13946] DBG: chan_7 -> ERR 100696144 Kein passendes Ger?t gefunden <SCD>
2021-05-25 21:33:11 scdaemon[13946] DBG: chan_7 <- RESTART
2021-05-25 21:33:11 scdaemon[13946] DBG: chan_7 -> OK

I then put "disable-ccid" into scmdaemon.conf, and things started working again - I have pcscd running anyway. The system is not running udev, the device nodes are static. I had no trouble earlier, so I would assume permissions are not an issue - one would think 666 to be sufficient:

crw-rw-rw- 1 root root 189, 515 25. Mai 21:34 /dev/bus/usb/005/004

gpg 2.3.1 has been out for a month now, and I assume that if there were an issue with CCID there would be some related noise on the mailing list, but there isn't. Maybe it's worth a casual look from our esteemed developers.

Regards
Andreas Mattheiss

_______________________________________________
Gnupg-users mailing list
Gnupg-users@gnupg.org
http://lists.gnupg.org/mailman/listinfo/gnupg-users
Re: CCID no longer working [ In reply to ]
On Tue, 25 May 2021 21:51, Andreas Mattheiss said:

> I then put "disable-ccid" into scmdaemon.conf, and things started
> working again - I have pcscd running anyway. The system is not running

pcscd grabbed the device and thus scdameon can't open it. We don't have
a fallback to PC/SC anymore thus you see this error instead of scdaemon
silently switching from internal CCID to PC/SC.


Salam-Shalom,

Werner

--
Die Gedanken sind frei. Ausnahmen regelt ein Bundesgesetz.
Re: CCID no longer working [ In reply to ]
Hello Werner,

thanks for the feedback.

Am Wed, 26 May 2021 16:49:07 +0200 schrieb Werner Koch via Gnupg-users:


> pcscd grabbed the device and thus scdameon can't open it. We don't have
> a fallback to PC/SC anymore thus you see this error instead of scdaemon
> silently switching from internal CCID to PC/SC.
>
>
I can confirm this, heuristically: I reenabled ccid for scdaemon,
terminated pcscd and scdaemon and tryed gpg --card-status again, which
duly prompted the expected information.

Regards
Andreas



_______________________________________________
Gnupg-users mailing list
Gnupg-users@gnupg.org
http://lists.gnupg.org/mailman/listinfo/gnupg-users