[pkg-gnupg-maint] Bug#814584: gnupg2: gpg2 --card-status fail on armel / Raspberry Pi - "Card error"

NIIBE Yutaka gniibe at fsij.org
Sat Jun 18 02:20:48 UTC 2016


On 06/17/2016 10:38 PM, Petter Reinholdtsen wrote:
> Here is the same output from 'gpg2 --card-status' on a amd64 machine:

Thanks a lot.  OK, it works on amd64 machine with PC/SC service.

> 2016-06-17 15:34:07 scdaemon[8236] DBG: ccid-driver: using CCID reader 0 (ID=08E6:3438:X:0)
> 2016-06-17 15:34:07 scdaemon[8236] DBG: ccid-driver: idVendor: 08E6  idProduct: 3438  bcdDevice: 0200
[...]
> 2016-06-17 15:34:07 scdaemon[8236] DBG: ccid-driver: usb_claim_interface failed: -1

Here, the internal CCID driver of GnuPG failed because PC/SC service
already grab the access to the card reader.  And then, scdaemon tried
to access the card reader by PC/SC service.

> 2016-06-17 15:34:07 scdaemon[8236] detected reader 'Gemalto USB Shell Token V2 (0F9E69C2) 00 00'

Got the card reader by PC/SC service.  And then...

> 2016-06-17 15:34:07 scdaemon[8236] reader slot 0: not connected
> 2016-06-17 15:34:07 scdaemon[8236] DBG: leave: apdu_open_reader => slot=0 [pc/sc]

It worked well with PC/SC service.  You can try to run PC/SC service
on RPi, too.

If it's not machine specific, I think, it means that:

   The internal CCID driver of GnuPG does something not good, or it
   has something to do additionally.

I'll look into the PC/SC service implementation to see the
initialization of the card reader.
-- 



More information about the pkg-gnupg-maint mailing list