Bob Dunlop wrote:
Hi all,

On Mon, Sep 04 at 07:10, Tulio Salvaro wrote:
Hi Nils,

  It's true, on version 0.9.6 is working SPK 2.4 smartcards. But on version
0.11.0 isn't working.

I can confirm non-operation of SPK2.4 cards with 0.11.1-svn-r3008 which
I tried recently.  Here's my notes from attempting to initialise the
card in case the varient error messages give some clue.

I added the following entry to /etc/opensc.conf to use the SPK2.3 driver
rather than modify the code:

     # Giesecke & Devrient Starcos SPK 2.4
     card_atr 3b:b7:18:00:c0:3e:31:fe:65:53:50:4b:32:34:90:00:25 {
         driver = "starcos";
         type   = "7001";
     }


$ opensc-tool --atr
3b:b7:18:00:c0:3e:31:fe:65:53:50:4b:32:34:90:00:25

$ opensc-tool --name
STARCOS SPK 2.3

$ pkcs15-init -v --create-pkcs15
Connecting to card in reader SCM SCR 335 (21120617207832) 00 00...
Using card driver STARCOS SPK 2.3.
About to create PKCS #15 meta structure.
New Security Officer PIN (Optional - press return for no PIN).
Please enter Security Officer PIN:
Please type again to verify:
Unblock Code for New User PIN (Optional - press return for no PIN).
Please enter User unblocking PIN (PUK):
PIN too long (max 8 characters)
Please enter User unblocking PIN (PUK):
Please type again to verify:
iso7816.c:99:iso7816_check_sw: Wrong length
card-starcos.c:311:starcos_select_fid: returning with: Wrong length
card-starcos.c:498:starcos_select_file: SELECT FILE (DF-ID) failed: Wrong length
card.c:563:sc_select_file: returning with: Wrong length
Failed to create PKCS #15 meta structure: Wrong length


Second attempt

$ pkcs15-init -v --create-pkcs15
Connecting to card in reader SCM SCR 335 (21120617207832) 00 00...
Using card driver STARCOS SPK 2.3.
About to create PKCS #15 meta structure.
New Security Officer PIN (Optional - press return for no PIN).
Please enter Security Officer PIN:
Please type again to verify:
Unblock Code for New User PIN (Optional - press return for no PIN).
Please enter User unblocking PIN (PUK):
Please type again to verify:
iso7816.c:99:iso7816_check_sw: Conditions of use not satisfied
card.c:686:sc_card_ctl: returning with: Not allowed
Failed to create PKCS #15 meta structure: Not allowed

Attempted erase

$ pkcs15-init -v -E
Connecting to card in reader SCM SCR 335 (21120617207832) 00 00...
Using card driver STARCOS SPK 2.3.
About to erase card.
iso7816.c:99:iso7816_check_sw: Instruction code not supported or invalid
card.c:686:sc_card_ctl: returning with: Unsupported INS byte in APDU
Failed to erase card: Unsupported INS byte in APDU



Since I had other cards that I could play with I abandoned the SPK2.4 at
this point but I'm willing to test any suggested fixes.

ok, thanks. Looks like there is a problem in the current trunk ...
I will look at it (and I somehow have the feeling that I'm responsible
for this 'bug' :-( ).
I will send a patch to the list once I've found something.

Thanks,
Nils
_______________________________________________
opensc-devel mailing list
opensc-devel@lists.opensc-project.org
http://www.opensc-project.org/mailman/listinfo/opensc-devel

Reply via email to