Page MenuHome GnuPG

SmartCard stopped working in 2.4
Closed, ResolvedPublic

Description

Arch Linux has recently stabilized gnupg 2.4.

After upgrading from GnuPG 2.2.41 to 2.4.3, GnuPG is unable to access my PGP SmartCard.
Downgrading and restarting the machine helps to restore the functionality.

Usually the device is detected here:

> echo scd getinfo reader_list | gpg-connect-agent --decode
D 0A5C:5843:0123456789ABCD:0
D 0A5C:5843:0123456789ABCD:0
D
D Broadcom Corp 58200 [Contacted SmartCard] (0123456789ABCD) 00 00
D Broadcom Corp 58200 [Contactless SmartCard] (0123456789ABCD) 01 00
OK

The last two entries disapear in 2.4.3.
So then everywhere the smart card is required it is not found.
E.g. when trying to use a key I just get the dialog "Please insert the card with serial number: ***".
Also

> gpg --card-status
gpg: selecting card failed: No such device
gpg: OpenPGP card not available: No such device

I cannot find anything in the logs regarding the problem.

The same problems occurs on another computer with a different card reader:

> echo scd getinfo reader_list | gpg-connect-agent --decode
D 058F:9540:X:0
D
D Alcor Micro AU9540 00 00
OK

gpg-agent.conf:

pinentry-program /usr/bin/pinentry-qt
no-grab
default-cache-ttl 1800
enable-ssh-support

gpg.conf:

default-recipient-self
use-agent
default-key 75ED05CE597669ED821DC9530645C440998B6B9A
personal-digest-preferences SHA256
cert-digest-algo SHA256
default-preference-list SHA512 SHA384 SHA256 SHA224 AES256 AES192 AES CAST5 ZLIB BZIP2 ZIP Uncompressed
keyserver hkps://keys.openpgp.org
keyserver-options auto-key-retrieve no-include-revoked no-honor-keyserver-url
keyid-format 0xlong
with-fingerprint
no-emit-version

Event Timeline

A workaround seems to be to configure disable-ccid in scdaemon.conf.

gniibe added a subscriber: gniibe.

In 2.4, a user need to specify disable-ccid in scdaemon.conf when scdaemon is built with integrated CCID driver (using libusb) but the user wants to use PC/SC driver instead.

I fixed the documentation.

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