While trying to upload/install the JavaCard applet, I get the error:
cm> /term "winscard:4|ActivCard ActivCard USB Reader V3 0"
--Opening terminal
/card -a a000000003000000 -c com.ibm.jc.CardManager
resetCard with timeout: 0 (ms)
--Waiting for card...
ATR=3B F8 13 00 00 81 31 FE 45 4A 43 4F 50 76 32 34 ;.....1.EJCOPv24
31 B7 1.
IOCTL().
ATR:
T = 1
=> 00 A4 04 00 08 A0 00 00 00 03 00 00 00 00 ..............
(43870 usec)
<= 6F 65 84 08 A0 00 00 00 03 00 00 00 A5 59 9F 65 oe...........Y.e
01 FF 9F 6E 06 47 91 00 78 34 00 73 4A 06 07 2A ...n.G..x4.sJ..*
86 48 86 FC 6B 01 60 0C 06 0A 2A 86 48 86 FC 6B .H..k.`...*.H..k
02 02 01 01 63 09 06 07 2A 86 48 86 FC 6B 03 64 ....c...*.H..k.d
0B 06 09 2A 86 48 86 FC 6B 04 02 15 65 0B 06 09 ...*.H..k...e...
2B 85 10 86 48 64 02 01 03 66 0C 06 0A 2B 06 01 +...Hd...f...+..
04 01 2A 02 6E 01 02 90 00 ..*.n....
Status: No Error
cm> set-key 255/1/DES-ECB/404142434445464748494a4b4c4d4e4f 255/2/DES-ECB/404142434445464748494a4b4c4d4e4f 255/3/DES-ECB/404142434445464748494a4b4c4d4e4f
cm> init-update 255
=> 80 50 00 00 08 5E 82 48 0F D7 13 4C C1 00 .P...^.H...L..
(48629 usec)
<= 00 00 11 67 00 63 24 95 63 35 FF 02 00 AA 10 5B ...g.c$.c5.....[
D3 4B FE 45 E8 06 CC 5F 8D E9 F7 8F 90 00 .K.E..._......
Status: No Error
cm> ext-auth plain
=> 84 82 00 00 10 9C 18 8E AA D4 BE 2C 0E 75 4E DF ...........,.uN.
48 0D B3 BA 65 H...e
(48233 usec)
<= 90 00 ..
Status: No Error
cm> delete -r 6961736563636170706c65742e70616b
=> 80 E4 00 80 12 4F 10 69 61 73 65 63 63 61 70 70 .....O.iaseccapp
6C 65 74 2E 70 61 6B 00 let.pak.
(192529 usec)
<= 69 85 i.
Status: Conditions of use not satisfied
jcshell: Error code: 6985 (Conditions of use not satisfied)
jcshell: Wrong response APDU: 6985
Ignoring expected error
cm> delete -r 6961736563636170692e70616b
=> 80 E4 00 80 0F 4F 0D 69 61 73 65 63 63 61 70 69 .....O.iaseccapi
2E 70 61 6B 00 .pak.
(21937 usec)
<= 69 85 i.
Status: Conditions of use not satisfied
jcshell: Error code: 6985 (Conditions of use not satisfied)
jcshell: Wrong response APDU: 6985
Ignoring expected error
cm> upload -c -d -b 250 "C:\WORKSPACE\IASECCApplet1.0\bin\hr\akd\iasecc\api\javacard\api.cap"
=> 80 E6 02 00 1A 0D 69 61 73 65 63 63 61 70 69 2E ......iaseccapi.
70 61 6B 08 A0 00 00 00 03 00 00 00 00 00 00 00 pak.............
(23343 usec)
<= 69 85 i.
Status: Conditions of use not satisfied
jcshell: Error code: 6985 (Conditions of use not satisfied)
jcshell: Wrong response APDU: 6985
Unexpected error; aborting execution