Page MenuHome GnuPG

GnuPG 2.4.0 not working with Yubikey NEO
Closed, ResolvedPublic

Description

Hi @werner,
Slackware just upgraded to GnuPG 2.4.0(T6303) and I got a regression while using Yubikey NEO.
Appear the problem show as a permission error:

2023-02-21 19:44:19 scdaemon[11577] DBG: ccid-driver: usb_open failed: LIBUSB_ERROR_ACCESS
2023-02-21 19:44:19 scdaemon[11577] ccid open error: skip
2023-02-21 19:44:19 scdaemon[11577] check permission of USB device at Bus 001 Device 011
2023-02-21 19:44:19 scdaemon[11577] DBG: chan_7 -> ERR 100696144 No such device <SCD>

This error don't occurs on version 2.2.41.
I am uploading the logs as described to me in my previous bug reports.

log-file /somewhere/scd.log
verbose
debug ipc,reader,app
debug-ccid-driver


Details

Version
2.4.0

Event Timeline

werner claimed this task.
werner edited projects, added Support; removed Bug Report.

You need write access to the usb device (e.g. /dev/bus/usb/001/011) or you install pcscd and put "disable-ccid-driver" into scdaemon.conf.

I can't access even trying using root.
pcsc-lite was already installed. I tried using disable-ccid-driver as advised but didn't help, scd.log don't even get written using this option.

I am using pcsc-lite v1.9.9 and ccid v1.5.2.

Doing gpg2 --card-status:

08:10 $ gpg2 --card-status
gpg: error getting version from 'scdaemon': No SmartCard daemon
gpg: OpenPGP card not available: No SmartCard daemon

Okay, gpg2 --card-status is accessible using sudo/su.
But I still don't know why bumping from 2.2.41 to 2.4.0 the use of pcsc-lite + ccid stopped work.

You need write access to the usb device (e.g. /dev/bus/usb/001/011) or you install pcscd and put "disable-ccid-driver" into scdaemon.conf.

I tried use disable-ccid instead on scdaemon.conf as decribed in T4673, and it worked.
Also worked recompiling GnuPG 2.4.0 with the option --disable-ccid-driver, which I think was misplaced on the comment before.
Thanks again @werner.

Ooops: You need to put

disable-ccid

intot scdaemon.conf . No need to recompile w/o ccid support.