|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
From: Ralf Schlatterbeck (rsc
runtux.com)
Date: Thu Dec 03 2009 - 07:06:15 CST
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Just got my Gemalto TOP IM FIPS CY2 (Cyberflex Access 64k v2)
in the mail.
I can successfully download the helloworld applet to the card using the
following commands with gpshell:
mode_201
enable_trace
establish_context
card_connect
select -AID a000000003000000
open_sc -security 1 -keyind 0 -keyver 0 -mac_key 404142434445464748494a4b4c4d4e4f -enc_key 404142434445464748494a4b4c4d4e4f // Open secure channel
delete -AID a00000006203010c0101
delete -AID a00000006203010c01
install_for_load -pkgAID a00000006203010c01 -nvCodeLimit 500 -sdAID A000000003000000
load -file HelloWorld.cap.transf
install_for_install -instParam 00 -priv 02 -AID a00000006203010c0101 -pkgAID a00000006203010c01 -instAID a00000006203010c0101 -nvDataLimit 500
card_disconnect
release_context
Note that I had to correct a wrapped line and the -AID parameter to
install_for_install compared to the helloInstallCyberflexAccess64k.txt
that comes with gpshell.
Anything I can do with the HelloWorld applet to test if I can run it?
But downloading the MCardApplet -- both my homegrown one and one
downloaded from
http://www.opensc-project.org/opensc/attachment/wiki/Cyberflex/CardEdgeII.ijc
leads the following error after issuing the install_for_install command:
install_for_install -instParam 00 -priv 02 -AID A0000003230101 -pkgAID A00000032301 -instAID A0000003230101 -nvDataLimit 32000
Command --> 80E60C002406A0000003230107A000000323010107A0000003230101010209C90100EF04C8027D000000
Wrapped command --> 84E60C002C06A0000003230107A000000323010107A0000003230101010209C90100EF04C8027D00006A2C1038B01593C000
Response <-- 6A80
install_for_install_and_make_selectable() returns 0x80206A80 (6A80: Wrong data / Incorrect values in command data.)
the full gpshell-script I'm using is:
enable_trace
establish_context
card_connect
select -AID a000000003000000
open_sc -security 1 -keyind 0 -keyver 0 -mac_key 404142434445464748494a4b4c4d4e4f -enc_key 404142434445464748494a4b4c4d4e4f
delete -AID a0000003230101
delete -AID a00000032301
install_for_load -pkgAID a00000032301 -nvCodeLimit 16000 -sdAID a000000003000000
load -file CardEdgeCflex.ijc
install_for_install -instParam 00 -priv 02 -AID a0000003230101 -pkgAID a00000032301 -instAID a0000003230101 -nvDataLimit 16000
get_status -element 20
card_disconnect
release_context
Any ideas?
Thanks, Ralf
--
Dr. Ralf Schlatterbeck Tel: +43/2243/26465-16
Open Source Consulting Fax: +43/2243/26465-23
Reichergasse 131 www: http://www.runtux.com
A-3411 Weidling email: office
runtux.com
osAlliance member email: rsc
osalliance.com
_______________________________________________
Muscle mailing list
Muscle
lists.musclecard.com
http://lists.drizzle.com/mailman/listinfo/muscle
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]