GnuPG Smart Card Support broken

Bug #368392 reported by Christian Felsing on 2009-04-28
24
This bug affects 5 people
Affects Status Importance Assigned to Milestone
Debian
New
Undecided
Unassigned
gnupg2 (Ubuntu)
Medium
Unassigned

Bug Description

Binary package hint: gnupg-agent

After removing Ubuntu 8.10 and installing Ubuntu 9.04 GnuPG smart card support is no longer working.

Following happens:

$ gpg --card-status
gpg: pcsc_list_readers failed: unknown PC/SC error code (0x8010002e)
gpg: Kartenleser ist nicht vorhanden
gpg: OpenPGP Karte ist nicht vorhanden: Allgemeiner Fehler

Key and general smart card tools are working:

cf@e6500:~$ pkcs15-tool -D
PKCS#15 Card [OpenPGP Card]:
 Version : 257
...
PIN [Signature PIN]
 Com. Flags: 0x3
...
PIN [Encryption PIN]
 Com. Flags: 0x3
...
PIN [Admin PIN]
 Com. Flags: 0x3
...
Private RSA Key [Signature key]
 Com. Flags : 3
...
Private RSA Key [Encryption key]
 Com. Flags : 3
...
Private RSA Key [Authentication key]
 Com. Flags : 3
...
Public RSA Key [Signature key]
 Com. Flags : 2
...
Public RSA Key [Encryption key]
 Com. Flags : 2
...
Public RSA Key [Authentication key]
 Com. Flags : 2
...

That card worked w/o problems until Ubuntu 8.10. Other smartcard works with ssh-agent, so smart card subsystem should be ok.

Michael Bienia (geser) wrote :

Which smart card reader do you use?

It is an integrated card reader of a Dell Latutude E6500, which identifies with

Bus 005 Device 002: ID 0a5c:5800 Broadcom Corp.

by lsusb. There are no issues with other pcscd dependent applications like ssh-agent (built on Ubuntu sources with confflags += --with-opensc added to debian/rules). pkcs15-tool works also flawless.

Reinhard Tartler (siretart) wrote :

I've experienced a similar error if 2 instances of gpg-agent is running. in this case, the other instance 'blocked' pcscd so that the new instance starts, but fails with the above error.

can you confirm that no other application is blocking pcscd?

Changed in gnupg2 (Ubuntu):
status: New → Incomplete
Changed in gnupg2 (Ubuntu):
importance: Undecided → Medium
Launchpad Janitor (janitor) wrote :

[Expired for gnupg2 (Ubuntu) because there has been no activity for 60 days.]

Changed in gnupg2 (Ubuntu):
status: Incomplete → Expired
Andrzej Polatyński (intruz) wrote :

On Ubuntu 11.10 still present.

Maybe syslog messages would help solving this issue:

Aug 28 23:08:14 mistral pcscd: ccid_usb.c:422:OpenUSBByName() Can't libusb_open(6/6): -3
Aug 28 23:08:14 mistral pcscd: ifdhandler.c:101:IFDHCreateChannelByName() failed
Aug 28 23:08:14 mistral pcscd: readerfactory.c:965:RFInitializeReader() Open Port 0x200000 Failed (usb:08e6/3438:libudev:0:/dev/bus/usb/006/006)
Aug 28 23:08:14 mistral pcscd: readerfactory.c:275:RFAddReader() Gemalto GemPC Key init failed.

Checked on Gemalto Shell Token V2:

Bus 006 Device 006: ID 08e6:3438 Gemplus GemPC Key SmartCard Reader

Boyd Stephen Smith Jr. (bss03) wrote :

gpg-agent[84441]: scdaemon[24422]: pcsc_list_readers failed: unknown PC/SC error code (0x8010002e)

appears every 2 seconds in my logs. Debian Stretch.

Dimitri John Ledkov (xnox) wrote :

@bss03 this is a 4 years old plus issue; this is not a bug tracker for debian; gpg smart cards are currently working in supported releases of ubuntu (and i do use that every day).

If you have issues you should open a new bug report; in the corecct bug tracker for your system. Debian bug tracker is at https://bugs.debian.org

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers