From: <an...@fe...> - 2013-01-10 21:32:45
|
Hello, Spent a couple of evenings to have the github version of Muscle Applet built. Couldn't understand anything from the ant stuff, so did some modifcations on MCardApplet.sh script found from http//en.gentoo-wiki.com/wiki/Musclecard_applet Packages used for the compilation process are: * java_card_kit-2_2_2-linux.zip * jdk-1_5_0_22-linux-i586.bin * https://github.com/martinpaljak/MuscleApplet.git The applet seems to compile, convert and verify without problems. For a reference installed also the older (9.11) version of the applet and build environment. This compiles also fine. We have previously used Athena (atmel based) java cards together with Muscle Applet (up to version 9.11). Things worked fine until opensc 0.12.x. I'm currently testing with opensc-0.13.0 (on 64 bit gentoo). The new applet refuses to work. This can be observed from the output of the initialization command output: # 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 Using reader with a card: SCM Microsystems Inc. SCR 3310 [CCID Interface] (21120817304682) 00 00 Sending: 00 A4 04 00 06 A0 00 00 00 01 01 Received (SW1=0x69, SW2=0x99) Sending: 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 Received (SW1=0x69, SW2=0x99) 0x69 and 0x99 are signs of trouble here? With the 9.11 applet (same card, same tools and machine): Using reader with a card: SCM Microsystems Inc. SCR 3310 [CCID Interface] (21120817304682) 00 00 Sending: 00 A4 04 00 06 A0 00 00 00 01 01 Received (SW1=0x90, SW2=0x00) Sending: 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 Received (SW1=0x90, SW2=0x00) Any ideas what could be wrong? Memory issues with the card perhaps? Here is the gpshell script that was used: mode_211 enable_trace establish_context card_connect select -AID A0000001510000 open_sc -security 1 -keyind 0 -keyver 0 -mac_key 404142434445464748494a4b4c4d4e4f -enc_key 404142434445464748494a4b4c4d4e4f delete -AID A0000003230101 delete -AID A00000032301 delete -AID A00000000101 delete -AID A000000001 install_for_load -pkgAID a000000001 -nvCodeLimit 13000 load -file CardEdge.cap install_for_install -instParam 00 -priv 02 -AID a00000000101 -pkgAID a000000001 -instAID a00000000101 -nvDataLimit 18000 card_disconnect release_context Greetings, Antti Antinoja ps. Could not find the 'A “relatively recent” build of the 2.2.2 version is attached to this page, it can be loaded to compatible cards as instructed on the JavaCard page.' which was mentioned at https://github.com/OpenSC/OpenSC/wiki/Muscle-applet -- Antti Antinoja Fennosys Oy Lågnäsintie 289E 10210 Inkoo Finland tel. +358-400-396629 email ant...@fe... |