[Muscle] GPShell and Gemalto - 0x80206985 error
jmleocadio
jmleocadio at gmail.com
Tue Jun 17 06:47:23 PDT 2008
Finally I found the solution of my problem. I'm using Java Card 2.2.1
library (api.jar) for compilation of my applet. After generating the .cap, I
used GPShell 1.4.2 with Java Card 2.1.1 and it works with Gemalto Top Im
GX4, like Karsten's tip.
All question of software management configuration.
Thanks.
jmleocadio wrote:
>
>
> Karsten,
>
> I´ll do a donwgrade in the version of Java Card (for 2.1.1) and post the
> results here.
>
> Yes, there was an error while I was senting the message by Web form,
> sorry. But the thred in Web is formatted:
> http://www.nabble.com/GPShell-and-Gemalto---0x80206985-error-tt17018814.html#a17018814
>
> thks.
>
>
>
> Karsten Ohme wrote:
>>
>> jmleocadio schrieb:
>>
>> I have no real idea what could be the problem, but try the following:
>>
>> Maybe the Java Card version is wrong. Java Card 2.1.1 is used for
>> gemXpresso 3.x cards.
>>
>> Or try to give -security 3 during open_sc.
>>
>> Which mail program do you use? It seems that it sends no line breaks.
>> The text is unreadable.
>>
>> Maybe you can check out an earlier version of GPShell. Maybe the bug is
>> new.
>>
>> Regards,
>> Karsten
>>
>>> I´m trying to install a .cap into my gemalto Top im gx4 smartcard and
>>> Gemsafe GxPro R3.2 (with GPShell 1.1.4 and Java card kit 2.2.1) and I´ve
>>> got the following error: 0x80206985, 6985: Command not allowed -
>>> Conditions of use not satisfied.). Eclipse´s Console results(1), Source
>>> Code(2) and GPShell(3) below. Interesting is that I could load the
>>> HelloWorld.cap that comes with GPShell but cannot load my applet. Any
>>> ideas on how to solve it? Regards. (1) Eclipse console: Buildfile:
>>> C:\projeto\JavaCard\build.xml applet-upload: [exec] mode_201 [exec]
>>> gemXpressoPro [exec] enable_trace [exec] establish_context [exec]
>>> card_connect [exec] * reader name GEP GEP100U 0 [exec] select -AID
>>> A000000018434D00 [exec] Command --> 00A4040008A000000018434D00 [exec]
>>> Wrapped command --> 00A4040008A000000018434D00 [exec] Response <--
>>> 6F198408A000000018434D00A50D9F6E061291334903029F6501FF9000 [exec]
>>> open_sc -security 0 -keyind 0 -keyver 0 -key
>>> 47454d5850524553534f53414d504c45 // Open secure channel [exec] Command
>>> --> 80CA9F7F00 [exec] Wrapped command --> 80CA9F7F00 [exec] Response <--
>>> 9F7F2A409066221291334903024082D513091126AF4082000012930000000053210000010100000000000000009000
>>> [exec] Command --> 805000000882A7F793D8521FCB00 [exec] Wrapped command
>>> --> 805000000882A7F793D8521FCB00 [exec] Response <--
>>> 4D004082D513091126AF0101DECB47CA578598F68E8181F545021FFE9000 [exec]
>>> Command --> 8482000010B1AE6D0A602D7ECD287E204330193149 [exec] Wrapped
>>> command --> 8482000010B1AE6D0A602D7ECD287E204330193149 [exec] Response
>>> <-- 9000 [exec] install -file
>>> C:\projeto\JavaCard\cap\br\unb\payment\javacard\payment.cap -sdAID
>>> A000000018434D00 -nvCodeLimit 4000 [exec] file name
>>> C:\projeto\JavaCard\cap\br\unb\payment\javacard\payment.cap [exec]
>>> Command -->
>>> 80E602001C09A00000006203010C0108A000000018434D000006EF04C6020FB00000
>>> [exec] Wrapped command -->
>>> 80E602001C09A00000006203010C0108A000000018434D000006EF04C6020FB00000
>>> [exec] Response <-- 009000 [exec] Command -->
>>> 80E80000EFC48201AD010013DECAFFED010204000109A00000006203010C0102001F0013001F000E00150032000C0063000A00130000007C00000000000002010004001502030107A0000000620101030107A000000062010203000E010AA00000006203010C0101002C06000C008003040004070100000040070063000310188C0004181014038D00058700181014038D00058701181014038D00058702181014038D000587037A05308F00063D8C0007181D0441181D258B00087A0221188B000960037A198B000A2D1A042573000B0000000000097008116D008D000B7A08000A00000000000000000000050032000C020000
>>> [exec] Wrapped command -->
>>> 80E80000EFC48201AD010013DECAFFED010204000109A00000006203010C0102001F0013001F000E00150032000C0063000A00130000007C00000000000002010004001502030107A0000000620101030107A000000062010203000E010AA00000006203010C0101002C06000C008003040004070100000040070063000310188C0004181014038D00058700181014038D00058701181014038D00058702181014038D000587037A05308F00063D8C0007181D0441181D258B00087A0221188B000960037A198B000A2D1A042573000B0000000000097008116D008D000B7A08000A00000000000000000000050032000C020000
>>> [exec] Response <-- 6985 [exec] load_applet() returns 0x80206985 (6985:
>>> Command not allowed - Conditions of use not satisfied.) [exec] Result: 1
>>> BUILD SUCCESSFUL Total time: 1 second (2) Applet source code (equals to
>>> java_card_kit-2_2_1\samples\src\com\sun\javacard\samples\NullApp. I
>>> tried to simplify the applet I´m building until be capable to load it):
>>> package br.unb.payment; import javacard.framework.*; public class
>>> eTransfer extends Applet { protected eTransfer(APDU apdu) { register();
>>> } public static void install( byte[] bArray, short bOffset, byte bLength
>>> ) { new eTransfer(null); } public void process(APDU apdu) throws
>>> ISOException { byte buffer[] = apdu.getBuffer();
>>> ISOException.throwIt(Util.makeShort((byte)(ISO7816.SW_INS_NOT_SUPPORTED>>8),
>>> buffer[1])); } } (3) GPShell script (equals to
>>> helloInstallgemXpressoProR3_2E64.txt that comes with it). mode_201
>>> gemXpressoPro enable_trace establish_context card_connect select -AID
>>> A000000018434D00 open_sc -security 0 -keyind 0 -keyver 0 -key
>>> 47454d5850524553534f53414d504c45 // Open secure channel install -file
>>> C:\projeto\JavaCard\cap\br\unb\payment\javacard\payment.cap -sdAID
>>> A000000018434D00 -nvCodeLimit 4000 card_disconnect release_context
>>> ------------------------------------------------------------------------
>>> View this message in context: GPShell and Gemalto - 0x80206985 error
>>> <http://www.nabble.com/GPShell-and-Gemalto---0x80206985-error-tp17018814p17018814.html>
>>> Sent from the MuscleCard mailing list archive
>>> <http://www.nabble.com/MuscleCard-f14240.html> at Nabble.com.
>>>
>>>
>>> ------------------------------------------------------------------------
>>>
>>> _______________________________________________
>>> Muscle mailing list
>>> Muscle at lists.musclecard.com
>>> http://lists.drizzle.com/mailman/listinfo/muscle
>>
>> _______________________________________________
>> Muscle mailing list
>> Muscle at lists.musclecard.com
>> http://lists.drizzle.com/mailman/listinfo/muscle
>>
>>
>
>
--
View this message in context: http://www.nabble.com/GPShell-and-Gemalto---0x80206985-error-tp17018814p17904317.html
Sent from the MuscleCard mailing list archive at Nabble.com.
More information about the Muscle
mailing list