From: KoSuKe <kos...@gm...> - 2010-10-07 09:39:18
|
Hi, Thanks for all. I finally found the way to initialize the card. I use this install file http://daniel.benoy.name/personal/mcardInstallFormat-CyberFlex64kV2c.txt , and this applet http://vrweb.de/~martin.buechler/smartcard/CFlexAccess32Loader.zip . Now I can store my certificates in the card. El 07/10/10 08:40, Karsten Ohme escribió: > Hi, > > so try to use the normal helloworld.cap file. I guess the proprietary > transformation is not more necessary. > > Karsten > > Am 07.10.2010 03:28, schrieb KoSuKe: >> Hi, >> >> I don't know if is this necesary, I'm so newbie. >> >> I'm followinghttp://www.opensc-project.org/opensc/wiki/Cyberflex >> >> The card is Gemalto TOP IM FIPS CY2 (former Cyberflex Access 64kv2 Pegasus) >> >> I try to use the new install file, but it failed >> >> GPShell returns >> >> enable_trace >> enable_timer >> establish_context >> command time: 0 ms >> card_connect >> command time: 687 ms >> select -AID a0000000030000 >> Command --> 00A4040007A0000000030000 >> Wrapped command --> 00A4040007A0000000030000 >> Response<-- 6F198408A000000003000000A50D9F6E062091010342759F6501FF9000 >> command time: 16 ms >> open_sc -security 1 -keyind 0 -keyver 0 -mac_key 404142434445464748494a4b4c4d4e4 >> f -enc_key 404142434445464748494a4b4c4d4e4f // Open secure channel >> Command --> 80500000083B320B2012F5D98000 >> Wrapped command --> 80500000083B320B2012F5D98000 >> Response<-- 0000900029191D107E3D01017F2AB59EBEAA54B776E7EFF30F8ABE079000 >> Command --> 8482010010FDBF218D619DBD026635615532295579 >> Wrapped command --> 8482010010FDBF218D619DBD026635615532295579 >> Response<-- 9000 >> command time: 328 ms >> delete -AID D0D1D2D3D4D50101 >> Command --> 80E400000A4F08D0D1D2D3D4D5010100 >> Wrapped command --> 84E40000124F08D0D1D2D3D4D50101DBC7F8EE423C823C00 >> Response<-- 6A88 >> delete() returns 0x80206A88 (6A88: Referenced data not found.) >> command time: 62 ms >> delete -AID D0D1D2D3D4D501 >> Command --> 80E40000094F07D0D1D2D3D4D50100 >> Wrapped command --> 84E40000114F07D0D1D2D3D4D501BCA3749938886D0300 >> Response<-- 6A88 >> delete() returns 0x80206A88 (6A88: Referenced data not found.) >> command time: 78 ms >> install -nvDataLimit 500 -instParam 00 -priv 02 -file helloworld.cap.transf >> Command --> 80E602001907D0D1D2D3D4D50107A00000000300000006EF04C60201600000 >> Wrapped command --> 84E602002107D0D1D2D3D4D50107A00000000300000006EF04C602016000 >> 27C8F8BB5FDAD49E00 >> Response<-- 6A80 >> install_for_load() returns 0x80206A80 (6A80: Wrong data / Incorrect values in co >> mmand data.) >> >> Kosuke. >> >> >Hi, >> > >> >You are using a transformed applet. Is this necessary. The script file >> >is the one for a Cyberflex = (noe Gemalto) card? >> > >> >I guess for the version GPShell 1.4.3 the shipped HellWorld AIDs >> >(a00000006203010c01) are not correct anymore. It should be D0D1D2D3D4D50101 >> > >> >Try to use the install command directly: >> > >> >install HelloWorld.cap -instParam 00 -priv 02 -nvDataLimit 500 >> > >> >The new install file for a Cyberflex is: >> > >> >enable_trace >> >enable_timer >> >establish_context >> >card_connect >> >select -AID a0000000030000 >> >open_sc -security 1 -keyind 0 -keyver 0 -mac_key >> >404142434445464748494a4b4c4d4e4f -enc_key >> >404142434445464748494a4b4c4d4e4f // Open secure channel >> >delete -AID D0D1D2D3D4D50101 >> >delete -AID D0D1D2D3D4D501 >> >install -nvDataLimit 500 -instParam 00 -priv 02 -file helloworld.cap.transf >> >card_disconnect >> >release_context >> > >> >Karsten >> > >> >Am 07.10.2010 01:53, schrieb KoSuKe: >> >> Hi, >> >> >> >> I have this card and I'm trying to initialize it. >> >> My reader is LTC31. >> >> GPShell 1.4.3 >> >> >> >> -- instructions -- >> >> >> >> enable_trace >> >> establish_context >> >> card_connect >> >> select -AID a0000000030000 >> >> 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 >> >> load -file HelloWorld.cap.transf >> >> install_for_install -instParam 00 -priv 02 -AID a00000006203010c0101 >> >> -pkgAID a00000006203010c01 -instAID a00000006203010c0101 -nvDataLimit 500 >> >> card_disconnect >> >> release_context >> >> >> >> -- instructions -- >> >> >> >> GPShell returns >> >> >> >> enable_trace >> >> establish_context >> >> card_connect >> >> select -AID a0000000030000 >> >> Command --> 00A4040007A0000000030000 >> >> Wrapped command --> 00A4040007A0000000030000 >> >> Response<-- 6F198408A000000003000000A50D9F6E062091010342759F6501FF9000 >> >> open_sc -security 1 -keyind 0 -keyver 0 -mac_key >> >> 404142434445464748494a4b4c4d4e4 >> >> f -enc_key 404142434445464748494a4b4c4d4e4f >> >> Command --> 8050000008BC451F997B93FAA200 >> >> Wrapped command --> 8050000008BC451F997B93FAA200 >> >> Response<-- 0000900029191D107E3D010189E893731D0B99B65643DB9186F3AB839000 >> >> Command --> 8482010010D568455B835FA2D3515076A55AB82809 >> >> Wrapped command --> 8482010010D568455B835FA2D3515076A55AB82809 >> >> Response<-- 9000 >> >> delete -AID a00000006203010c0101 >> >> Command --> 80E400000C4F0AA00000006203010C010100 >> >> Wrapped command --> 84E40000144F0AA00000006203010C0101614954FE92979C3400 >> >> Response<-- 6A88 >> >> delete() returns 0x80206A88 (6A88: Referenced data not found.) >> >> delete -AID a00000006203010c01 >> >> Command --> 80E400000B4F09A00000006203010C0100 >> >> Wrapped command --> 84E40000134F09A00000006203010C01604A62AB3977A8C700 >> >> Response<-- 6A88 >> >> delete() returns 0x80206A88 (6A88: Referenced data not found.) >> >> install_for_load -pkgAID a00000006203010c01 -nvCodeLimit 500 >> >> Command --> >> >> 80E602001B09A00000006203010C0107A00000000300000006EF04C60202000000 >> >> Wrapped command --> >> >> 84E602002309A00000006203010C0107A00000000300000006EF04C60202 >> >> 0000D099B633297EEEF100 >> >> Response<-- 6A80 >> >> install_for_load() returns 0x80206A80 (6A80: Wrong data / Incorrect >> >> values in co >> >> mmand data.) >> >> >> >> what am i doing wrong? >> >> >> >> Thanks. >> >> >> >> ------------------------------------------------------------------------------ >> >> Beautiful is writing same markup. Internet Explorer 9 supports >> >> standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2& L3. >> >> Spend less time writing and rewriting code and more time creating great >> >> experiences on the web. Be a part of the beta today. >> >> http://p.sf.net/sfu/beautyoftheweb >> >> _______________________________________________ >> >> Globalplatform-users mailing list >> >> Glo...@li... <mailto:Glo...@li...> >> >> https://lists.sourceforge.net/lists/listinfo/globalplatform-users >> >> >> >> >> >> >> >> ------------------------------------------------------------------------------ >> Beautiful is writing same markup. Internet Explorer 9 supports >> standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2& L3. >> Spend less time writing and rewriting code and more time creating great >> experiences on the web. Be a part of the beta today. >> http://p.sf.net/sfu/beautyoftheweb >> >> >> _______________________________________________ >> Globalplatform-users mailing list >> Glo...@li... >> https://lists.sourceforge.net/lists/listinfo/globalplatform-users >> > |