I am trying to install a simple applet on a Java Card but I got the error:
load returns 0x80206985 Command not allowed - Conditions of use not satisfied when installing applet
The code seems is working on Eclipse's simulator, but when I want to convert it and send the CAP file to the card I get the above error. I use GPShell for installing the applet. The installer script is listed below
mode_201
gemXpressoPro
enable_trace
enable_timer
establish_context
card_connect
select -AID A000000018434D00
open_sc -security 3 -keyind 0 -keyver 0 -key 47454d5850524553534f53414d504c45
install -file sid.cap
card_disconnect
release_context
The SDK for Java Card is version 2.2.2 and for converting I used Eclipse-JCDE0.2. I got the same kind of error when I try to install any other applet. I also tried to downgrade the Java Card SDK to version 2.1.1 but that didn't solved my problem. I attached below a screenshot with the problem.
I managed to solve the problem by downgrade from Java Card 2.2.2 to Java Card 2.2.1 . It seems that was a compatibility problem between Java Card SDK and GpShell version I used.