> >>It should also be possible with the Javacard Development Kit from SUN:
> >>http://java.sun.com/products/javacard/dev_kit.html
> >>
> >No ! The Sun Java Card Development Kit can only be used for testing applets
> in a simulated 
> >environment, it does not allow you to download applets to a physical card.
> 
> Are you sure?
I am confused. I wanted to say that it is impossible to load an applet only with Sun 
Java Card 
Development Kit. I thank you wanted to use the "apdutool" command with the "-s" option 
to 
load the applet on the card through a serial reader. Sorry for this bad assumption.
Thus you are right. Indeed using the way you explain you can generate with "scriptgen" 
an 
APDU script that represents the package to load on the card. But I remember that this 
script 
must be cleaned.
...
>You can?t tell me that this is impossible.
No it is not impossible but before to load this APDU script you must set up "at the 
hand" the 
authentification step required on many Java Card to load a package/applet. Often the 
card 
follow the Global Platform specification to do it.

On my side I have used the solution you explain to load an applet on a Java Card not 
compliant 
with Global Platform and that does not required an authentication step. This Java Card 
followed 
the Java Card specifications about the installer [2].
I used the attached script "cap2apdu" that takes a capfile in argument and that 
produces a file 
"out7.txt" that can be loaded on my card with the "scriptor" tool [1].

> Can we send the APDUs with jpcsc?
Yes it is possible since JPC/SC is a Java API of the PC/SC Lite API. This is just a 
JNI-wrapper.

> I could of course use jcshell from the JCOP Tools but I would like to do 
> it with free software only.
I am agree with you and this is the reasons why I have asked my students to develop a 
such 
API/tool. But I think that actually there are to many bugs to distribute it.

[1]  http://ludovic.rousseau.free.fr/softwares/pcsc-tools/pcsc-tools.html
[2] doc/en/guides/cJDK_Users_Guide.pdf available in the Sun Java Card Kit 2_2-01 
(chapter 
11)

Regards,
--
Damien Sauveron

-------------------------------------------------
This mail sent through IMP: http://horde.org/imp/

Attachment: cap2apdu
Description: Binary data

_______________________________________________
Muscle mailing list
[EMAIL PROTECTED]
http://lists.drizzle.com/mailman/listinfo/muscle

Reply via email to