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