But my program does not do this. A PUT KEY command would be necessary to do so.


You are right. More likely the card got "locked" after a few (3?) unsuccessful attempts to open a secure channel. I looked through the GP spec, but there is nothing there about locking if opening secure channel fails.

This depends on the manufacturer. E.g. a Cyberflex card locks after 10 attemps and you can throw it away.


By the way, the program doesn't accept 0xff or 255 (the default keyset),
 I get a "unrecognized as a number" error.



The key set version and key index must be in hex. But 0xff is not the default key set. 0x00 is always the default key set. The unrecognized as a number is thrown because you used a number above 0x79. Java bytes are signed, so there is only -0x80 up to 0x79. This is also the maximum usuable key set version. (At least by some cards.)


JCOP cards at least use 255 as the default keyset until you set one. So you can write:

init-update 255

in the shell.

Interesting. Maybe I should buy a JCOP card and figure it out.

Bye, Karsten
_______________________________________________
Muscle mailing list
[email protected]
http://lists.drizzle.com/mailman/listinfo/muscle

Reply via email to