Patrik Martinsson
2010-08-24 07:09:56 UTC
Hello everyone,
At our company we use identification cards as security tokens. We have
successfully used those together with
the pkcs11 lib that the company behind these cards deliver, however I'm
getting tired of their negligent and incompetent support, therefore I
would like to use opensc driver instead.
Enough with the wining, lets go down to business.
The cards we have uses SetCOS and I've successfully got them to work
with opensc, however I've got some concerns.
First some outputs,
$ opensc-tool --atr
Using reader with a card: OmniKey CardMan 3121 01 00
3b:7d:96:00:00:80:31:80:65:b0:a3:11:40:a9:83:00:90:00
$ opensc-tool --name
Using reader with a card: OmniKey CardMan 3121 01 00
SetCOS
Question #1,
Try pkcs11_inspect.
$ pkcs11_inspect
[opensc-pkcs11] iso7816.c:99:iso7816_check_sw: Instruction code not
supported or invalid
[opensc-pkcs11] card.c:588:sc_get_challenge: returning with: Unsupported
INS byte in APDU
PIN for token: xxxx
Printing data for mapper cn:
username
Works like a charm, however it gives me those two lines which is a bit
worrying/annoying.
What do they mean and is there anything i can do to fix them ?
Question #2,
I'm trying to use opensc-pkcs11.so together with gdm-plugin-smartcard.
That one is failing telling me, "assertion 'slot_id >= 1' failed",
obviously slot_id should be >= than 1, but it isn't and I'm not sure why.
I'm attaching my configfiles, logs.
I'm more then happy to help debugging this more if necessary.
Thanks in advance.
/Patrik Martinsson,
Sweden
At our company we use identification cards as security tokens. We have
successfully used those together with
the pkcs11 lib that the company behind these cards deliver, however I'm
getting tired of their negligent and incompetent support, therefore I
would like to use opensc driver instead.
Enough with the wining, lets go down to business.
The cards we have uses SetCOS and I've successfully got them to work
with opensc, however I've got some concerns.
First some outputs,
$ opensc-tool --atr
Using reader with a card: OmniKey CardMan 3121 01 00
3b:7d:96:00:00:80:31:80:65:b0:a3:11:40:a9:83:00:90:00
$ opensc-tool --name
Using reader with a card: OmniKey CardMan 3121 01 00
SetCOS
Question #1,
Try pkcs11_inspect.
$ pkcs11_inspect
[opensc-pkcs11] iso7816.c:99:iso7816_check_sw: Instruction code not
supported or invalid
[opensc-pkcs11] card.c:588:sc_get_challenge: returning with: Unsupported
INS byte in APDU
PIN for token: xxxx
Printing data for mapper cn:
username
Works like a charm, however it gives me those two lines which is a bit
worrying/annoying.
What do they mean and is there anything i can do to fix them ?
Question #2,
I'm trying to use opensc-pkcs11.so together with gdm-plugin-smartcard.
That one is failing telling me, "assertion 'slot_id >= 1' failed",
obviously slot_id should be >= than 1, but it isn't and I'm not sure why.
I'm attaching my configfiles, logs.
I'm more then happy to help debugging this more if necessary.
Thanks in advance.
/Patrik Martinsson,
Sweden