It seams that the aid is a0000003230101 but not 00 00 00 03 23 01 01 . The 
select command must be 
00000008 APDU: 00 A4 04 00 07 A0 00 00 03 23 01 01 

cdc
  ----- Original Message ----- 
  From: erbalibera erbalibera 
  To: MUSCLE 
  Sent: Monday, September 21, 2009 4:56 PM
  Subject: [Muscle] Issue after install the applet on card.


  Hi guys I had been able to install MCardApplet on a CyberFlex e-gate 32. I 
used the following script to load and install the applet on the card.

  Nabucodonosor gpshell-1.4.0 # cat helloInstallCyberflexe-gate32k.txt 
  mode_201
  enable_trace
  establish_context
  card_connect
  select -AID a0000000030000
  open_sc -security 0 -keyind 0 -keyver 0 -mac_key 
404142434445464748494a4b4c4d4e4f -enc_key 404142434445464748494a4b4c4d4e4f // 
Open secure channel
  install_for_load -pkgAID a00000032301 -nvCodeLimit 18200 
  load -file applet.bin
  install_for_install -instParam 00 -priv 02 -AID a0000003230101 -pkgAID 
a00000032301 -instAID a0000003230101 -nvDataLimit 12000 
  card_disconnect
  release_context

  Now, If I run muscletool and try to format the card I've:

  muscleTool > format 1
  ERR: EstablishConnection Failed ! (0x9C52 Token is unsupported)
  muscleTool > 

  00000008 APDU: 00 A4 04 00 07 00 00 00 03 23 01 01 
  00038511 SW: 6A 82 

  Could somebody help me to fix?

  Thanks in advance.
  -eg




------------------------------------------------------------------------------


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

Reply via email to