Hi,
I am trying to figure out how to add new keysets to a JCOP card...The following commands succesfully ran against a JCOPID21 card.
cm> init-update 255
cm> ext-auth
cm> set-key 3/1/DES-ECB/707172737475767778797A7B7C7D7E7F
cm> set-key 3/2/DES-ECB/606162636465666768696A6B6C6D6E6F
cm> set-key 3/3/DES-ECB/808182838485868788898A8B8C8D8E8F
cm> put-keyset 3
However when I tried to load and run an applet on the same engineer card from inside Eclipse again using Run->Run
I am getting the following error..
set-key ${CURRKEYS}
print-key
255/1/DES-ECB/404142434445464748494A4B4C4D4E4F
255/2/DES-ECB/404142434445464748494A4B4C4D4E4F
255/3/DES-ECB/404142434445464748494A4B4C4D4E4F
1/1/DES-ECB/707172737475767778797A7B7C7D7E7F
1/2/DES-ECB/606162636465666768696A6B6C6D6E6F
1/3/DES-ECB/505152535455565758595A5B5C5D5E5F
init-update ${CURR_IUSET}
=> 80 50 00 00 08 E2 C1 71 6C 16 0B 5C 92 00 .P.....ql..\..
(131 msec)
<= 00 00 23 25 00 46 38 90 18 09 03 01 BF 85 B1 85 ..#%.F8.........
54 CF EF 2B EA 43 F3 61 FC 68 6C 4D 90 00 T..+.C.a.hlM..
Status: No Error
Error code: -5 (Authentication failed)
Offending APDU: 000023250046389018090301BF85B18554CFEF2BEA43F361FC686C4D9000
Error message: Card cryptogram invalid
jcshell: C:/eclipse/plugins/com.ibm.bluez.jcop.eclipse.targetpack_1.0.3.3/lib/scripts/capfile-autoinstall.jcsh[14]: Wrong response APDU.
jcshell: C:/eclipse/plugins/com.ibm.bluez.jcop.eclipse.targetpack_1.0.3.3/lib/scripts/capfile-autoinstall.jcsh[14]: Unexpected error - script terminated!
Does anyone know what the problem might be? I have managed to completely confuse myself again. There is nothing like GP programming to make one feel really dumb :o(
Thanks in advance,
Ann