Ignoring pcsc reader or card?

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Ignoring pcsc reader or card?

Mikael Magnusson-5
Hello,

I use two PC/SC readers on one system. And I need a way to tell opensc
that it should not try to use one of the readers/cards, since it is in
use by another process (using libpcsclite.so.1).

Is it possible to configure this in opensc.conf?

Opensc-tool (0.11.13) correctly detects two readers:

$ opensc-tool -l
Readers known about:
Nr.    Driver     Name
0      pcsc       OmniKey CardMan 3121 00 00
1      pcsc       Gemplus GemPC Twin 01 00

Pkcs11-tool fails to get info for slot 0. This causes libp11 to abort
the enumeration in PKCS11_enumerate_slots (in libp11) and return an
error. Because of this I can't use engine_pkcs11.so with a card in the
second reader and therefore not openssl.

$ pkcs11-tool -L
[opensc-pkcs11] reader-pcsc.c:524:pcsc_connect: SCardConnect failed:
0x8010000b
[opensc-pkcs11] card.c:228:sc_connect_card: returning with: Generic
reader error
[opensc-pkcs11] reader-pcsc.c:524:pcsc_connect: SCardConnect failed:
0x8010000b
[opensc-pkcs11] card.c:228:sc_connect_card: returning with: Generic
reader error
[opensc-pkcs11] reader-pcsc.c:524:pcsc_connect: SCardConnect failed:
0x8010000b
[opensc-pkcs11] card.c:228:sc_connect_card: returning with: Generic
reader error
Available slots:
[opensc-pkcs11] reader-pcsc.c:524:pcsc_connect: SCardConnect failed:
0x8010000b
[opensc-pkcs11] card.c:228:sc_connect_card: returning with: Generic
reader error
Slot 0           (GetSlotInfo failed, error 5)
Slot 1           (empty)
Slot 2           (empty)
Slot 3           (empty)
Slot 4           Gemplus GemPC Twin 01 00
  token label:   XXX
  token manuf:   XXX
  token model:   XXX
  token flags:   XXX
  serial num  :  XXX
Slot 5           (empty)
Slot 6           (empty)
Slot 7           (empty)
Slot 8           (empty)
Slot 9           (empty)
Slot 10          (empty)
Slot 11          (empty)
Slot 12          (empty)
Slot 13          (empty)
Slot 14          (empty)
Slot 15          (empty)

/Mikael

_______________________________________________
opensc-user mailing list
[hidden email]
http://www.opensc-project.org/mailman/listinfo/opensc-user