Hello,

I am trying to use a GemPlus 211 PK smart card through the MuscleCard
Applet, but I can't format it through MuscleTool 0.9.2.

Here is the output leading to the format error:

muscle > tokens
   1.    MuscleCard Applet

muscle > format 1
Would you like to:
        1. Use the default factory key: 2C15E526E93E8A19
        2. Use the MUSCLE default key : 4D7573636C653030
        3. Enter your own transport key

Choose (1-3): 2 (or 1: does not change the error code)

How much object memory would you like to allocate ?
Example: 7096 (7k) : 3900
Please enter a new auth pin value (pin 0) : 0123
Please enter your user pin value (pin 1)  : 1234
Please enter your user pin unblock value  : 2345
Please enter your number of pin tries     : 5

********************* WARNING ! *********************
You are about to destroy all data on this token.
*****************************************************

Current admin pin      : Muscle00
New admin pin          : 0123
New user pin           : 1234
New user unblock pin   : 2345
Number of tries        : 5
Object memory          : 3900

Are you sure you want to continue ? (1-YES, 2-NO): 1

Formatting token [**] : Failed (Unknown SW: 8200)



As you see, the error code does not help a lot... Is it a PCSClite
configuration error (which I doubt), a Muscletool problem, do I need to
enter a specific transport key for GemPlus cards, is it something else?


What I have done so far: I have compiled the MuscleCard Applet, version
0.9.11, with the recommended 1.2.2 JDK, on linux (by the way the
Compile.sh script for GemXpresso seems to need the attached patch); then
I used my Windows installation of GemPlus RAD III to load the MuscleCard
applet successfully on the card (if someone has managed to have
JCardManager with GemPlus GPR400 PCMCIA smart card readers on *Linux* by
the way, I am interested too!). Finally, I used muscletool on Linux to
have the error you can see above. Last piece of information I can think
of: pcsc_scan (v1.3.3 w/ pcsc-lite v1.2.0) works, and identifies my
GemXpresso 211PK as expected.


Many thanks in advance for your help,
-- 
clem / Cl�ment S�veillac
Guest Researcher, Computer Security Division
National Institute of Standards and Technology, MD, USA
Tel: (301) 975 2593 - Web: http://csrc.nist.gov/

--- MCardApplet-0.9.11.orig/GemXpressoRADIII/Compile.sh	2002-10-20 13:26:11.000000000 -0400
+++ MCardApplet-0.9.11/GemXpressoRADIII/Compile.sh	2004-04-20 19:56:09.000000000 -0400
@@ -5,11 +5,22 @@
 
 # $Id: Compile.sh,v 1.1 2002/10/20 17:26:11 rousseau Exp $
 
-OUT=$(pwd)/out
-SRC=$(pwd)/src/*.java
+APPLET_SRC=$(pwd)/../src/com/musclecard/CardEdge/*.java
+OUTPUT_DIR=$(pwd)/out
 
 . ~/.gxp_rad_profile
 
+# exit if error
+set -e
+
+if [ ! -d "$OUTPUT_DIR" ]
+then
+        mkdir "$OUTPUT_DIR"
+fi
+
+# print executed commands
+set -x
+
 LP=""
 export LP
 . $RAD_HOME/bin/GxpRADInit.sh
@@ -18,5 +29,5 @@
 echo '-======================================-'
 echo '        Compiling Java files'
 echo '-======================================-'
-$JAVA_BIN/javac -classpath $RAD_HOME/lib/gse/gse_gxp211_pk.jar -g -d $OUT $SRC
+$JAVA_BIN/javac -verbose -classpath $RAD_HOME/lib/gse/gse_gxp211_pk.jar -g -d $OUTPUT_DIR $APPLET_SRC
 
_______________________________________________
Muscle mailing list
[EMAIL PROTECTED]
http://lists.drizzle.com/mailman/listinfo/muscle

Reply via email to