First of all, thank you for gp.jar. This is not a bug, but instead a feature request. I find the tool has accumulated many features/flags/options across its usage and development through the centuries. I have a JCOP jcsh script that I wish to convert into Java using gp.jar. However, in using gp.jar I am unable to extract or combine the needed constructs to execute my design.
Information about your card
As much information as you have:
JCOP3 SecID P60 CS
NXP
Global Platform 2.1.1 (secure channel protocol SCP 02 option 15)
The problem i'm having in the java test app is at step#3 after gp.openSecureChannel() I tried to call the applet via gp.transmit() and it gave me 0x6E00
I wish to convert the above JCOP jcsh script to java using gp.jar. My attempt of doing so is in the above log url. Using gp.jar in my App.java I did:
Select my applet
Test call into my applet to get current security level
Initiate open secure channel using gp
Make another call into my applet to get current security level
In my applet apdu call after I open secure channel, I get 0x6E00 it seems my applet is no longer selected. This applet is correctly behaving in a secure channel using the above jcsh scripts.
I tried status-im/status-keycard-java and it only work if secure channel is with MAC. If I attempt to add ENC, it returns 0x6982 and this error code is not coming from my applet, but instead I believe it is the system that throws it. With the refutations of gp.jar being a standards-based and versatile swiss-army knife javacard tool, I am planning to use its compatibility with our card to open secure channel. Need your guide and tips on how to convert the above jcsh script using gp.jar
After advised to use newer version of gp.jar, where the symptoms described here sounded similar to what I encountered, it fixed my issue. The legend of the all-in-one, multipurpose swiss-army knife tool of javacards lives on!
Describe the bug
First of all, thank you for
gp.jar
. This is not a bug, but instead a feature request. I find the tool has accumulated many features/flags/options across its usage and development through the centuries. I have a JCOP jcsh script that I wish to convert into Java usinggp.jar
. However, in usinggp.jar
I am unable to extract or combine the needed constructs to execute my design.Information about your card
As much information as you have:
Expected behavior
Current jcsh script:
Current attempt to convert to java using
gp.jar
: https://github.com/typelogic/usegp/blob/master/App.javaThe problem i'm having in the java test app is at step#3 after
gp.openSecureChannel()
I tried to call the applet viagp.transmit()
and it gave me0x6E00
Full log
https://gist.github.com/typelogic/93b0a86ce4a196abaa5e8d24b991a97d
Additional context
I wish to convert the above JCOP jcsh script to java using
gp.jar
. My attempt of doing so is in the above log url. Usinggp.jar
in myApp.java
I did:gp
In my applet apdu call after I open secure channel, I get
0x6E00
it seems my applet is no longer selected. This applet is correctly behaving in a secure channel using the above jcsh scripts.I tried
status-im/status-keycard-java
and it only work if secure channel is withMAC
. If I attempt to addENC
, it returns0x6982
and this error code is not coming from my applet, but instead I believe it is the system that throws it. With the refutations ofgp.jar
being a standards-based and versatile swiss-army knife javacard tool, I am planning to use its compatibility with our card to open secure channel. Need your guide and tips on how to convert the above jcsh script usinggp.jar