On 1/31/2012 11:44 AM, Guilherme André Welter wrote:
Hello, i'm a student of Information Systems of Federal University of Santa Catarina - 
Brazil. I work in LabSEC <http://www.labsec.ufsc.br/> (Laboratory of Computing 
Security) and until now i'm
researching Java card tecnology, more specifically the MuscleCard Applet which 
are presenting some problems during the applet upload onto smartcard.
What i've done so far was download the applet (.cap) on MUSCLE Project site and try to 
upload it onto smartcard, unfortunately the download link of "MuscleCard Applet 
Loader" is not working so i
research how do this without it. Using GPShell, the commands that i used was:
*(Smart card used: Oberthur ID-One Cosmo V7.0.1)*

Are you sure the card is GP 2.0.1?
The ID-ONE Cosmos V7.0-n cards I have are GP 2.1.1.


$ gpshell
mode_201
enable_trace
establish_context
card_connect
select -AID a0 00 00 01 51 00 00
open_sc -security 3 -keyind 0 -keyver 0 -key 000000000000000000000000000000 00 
-keyDerivation emvcps11
install -file CardEdge.cap -instParam 00 -priv 2
card_disconnect
release_context

Returning this error "*read_executable_load_file_parameters() returns 
0x0096DB3B*"
I'd like to know if has sommething wrong in my script or if the card is not 
compatible with MuscleCard Applet.

Using capdump of JCDK on the applet the return is "*java.util.zip.ZipException: 
error in opening zip file"*

Also, i've downloaded the source at 
https://github.com/martinpaljak/MuscleApplet and i compiled it. With that 
appleti've succeeded to upload it onto smartcard but using this bash command 
after this all

opensc-tool -s 00:A4:04:00:06:A0:00:00:00:01:01  -s 
B0:2A:00:00:38:08:4D:75:73:63:6C:65:30:30:04:01:08:30:30:30:30:30:30:30:30:08:30:30:30:30:30:30:30:30:05:02:08:30:30:30:30:30:30:30:30:08:30:30:30:30:30:30:30:30:00:00:17:70:00:02:01


looking at the OpenSC card-muscle.c, msc_select_applet is called with a length 
of 5,
not 6, so try:

opensc-tool -s 00:A4:04:00:05:A0:00:00:00:01



This bash command return "*Received (SW1=0x69, SW2=0x99)*" for both APDUs.

Thank you.

--
Guilherme André Welter

Laboratório de Segurança em Computação - LabSEC
Universidade Federal de Santa Catarina - UFSC



_______________________________________________
Muscle mailing list
Muscle@lists.musclecard.com
http://lists.drizzle.com/mailman/listinfo/muscle

--

 Douglas E. Engert  <deeng...@anl.gov>
 Argonne National Laboratory
 9700 South Cass Avenue
 Argonne, Illinois  60439
 (630) 252-5444
_______________________________________________
Muscle mailing list
Muscle@lists.musclecard.com
http://lists.drizzle.com/mailman/listinfo/muscle

Reply via email to