You can subscribe to this list here.
2006 |
Jan
|
Feb
|
Mar
(18) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(5) |
Oct
(15) |
Nov
|
Dec
(6) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2007 |
Jan
(2) |
Feb
|
Mar
|
Apr
(1) |
May
(4) |
Jun
|
Jul
(10) |
Aug
(7) |
Sep
|
Oct
(2) |
Nov
(1) |
Dec
|
2008 |
Jan
(2) |
Feb
(7) |
Mar
(1) |
Apr
(7) |
May
|
Jun
|
Jul
|
Aug
(4) |
Sep
(9) |
Oct
(6) |
Nov
|
Dec
(22) |
2009 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(3) |
Jun
(3) |
Jul
(2) |
Aug
(2) |
Sep
(3) |
Oct
|
Nov
(6) |
Dec
(1) |
2010 |
Jan
(1) |
Feb
|
Mar
(2) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(3) |
Oct
(11) |
Nov
|
Dec
|
2011 |
Jan
|
Feb
(1) |
Mar
|
Apr
|
May
|
Jun
|
Jul
(11) |
Aug
(7) |
Sep
(1) |
Oct
|
Nov
|
Dec
|
2012 |
Jan
(2) |
Feb
|
Mar
|
Apr
|
May
|
Jun
(1) |
Jul
|
Aug
|
Sep
(1) |
Oct
|
Nov
|
Dec
|
2013 |
Jan
(2) |
Feb
|
Mar
(4) |
Apr
(5) |
May
(6) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(1) |
Nov
|
Dec
|
2014 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(1) |
2015 |
Jan
|
Feb
(2) |
Mar
(2) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(1) |
Dec
|
2017 |
Jan
|
Feb
(1) |
Mar
|
Apr
|
May
|
Jun
(1) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(1) |
Dec
|
2018 |
Jan
|
Feb
|
Mar
|
Apr
(1) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2019 |
Jan
|
Feb
(2) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2020 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(1) |
Oct
|
Nov
|
Dec
|
2022 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(1) |
Sep
|
Oct
|
Nov
|
Dec
|
From: Marcel M. M. T. <mar...@sm...> - 2011-07-04 20:14:08
|
Good Day, I'm trying to load the test applet in a JCOP 41 v 2.3.2 card using GPShell (1.4.4) and the script helloInstalGP211.txt: mode_211 enable_trace enable_timer 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 D0D1D2D3D4D50101 delete -AID D0D1D2D3D4D501 install -file helloworld.cap -nvDataLimit 2000 -instParam 00 -priv 2 # getdata # close_sc // Close secure channel # putkey // Put key // options: // -keyind Key index // -keyver Key version // -key Key value in hex card_disconnect release_context However, it always fails when selecting the master file (select -AID a000000003000000) without mattering which AID I put. The response for the select is always 6A82 (file not found). I have already tested it with 3 JCOP 41 v 2.3.2 Any ideas why could this be happening? Thanks for your help, Marcel |
From: Marcel M. M. T. <mar...@sm...> - 2011-07-04 20:09:07
|
-----Original Message----- From: Marcel Mauricio Mancini Tavara Sent: Mon 7/4/2011 3:53 PM To: glo...@li... Subject: JCOP 41 V 2.3.2 Good Day, I'm trying to load the test applet in a JCOP 41 v 2.3.2 card using GPShell (1.4.4) and the script helloInstalGP211.txt: mode_211 enable_trace enable_timer 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 D0D1D2D3D4D50101 delete -AID D0D1D2D3D4D501 install -file helloworld.cap -nvDataLimit 2000 -instParam 00 -priv 2 # getdata # close_sc // Close secure channel # putkey // Put key // options: // -keyind Key index // -keyver Key version // -key Key value in hex card_disconnect release_context However, it always fails when selecting the master file (select -AID a000000003000000) without mattering which AID I put. The response for the select is always 6A82 (file not found). I have already tested it with 3 JCOP 41 v 2.3.2 Any ideas why could this be happening? Thanks for your help, Marcel |
From: Marcel M. M. T. <mar...@sm...> - 2011-07-04 20:09:07
|
Good Day, I'm trying to load the test applet in a JCOP 41 v 2.3.2 card using GPShell (1.4.4) and the script helloInstalGP211.txt: mode_211 enable_trace enable_timer 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 D0D1D2D3D4D50101 delete -AID D0D1D2D3D4D501 install -file helloworld.cap -nvDataLimit 2000 -instParam 00 -priv 2 # getdata # close_sc // Close secure channel # putkey // Put key // options: // -keyind Key index // -keyver Key version // -key Key value in hex card_disconnect release_context However, it always fails when selecting the master file (select -AID a000000003000000) without mattering which AID I put. The response for the select is always 6A82 (file not found). I have already tested it with 3 JCOP 41 v 2.3.2 Any ideas why could this be happening? Thanks for your help, Marcel |
From: Laurent G. <pr....@at...> - 2011-02-28 10:56:25
|
Mr. Laurent Gbagbo President of the Republic of Côte D'Ivoire I decided to write you because of the entreaty of this matter whereas speedy operation in this case is truly required. Should you not be surprised of this e-mail since we have not met or had any previous correspondence, I offer. I have written to seek your indulgence and faithfulness. Due to the current rising tension in my country as per our first presidential election, this has caused many damages to the country in terms of violence and many people killed. For safety seek, Please assist in moving my resources to your country with due entreaty. You shall be entitled to these resources as the Rightful Foreign Beneficiary to me in receiving these resources . You are assured that this convey is hundred percent safe. These resources are the only things I have left to help me secure my future. This entails the main reason why I still hold on the presidential Armor; because I must make sure that these resources are successfully conveyed outside Africa to you in your country. I thereafter will release the presidential seat to the new president as soon as the resources gets to you in your country. As at now the resources have been conveyed to one of the African Countries in the sense of upholding serenity over the matter later to any overseas country outside the African Continent. I am willing to offer you twenty five percent of the total resources upon successful convey and my arrival in your country. Mind you, I want you to keep this matter off the record for security reasons considering the circumstances around me. Your immediate attention to this matter will be highly appreciated. Thanks and God bless you. Sincerely yours, Laurent Gbagbo Sent via iPhone |
From: Karsten O. <wid...@t-...> - 2010-10-14 16:30:12
|
Am 14.10.2010 10:46, schrieb C.J.Seah: > Hi, > > Any future plan for the support of more key derivation scheme such as > Visa card production guide KDC derivation? Hi, of course. If you can provide me with the algorithm details and which cards are supporting this. And a test card would also be great, because otherwise I cannot test it. Best is you can name the specification where the algorithm is described. The Visa KDC is not the same like http://www.emvco.com/specifications.aspx?id=20 (EMV CPS 1.1)? You have tried the two currently supported modes? Karsten > > 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... > https://lists.sourceforge.net/lists/listinfo/globalplatform-users > |
From: C.J.Seah <se...@gm...> - 2010-10-14 08:47:07
|
Hi, Any future plan for the support of more key derivation scheme such as Visa card production guide KDC derivation? Thanks |
From: Karsten O. <wid...@t-...> - 2010-10-11 20:49:42
|
Hi Mike, is there anything gpshell can do here? Would be a proper handling of this to intercept such command and so a GET DATA automatically? This works within a secure channel? Karsten Am 05.10.2010 04:02, schrieb Michael StJohns: > You need a newer version of ISO 7816-4 - the 2005 version explains this. > > Basically, this is saying that the card has data of some sort (2005 > says a query) that has to be responded to. > > > Do a "GET DATA" with a P1P2 of 0000 and with a Le of 0x36 (or whatever > the value XX of 64XX you get is). My guess (its not clear in the > document) is that the returned data will look like a Command APDU > > Once you figure out what's going on, you do the response with a PUT > DATA and P1P2 of 0000 with whatever the appropriate response is. > > Ideally, you should get the card specific guide to explain what's > going on. > > My further guess is that it's looking for a specific library and that > the response is telling you which one(s) is/are missing. > > Mike > > > At 06:05 PM 10/3/2010, Karsten Ohme wrote: >> Hi, >> >> *0x6436 is a strange error. This seems to be a proprietary response. >> According to ISO 7816-4 only 6400 *is specified. Also the GP spec >> does not mention it. >> >> Maybe it complains because about the cap file format. Although it >> fits try to use a lower Java Card version. Some cards also want that >> the cap file is transformed into something proprietary. In you script >> you also have commented out *BusCardApplet.transf*. So you are using >> a CAP transformator? >> >> You can also try to start with a "load" command in the script file, >> until this step works. Later you can go back to the complete install >> command. >> >> But start to try to pass some parameters to the install script: >> >> -nvDataLimit 2000 -instParam 00 -priv 2 >> >> Usually later some amount must be specified what data will be used by >> the applet. Also a dummy install parameter is sometimes necessary. Or >> a privilege must be given. >> >> Karsten >> >> Am 03.10.2010 23:40, schrieb Han Yang Chin: >>> Hi, >>> >>> I am currently doing a project on smart card and I am having >>> trouble deploying any applet onto the real smart card using GPShell. >>> I was wondering if anyone of you could help me out with this java card. >>> >>> I am using ASEDrive IIIe CL card reader to read the card. The smart >>> card is Athena IDProtect Version 1.1. The specifications are: >>> >>> * GP 2.1.1 >>> * JCRE Runtime Environment Spec 2.2.2 >>> * JCVM Virtual Machine 2.2.2 >>> * 128k ROM >>> * 72k EEPROM >>> * 5k RAM >>> * T=0 (default) >>> * Card Manager AID is A0 00 00 01 51 00 00 >>> * Auth Key 404142434445464748494a4b4c4d4e4f >>> * Mac Key 404142434445464748494a4b4c4d4e4f >>> * Kek Key 404142434445464748494a4b4c4d4e4f >>> >>> Note that I am NOT planning to PUT KEY on smart card. >>> >>> My cap file is a very simple applet generated by Netbeans card >>> project and is compilable with Netbeans classic applet project with >>> JavaCard Platform 2.2.2. I already placed the file on the the same >>> directory as GPShell.exe >>> >>> This is my script but it doesn't seem to work: >>> >>> *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 -kek_key >>> 404142434445464748494a4b4c4d4e4f >>> delete -AID a00000006203010c01 >>> delete -AID a00000006203010c0101 >>> install -file SimpleApplet.cap >>> //install_for_load -pkgAID a00000030000 -sdAID a000000300001 >>> //install -file BusCardApplet.transf -sdAID 00 >>> get_status -element 40 >>> //load -file SimpleApplet.cap >>> //load -file BusCardApplet.cap >>> card_disconnect >>> release_context* >>> >>> >>> This is my output: >>> >>> * >>> C:\Users\admin\Downloads\Programming\Java\GPShell\GPShell-1.4.2>gpshell >>> < Modifi >>> edHelloInstall.txt >>> mode_211 >>> enable_trace >>> establish_context >>> card_connect >>> * reader name Athena ASEDrive IIIe CL 0 >>> select -AID a0000001510000 >>> Command --> 00A4040007A0000001510000 >>> Wrapped command --> 00A4040007A0000001510000 >>> Response <-- 6F0F8407A0000001510000A5049F6501FF9000 >>> open_sc -security 1 -keyind 0 -keyver 0 -mac_key >>> 404142434445464748494a4b4c4d4e4 >>> f -enc_key 404142434445464748494a4b4c4d4e4f -kek_key >>> 404142434445464748494a4b4c4 >>> d4e4f >>> Command --> 80CA006600 >>> Wrapped command --> 80CA006600 >>> Response <-- >>> 663F733D06072A864886FC6B01600C060A2A864886FC6B02020101630906072A864 >>> 886FC6B03640B06092A864886FC6B040105660C060A2B060104012A026E01029000 >>> Command --> 8050000008D268F29E0B023E9300 >>> Wrapped command --> 8050000008D268F29E0B023E9300 >>> Response <-- >>> 000008500025212F0157FF01A4CBE14595D684D33B33D1F1F9F6A3519000 >>> Command --> 84820100107608D3BC014666EED967A23F357BF1C7 >>> Wrapped command --> 84820100107608D3BC014666EED967A23F357BF1C7 >>> Response <-- 9000 >>> delete -AID a00000006203010c01 >>> Command --> 80E400800B4F09A00000006203010C0100 >>> Wrapped command --> 84E40080134F09A00000006203010C016B569664FDB4710400 >>> Response <-- 6A88 >>> delete_applet() returns 0x80206A88 (6A88: Referenced data not found.) >>> delete -AID a00000006203010c0101 >>> Command --> 80E400800C4F0AA00000006203010C010100 >>> Wrapped command --> 84E40080144F0AA00000006203010C01012A29419C85517A8600 >>> Response <-- 6A88 >>> delete_applet() returns 0x80206A88 (6A88: Referenced data not found.) >>> install -file SimpleApplet.cap >>> file name SimpleApplet.cap >>> Command --> 80E60200180652E29648933F07A00000015100000006EF04C60201000000 >>> Wrapped command --> >>> 84E60200200652E29648933F07A00000015100000006EF04C6020100000F >>> 577F0690A0289B00 >>> Response <-- 009000 >>> Command --> >>> 80E80000EFC481F78200F7010010DECAFFED01020400010652E29648933F02001F00 >>> 10001F000A00150012000C001A000A00080000004100000000000002010004001502040107A00000 >>> 00620101000107A000000062000103000A010652E2964893BE000106000C00800300FF0007010000 >>> 001707001A0002308F00013D8C00003B7A0110188C0002188B00037A00207A08000A000000000000 >>> 0000000005001200040600000C01000000068003000380030109000800000004040408040B004101 >>> 00010000000000000300090001000C0009000000000184000C000A00090000000007010017000F00 >>> 01000000000004000AFF >>> Wrapped command --> >>> 84E80000F7C481F78200F7010010DECAFFED01020400010652E29648933F >>> 02001F0010001F000A00150012000C001A000A000800000041000000000000020100040015020401 >>> 07A0000000620101000107A000000062000103000A010652E2964893BE000106000C00800300FF00 >>> 07010000001707001A0002308F00013D8C00003B7A0110188C0002188B00037A00207A08000A0000 >>> 000000000000000005001200040600000C0100000006800300038003010900080000000404040804 >>> 0B00410100010000000000000300090001000C0009000000000184000C000A000900000000070100 >>> 17000F0001000000000004000AFF999F4F9B7C9505D2 >>> Response <-- 6436 >>> load_applet() returns 0x80206436 (Unknown ISO7816 error: 0x6436)* >>> * >>> *Im not sure what is going wrong with it. Is it the parameters I did >>> or didn't put in? I did not put any parameters to install because I >>> would have thought GPShell would pick it up as it says on the readme >>> file.* >>> *I just need to deploy properly with this smart card. Thank you in >>> advance!* >>> *Han >>> >>> ------------------------------------------------------------------------------ >>> Virtualization is moving to the mainstream and overtaking >>> non-virtualized >>> environment for deploying applications. Does it make network security >>> easier or more difficult to achieve? Read this whitepaper to separate the >>> two and get a better understanding. >>> >>> http://p.sf.net/sfu/hp-phase2-d2d >>> >>> _______________________________________________ >>> Globalplatform-users mailing list >>> >>> Glo...@li... <mailto:Glo...@li...> >>> >>> https://lists.sourceforge.net/lists/listinfo/globalplatform-users >>> >> >> ------------------------------------------------------------------------------ >> Virtualization is moving to the mainstream and overtaking non-virtualized >> environment for deploying applications. Does it make network security >> easier or more difficult to achieve? Read this whitepaper to separate >> the >> two and get a better understanding. >> http://p.sf.net/sfu/hp-phase2-d2d >> _______________________________________________ >> Globalplatform-users mailing list >> Glo...@li... >> https://lists.sourceforge.net/lists/listinfo/globalplatform-users > |
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 >> > |
From: Karsten O. <wid...@t-...> - 2010-10-07 06:41:08
|
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 following http://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 > |
From: KoSuKe <kos...@gm...> - 2010-10-07 01:28:19
|
Hi, I don't know if is this necesary, I'm so newbie. I'm following http://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 >> >> |
From: Karsten O. <wid...@t-...> - 2010-10-07 00:36:00
|
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... > https://lists.sourceforge.net/lists/listinfo/globalplatform-users > > |
From: KoSuKe <kos...@gm...> - 2010-10-06 23:54:05
|
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. |
From: Michael S. <mst...@co...> - 2010-10-05 02:02:20
|
You need a newer version of ISO 7816-4 - the 2005 version explains this. Basically, this is saying that the card has data of some sort (2005 says a query) that has to be responded to. Do a "GET DATA" with a P1P2 of 0000 and with a Le of 0x36 (or whatever the value XX of 64XX you get is). My guess (its not clear in the document) is that the returned data will look like a Command APDU Once you figure out what's going on, you do the response with a PUT DATA and P1P2 of 0000 with whatever the appropriate response is. Ideally, you should get the card specific guide to explain what's going on. My further guess is that it's looking for a specific library and that the response is telling you which one(s) is/are missing. Mike At 06:05 PM 10/3/2010, Karsten Ohme wrote: >Hi, > >0x6436 is a strange error. This seems to be a proprietary response. According to ISO 7816-4 only 6400 is specified. Also the GP spec does not mention it. > >Maybe it complains because about the cap file format. Although it fits try to use a lower Java Card version. Some cards also want that the cap file is transformed into something proprietary. In you script you also have commented out BusCardApplet.transf. So you are using a CAP transformator? > >You can also try to start with a "load" command in the script file, until this step works. Later you can go back to the complete install command. > >But start to try to pass some parameters to the install script: > >-nvDataLimit 2000 -instParam 00 -priv 2 > >Usually later some amount must be specified what data will be used by the applet. Also a dummy install parameter is sometimes necessary. Or a privilege must be given. > >Karsten > >Am 03.10.2010 23:40, schrieb Han Yang Chin: >>Hi, >> >> I am currently doing a project on smart card and I am having trouble deploying any applet onto the real smart card using GPShell. I was wondering if anyone of you could help me out with this java card. >> >>I am using ASEDrive IIIe CL card reader to read the card. The smart card is Athena IDProtect Version 1.1. The specifications are: >> * GP 2.1.1 >> * JCRE Runtime Environment Spec 2.2.2 >> * JCVM Virtual Machine 2.2.2 >> * 128k ROM >> * 72k EEPROM >> * 5k RAM >> * T=0 (default) >> * Card Manager AID is A0 00 00 01 51 00 00 >> * Auth Key 404142434445464748494a4b4c4d4e4f >> * Mac Key 404142434445464748494a4b4c4d4e4f >> * Kek Key 404142434445464748494a4b4c4d4e4f >>Note that I am NOT planning to PUT KEY on smart card. >> >>My cap file is a very simple applet generated by Netbeans card project and is compilable with Netbeans classic applet project with JavaCard Platform 2.2.2. I already placed the file on the the same directory as GPShell.exe >> >>This is my script but it doesn't seem to work: >> >>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 -kek_key 404142434445464748494a4b4c4d4e4f >>delete -AID a00000006203010c01 >>delete -AID a00000006203010c0101 >>install -file SimpleApplet.cap >>//install_for_load -pkgAID a00000030000 -sdAID a000000300001 >>//install -file BusCardApplet.transf -sdAID 00 >>get_status -element 40 >>//load -file SimpleApplet.cap >>//load -file BusCardApplet.cap >>card_disconnect >>release_context >> >> >>This is my output: >> >>C:\Users\admin\Downloads\Programming\Java\GPShell\GPShell-1.4.2>gpshell < Modifi >>edHelloInstall.txt >>mode_211 >>enable_trace >>establish_context >>card_connect >>* reader name Athena ASEDrive IIIe CL 0 >>select -AID a0000001510000 >>Command --> 00A4040007A0000001510000 >>Wrapped command --> 00A4040007A0000001510000 >>Response <-- 6F0F8407A0000001510000A5049F6501FF9000 >>open_sc -security 1 -keyind 0 -keyver 0 -mac_key 404142434445464748494a4b4c4d4e4 >>f -enc_key 404142434445464748494a4b4c4d4e4f -kek_key 404142434445464748494a4b4c4 >>d4e4f >>Command --> 80CA006600 >>Wrapped command --> 80CA006600 >>Response <-- 663F733D06072A864886FC6B01600C060A2A864886FC6B02020101630906072A864 >>886FC6B03640B06092A864886FC6B040105660C060A2B060104012A026E01029000 >>Command --> 8050000008D268F29E0B023E9300 >>Wrapped command --> 8050000008D268F29E0B023E9300 >>Response <-- 000008500025212F0157FF01A4CBE14595D684D33B33D1F1F9F6A3519000 >>Command --> 84820100107608D3BC014666EED967A23F357BF1C7 >>Wrapped command --> 84820100107608D3BC014666EED967A23F357BF1C7 >>Response <-- 9000 >>delete -AID a00000006203010c01 >>Command --> 80E400800B4F09A00000006203010C0100 >>Wrapped command --> 84E40080134F09A00000006203010C016B569664FDB4710400 >>Response <-- 6A88 >>delete_applet() returns 0x80206A88 (6A88: Referenced data not found.) >>delete -AID a00000006203010c0101 >>Command --> 80E400800C4F0AA00000006203010C010100 >>Wrapped command --> 84E40080144F0AA00000006203010C01012A29419C85517A8600 >>Response <-- 6A88 >>delete_applet() returns 0x80206A88 (6A88: Referenced data not found.) >>install -file SimpleApplet.cap >>file name SimpleApplet.cap >>Command --> 80E60200180652E29648933F07A00000015100000006EF04C60201000000 >>Wrapped command --> 84E60200200652E29648933F07A00000015100000006EF04C6020100000F >>577F0690A0289B00 >>Response <-- 009000 >>Command --> 80E80000EFC481F78200F7010010DECAFFED01020400010652E29648933F02001F00 >>10001F000A00150012000C001A000A00080000004100000000000002010004001502040107A00000 >>00620101000107A000000062000103000A010652E2964893BE000106000C00800300FF0007010000 >>001707001A0002308F00013D8C00003B7A0110188C0002188B00037A00207A08000A000000000000 >>0000000005001200040600000C01000000068003000380030109000800000004040408040B004101 >>00010000000000000300090001000C0009000000000184000C000A00090000000007010017000F00 >>01000000000004000AFF >>Wrapped command --> 84E80000F7C481F78200F7010010DECAFFED01020400010652E29648933F >>02001F0010001F000A00150012000C001A000A000800000041000000000000020100040015020401 >>07A0000000620101000107A000000062000103000A010652E2964893BE000106000C00800300FF00 >>07010000001707001A0002308F00013D8C00003B7A0110188C0002188B00037A00207A08000A0000 >>000000000000000005001200040600000C0100000006800300038003010900080000000404040804 >>0B00410100010000000000000300090001000C0009000000000184000C000A000900000000070100 >>17000F0001000000000004000AFF999F4F9B7C9505D2 >>Response <-- 6436 >>load_applet() returns 0x80206436 (Unknown ISO7816 error: 0x6436) >> >>Im not sure what is going wrong with it. Is it the parameters I did or didn't put in? I did not put any parameters to install because I would have thought GPShell would pick it up as it says on the readme file. >>I just need to deploy properly with this smart card. Thank you in advance! >>Han >> >> >> >>------------------------------------------------------------------------------ >>Virtualization is moving to the mainstream and overtaking non-virtualized >>environment for deploying applications. Does it make network security >>easier or more difficult to achieve? Read this whitepaper to separate the >>two and get a better understanding. >><http://p.sf.net/sfu/hp-phase2-d2d>http://p.sf.net/sfu/hp-phase2-d2d >> >> >>_______________________________________________ >>Globalplatform-users mailing list >><mailto:Glo...@li...>Glo...@li... >>https://lists.sourceforge.net/lists/listinfo/globalplatform-users >> > >------------------------------------------------------------------------------ >Virtualization is moving to the mainstream and overtaking non-virtualized >environment for deploying applications. Does it make network security >easier or more difficult to achieve? Read this whitepaper to separate the >two and get a better understanding. >http://p.sf.net/sfu/hp-phase2-d2d >_______________________________________________ >Globalplatform-users mailing list >Glo...@li... >https://lists.sourceforge.net/lists/listinfo/globalplatform-users |
From: Karsten O. <wid...@t-...> - 2010-10-03 22:05:54
|
Hi, *0x6436 is a strange error. This seems to be a proprietary response. According to ISO 7816-4 only 6400 *is specified. Also the GP spec does not mention it. ****Maybe it complains because about the cap file format. Although it fits try to use a lower Java Card version. Some cards also want that the cap file is transformed into something proprietary. In you script you also have commented out *BusCardApplet.**transf*. So you are using a CAP transformator? You can also try to start with a "load" command in the script file, until this step works. Later you can go back to the complete install command. But start to try to pass some parameters to the install script: -nvDataLimit 2000 -instParam 00 -priv 2 Usually later some amount must be specified what data will be used by the applet. Also a dummy install parameter is sometimes necessary. Or a privilege must be given. Karsten Am 03.10.2010 23:40, schrieb Han Yang Chin: > Hi, > > I am currently doing a project on smart card and I am having trouble > deploying any applet onto the real smart card using GPShell. I was > wondering if anyone of you could help me out with this java card. > > I am using ASEDrive IIIe CL card reader to read the card. The smart > card is Athena IDProtect Version 1.1. The specifications are: > > * GP 2.1.1 > * JCRE Runtime Environment Spec 2.2.2 > * JCVM Virtual Machine 2.2.2 > * 128k ROM > * 72k EEPROM > * 5k RAM > * T=0 (default) > * Card Manager AID is A0 00 00 01 51 00 00 > * Auth Key 404142434445464748494a4b4c4d4e4f > * Mac Key 404142434445464748494a4b4c4d4e4f > * Kek Key 404142434445464748494a4b4c4d4e4f > > Note that I am NOT planning to PUT KEY on smart card. > > My cap file is a very simple applet generated by Netbeans card project > and is compilable with Netbeans classic applet project with JavaCard > Platform 2.2.2. I already placed the file on the the same directory as > GPShell.exe > > This is my script but it doesn't seem to work: > > *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 -kek_key 404142434445464748494a4b4c4d4e4f > delete -AID a00000006203010c01 > delete -AID a00000006203010c0101 > install -file SimpleApplet.cap > //install_for_load -pkgAID a00000030000 -sdAID a000000300001 > //install -file BusCardApplet.transf -sdAID 00 > get_status -element 40 > //load -file SimpleApplet.cap > //load -file BusCardApplet.cap > card_disconnect > release_context* > > > This is my output: > > *C:\Users\admin\Downloads\Programming\Java\GPShell\GPShell-1.4.2>gpshell > < Modifi > edHelloInstall.txt > mode_211 > enable_trace > establish_context > card_connect > * reader name Athena ASEDrive IIIe CL 0 > select -AID a0000001510000 > Command --> 00A4040007A0000001510000 > Wrapped command --> 00A4040007A0000001510000 > Response <-- 6F0F8407A0000001510000A5049F6501FF9000 > open_sc -security 1 -keyind 0 -keyver 0 -mac_key > 404142434445464748494a4b4c4d4e4 > f -enc_key 404142434445464748494a4b4c4d4e4f -kek_key > 404142434445464748494a4b4c4 > d4e4f > Command --> 80CA006600 > Wrapped command --> 80CA006600 > Response <-- > 663F733D06072A864886FC6B01600C060A2A864886FC6B02020101630906072A864 > 886FC6B03640B06092A864886FC6B040105660C060A2B060104012A026E01029000 > Command --> 8050000008D268F29E0B023E9300 > Wrapped command --> 8050000008D268F29E0B023E9300 > Response <-- 000008500025212F0157FF01A4CBE14595D684D33B33D1F1F9F6A3519000 > Command --> 84820100107608D3BC014666EED967A23F357BF1C7 > Wrapped command --> 84820100107608D3BC014666EED967A23F357BF1C7 > Response <-- 9000 > delete -AID a00000006203010c01 > Command --> 80E400800B4F09A00000006203010C0100 > Wrapped command --> 84E40080134F09A00000006203010C016B569664FDB4710400 > Response <-- 6A88 > delete_applet() returns 0x80206A88 (6A88: Referenced data not found.) > delete -AID a00000006203010c0101 > Command --> 80E400800C4F0AA00000006203010C010100 > Wrapped command --> 84E40080144F0AA00000006203010C01012A29419C85517A8600 > Response <-- 6A88 > delete_applet() returns 0x80206A88 (6A88: Referenced data not found.) > install -file SimpleApplet.cap > file name SimpleApplet.cap > Command --> 80E60200180652E29648933F07A00000015100000006EF04C60201000000 > Wrapped command --> > 84E60200200652E29648933F07A00000015100000006EF04C6020100000F > 577F0690A0289B00 > Response <-- 009000 > Command --> > 80E80000EFC481F78200F7010010DECAFFED01020400010652E29648933F02001F00 > 10001F000A00150012000C001A000A00080000004100000000000002010004001502040107A00000 > 00620101000107A000000062000103000A010652E2964893BE000106000C00800300FF0007010000 > 001707001A0002308F00013D8C00003B7A0110188C0002188B00037A00207A08000A000000000000 > 0000000005001200040600000C01000000068003000380030109000800000004040408040B004101 > 00010000000000000300090001000C0009000000000184000C000A00090000000007010017000F00 > 01000000000004000AFF > Wrapped command --> > 84E80000F7C481F78200F7010010DECAFFED01020400010652E29648933F > 02001F0010001F000A00150012000C001A000A000800000041000000000000020100040015020401 > 07A0000000620101000107A000000062000103000A010652E2964893BE000106000C00800300FF00 > 07010000001707001A0002308F00013D8C00003B7A0110188C0002188B00037A00207A08000A0000 > 000000000000000005001200040600000C0100000006800300038003010900080000000404040804 > 0B00410100010000000000000300090001000C0009000000000184000C000A000900000000070100 > 17000F0001000000000004000AFF999F4F9B7C9505D2 > Response <-- 6436 > load_applet() returns 0x80206436 (Unknown ISO7816 error: 0x6436)* > * > * > Im not sure what is going wrong with it. Is it the parameters I did or > didn't put in? I did not put any parameters to install because I would > have thought GPShell would pick it up as it says on the readme file.* > * > I just need to deploy properly with this smart card. Thank you in > advance!* > * > Han > > > ------------------------------------------------------------------------------ > Virtualization is moving to the mainstream and overtaking non-virtualized > environment for deploying applications. Does it make network security > easier or more difficult to achieve? Read this whitepaper to separate the > two and get a better understanding. > http://p.sf.net/sfu/hp-phase2-d2d > > > _______________________________________________ > Globalplatform-users mailing list > Glo...@li... > https://lists.sourceforge.net/lists/listinfo/globalplatform-users > |
From: Han Y. C. <fro...@gm...> - 2010-10-03 21:41:00
|
Hi, I am currently doing a project on smart card and I am having trouble deploying any applet onto the real smart card using GPShell. I was wondering if anyone of you could help me out with this java card. I am using ASEDrive IIIe CL card reader to read the card. The smart card is Athena IDProtect Version 1.1. The specifications are: - GP 2.1.1 - JCRE Runtime Environment Spec 2.2.2 - JCVM Virtual Machine 2.2.2 - 128k ROM - 72k EEPROM - 5k RAM - T=0 (default) - Card Manager AID is A0 00 00 01 51 00 00 - Auth Key 404142434445464748494a4b4c4d4e4f - Mac Key 404142434445464748494a4b4c4d4e4f - Kek Key 404142434445464748494a4b4c4d4e4f Note that I am NOT planning to PUT KEY on smart card. My cap file is a very simple applet generated by Netbeans card project and is compilable with Netbeans classic applet project with JavaCard Platform 2.2.2. I already placed the file on the the same directory as GPShell.exe This is my script but it doesn't seem to work: *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 -kek_key 404142434445464748494a4b4c4d4e4f delete -AID a00000006203010c01 delete -AID a00000006203010c0101 install -file SimpleApplet.cap //install_for_load -pkgAID a00000030000 -sdAID a000000300001 //install -file BusCardApplet.transf -sdAID 00 get_status -element 40 //load -file SimpleApplet.cap //load -file BusCardApplet.cap card_disconnect release_context* This is my output: *C:\Users\admin\Downloads\Programming\Java\GPShell\GPShell-1.4.2>gpshell < Modifi edHelloInstall.txt mode_211 enable_trace establish_context card_connect * reader name Athena ASEDrive IIIe CL 0 select -AID a0000001510000 Command --> 00A4040007A0000001510000 Wrapped command --> 00A4040007A0000001510000 Response <-- 6F0F8407A0000001510000A5049F6501FF9000 open_sc -security 1 -keyind 0 -keyver 0 -mac_key 404142434445464748494a4b4c4d4e4 f -enc_key 404142434445464748494a4b4c4d4e4f -kek_key 404142434445464748494a4b4c4 d4e4f Command --> 80CA006600 Wrapped command --> 80CA006600 Response <-- 663F733D06072A864886FC6B01600C060A2A864886FC6B02020101630906072A864 886FC6B03640B06092A864886FC6B040105660C060A2B060104012A026E01029000 Command --> 8050000008D268F29E0B023E9300 Wrapped command --> 8050000008D268F29E0B023E9300 Response <-- 000008500025212F0157FF01A4CBE14595D684D33B33D1F1F9F6A3519000 Command --> 84820100107608D3BC014666EED967A23F357BF1C7 Wrapped command --> 84820100107608D3BC014666EED967A23F357BF1C7 Response <-- 9000 delete -AID a00000006203010c01 Command --> 80E400800B4F09A00000006203010C0100 Wrapped command --> 84E40080134F09A00000006203010C016B569664FDB4710400 Response <-- 6A88 delete_applet() returns 0x80206A88 (6A88: Referenced data not found.) delete -AID a00000006203010c0101 Command --> 80E400800C4F0AA00000006203010C010100 Wrapped command --> 84E40080144F0AA00000006203010C01012A29419C85517A8600 Response <-- 6A88 delete_applet() returns 0x80206A88 (6A88: Referenced data not found.) install -file SimpleApplet.cap file name SimpleApplet.cap Command --> 80E60200180652E29648933F07A00000015100000006EF04C60201000000 Wrapped command --> 84E60200200652E29648933F07A00000015100000006EF04C6020100000F 577F0690A0289B00 Response <-- 009000 Command --> 80E80000EFC481F78200F7010010DECAFFED01020400010652E29648933F02001F00 10001F000A00150012000C001A000A00080000004100000000000002010004001502040107A00000 00620101000107A000000062000103000A010652E2964893BE000106000C00800300FF0007010000 001707001A0002308F00013D8C00003B7A0110188C0002188B00037A00207A08000A000000000000 0000000005001200040600000C01000000068003000380030109000800000004040408040B004101 00010000000000000300090001000C0009000000000184000C000A00090000000007010017000F00 01000000000004000AFF Wrapped command --> 84E80000F7C481F78200F7010010DECAFFED01020400010652E29648933F 02001F0010001F000A00150012000C001A000A000800000041000000000000020100040015020401 07A0000000620101000107A000000062000103000A010652E2964893BE000106000C00800300FF00 07010000001707001A0002308F00013D8C00003B7A0110188C0002188B00037A00207A08000A0000 000000000000000005001200040600000C0100000006800300038003010900080000000404040804 0B00410100010000000000000300090001000C0009000000000184000C000A000900000000070100 17000F0001000000000004000AFF999F4F9B7C9505D2 Response <-- 6436 load_applet() returns 0x80206436 (Unknown ISO7816 error: 0x6436)* * * Im not sure what is going wrong with it. Is it the parameters I did or didn't put in? I did not put any parameters to install because I would have thought GPShell would pick it up as it says on the readme file.* * I just need to deploy properly with this smart card. Thank you in advance!* * Han |
From: Karsten O. <wid...@t-...> - 2010-09-05 18:47:24
|
Am 04.09.2010 11:58, schrieb lisa afandi: > Hi Karsten, > > Thank you for the email. > > I figured out my problem. The test card uses a key other than the > default key (404142434445464748494a4b4c4d4e4f) > > Now I have another problem: > > I installed and personalized a Visa applet on a blank global platform > card. I could then delete it. > > However, if I used the personalized card in an EFT transaction, I > could not delete it anymore. > > The response code from the delete command is 6985 if the P2 parameter > is set to 00 (delete object only) > > The response code from the delete command is 6A88 if the P2 parameter > is set to 80 (delete object and related objects) > > > Is there any way to delete the applet ? Hi, This is strange. I only execute the GP command. Maybe the card has some privileges which must be removed first, e.g. default selected, but usually the GP card should manage this. What does the applet do when it receives this transaction? Does it set a GP state? BR, Karsten > > > Regards, > > > On Thu, Sep 2, 2010 at 9:22 AM, Karsten Ohme <wid...@t-... > <mailto:wid...@t-...>> wrote: > > Hi, > > Which card do you have? Which gpshell version are you using? > > Do you have the complete log? > > You must set for the log: > > GLOBALPLATFORM_DEBUG=1 in your environment > and GLOBALPLATFORM_LOGFILE=C:\Temp\gp.log > > In Linux under a bash this looks like: > > export GLOBALPLATFORM_DEBUG=1 > export GLOBALPLATFORM_LOGFILE=/tmp/GlobalPlatform.log > > For Windows you must use the "set" command. > > And important! > > Don't try it to often with the same card. 3 - 10 tries and your > card is locked forever. > > BR, > Karsten > > Am 01.09.2010 12:07, schrieb lisa afandi: >> Hi, >> >> I try to use GPShell.exe delete an AID from a global platform card >> >> the open_sc command is used as follows: >> >> open_sc -security 0 -keyind 0 -keyver 0 -mac_key >> 404142434445464748494a4b4c4d4e4f -enc_key >> 404142434445464748494a4b4c4d4e4f // Open secure channel >> >> However, GPShell always fails at the card cryptogram validation >> step after the INITIALIZE UPDATE cmd is initiated to the card. >> From the trace I could see that the card respond with 9000 to the >> INITIALIZE UPDATE cmd >> >> What have I specified wrongly with the open_sc command ? >> >> Thank you for your help. Much appreciated. >> >> >> ------------------------------------------------------------------------------ >> This SF.net Dev2Dev email is sponsored by: >> >> Show off your parallel programming skills. >> Enter the Intel(R) Threading Challenge 2010. >> http://p.sf.net/sfu/intel-thread-sfd >> >> >> _______________________________________________ >> Globalplatform-users mailing list >> Glo...@li... <mailto:Glo...@li...> >> https://lists.sourceforge.net/lists/listinfo/globalplatform-users >> > > |
From: Karsten O. <wid...@t-...> - 2010-09-01 23:22:47
|
Hi, Which card do you have? Which gpshell version are you using? Do you have the complete log? You must set for the log: GLOBALPLATFORM_DEBUG=1 in your environment and GLOBALPLATFORM_LOGFILE=C:\Temp\gp.log In Linux under a bash this looks like: export GLOBALPLATFORM_DEBUG=1 export GLOBALPLATFORM_LOGFILE=/tmp/GlobalPlatform.log For Windows you must use the "set" command. And important! Don't try it to often with the same card. 3 - 10 tries and your card is locked forever. BR, Karsten Am 01.09.2010 12:07, schrieb lisa afandi: > Hi, > > I try to use GPShell.exe delete an AID from a global platform card > > the open_sc command is used as follows: > > open_sc -security 0 -keyind 0 -keyver 0 -mac_key > 404142434445464748494a4b4c4d4e4f -enc_key > 404142434445464748494a4b4c4d4e4f // Open secure channel > > However, GPShell always fails at the card cryptogram validation step > after the INITIALIZE UPDATE cmd is initiated to the card. From the > trace I could see that the card respond with 9000 to the INITIALIZE > UPDATE cmd > > What have I specified wrongly with the open_sc command ? > > Thank you for your help. Much appreciated. > > > ------------------------------------------------------------------------------ > This SF.net Dev2Dev email is sponsored by: > > Show off your parallel programming skills. > Enter the Intel(R) Threading Challenge 2010. > http://p.sf.net/sfu/intel-thread-sfd > > > _______________________________________________ > Globalplatform-users mailing list > Glo...@li... > https://lists.sourceforge.net/lists/listinfo/globalplatform-users > |
From: lisa a. <lis...@gm...> - 2010-09-01 10:07:37
|
Hi, I try to use GPShell.exe delete an AID from a global platform card the open_sc command is used as follows: open_sc -security 0 -keyind 0 -keyver 0 -mac_key 404142434445464748494a4b4c4d4e4f -enc_key 404142434445464748494a4b4c4d4e4f // Open secure channel However, GPShell always fails at the card cryptogram validation step after the INITIALIZE UPDATE cmd is initiated to the card. From the trace I could see that the card respond with 9000 to the INITIALIZE UPDATE cmd What have I specified wrongly with the open_sc command ? Thank you for your help. Much appreciated. |
From: Karsten O. <kar...@go...> - 2010-03-28 16:39:25
|
pjacentyp schrieb: > Hello. > Are there any plans or maybe there is work in progress concerning GP 2.2.x ? > Especially I mean support for new way of authentication SP10 utilizing > asymethric cryptography with CVC certificates support ? > Hi, Not at the moment. Are there cards supporting this? Version 6.0.0 will be released soon. In the branches directory is already a stable version. Regards, Karsten > Best regards > Jacek > > ------------------------------------------------------------------------------ > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > _______________________________________________ > Globalplatform-users mailing list > Glo...@li... > https://lists.sourceforge.net/lists/listinfo/globalplatform-users > > > |
From: pjacentyp <pja...@o2...> - 2010-03-28 16:29:33
|
Hello. Are there any plans or maybe there is work in progress concerning GP 2.2.x ? Especially I mean support for new way of authentication SP10 utilizing asymethric cryptography with CVC certificates support ? Best regards Jacek |
From: Matthias D. <mat...@pl...> - 2010-01-22 09:21:37
|
Hallo Karsten, with some help of a C programmer I've found the mistake in my program. He knew about the ERROR_INSUFFICIENT_BUFFER 122 (0x7A) - my buffer was just to small! Just don't know why it worked on JCOP V2.2, but finally we can state the problem as solved. Thank you for your assistance. PS: GPShell: yes, that was working, just a bit slower but we used it for production until we've found the error. Mit freundlichen Grüßen Matthias Daszenies <mailto: mat...@pl...> Direkt: ++49 / 351 / 422 78-29 --- Plasticard-ZFT GmbH Reisewitzer Str. 82 01159 Dresden <http://www.plasticard.de> Fon: ++49 / 351 / 422 78-0 Fax: ++49 / 351 / 422 78-51 Plasticard-ZFT GmbH Geschäftsführer: Jürgen Werner, Frank Hertel Sitz der Gesellschaft: Dresden Registergericht Dresden: HRB 2433 Ust-ID Nr.: DE 140 130 815 --- Karsten Ohme schrieb: > Hi Matthias, > > > Matthias Daszenies schrieb: > >> <https://sourceforge.net/mailarchive/forum.php?thread_name=848281.19007.qm%40web76905.mail.sg1.yahoo.com&forum_name=globalplatform-users>Hi >> Karsten, >> >> I am setting up JCOP (21/36 V2.3.1) Cards for an ID Application. >> >> After booting we set the ISD Keys, install the security domain and set >> the SSD Keys. (pls. see script below) >> >> We created the setup using JCShell, this worked fine but slowly, so we >> rebuild the process into an own application using Delphi and the >> "GlobalPlatform.dll" (unfortunately from Delphi I have no chance to use >> the traceMode :'( ) >> >> > Can cannot call the enableTrace function? Why? > > Well, you can enable logging output: > > I quote from the README of GP library: > > If you experience problems a DEBUG output is always helpful. > Set the variable GLOBALPLATFORM_DEBUG=1 in the environment. You can set > the logfile with GLOBALPLATFORM_LOGFILE=<file>. Under Windows by > default C:\Temp\GlobalPlatform.log is chosen. The log file must be > writable for the user. The default log file under Unix systems is > /tmp/GlobalPlatform.log. But usually syslog is available and this will > be used by default, so you may have to specify the log file manually, > if you don't have access to the syslog or don't want to use it. > Keep in mind that the debugging output may contain sensitive information, > e.g. keys! > > So the library logs quite a lot. But does not contain the APDUs. > > Can you also use GPShell to execute your commands? You can enable the > logging and this should to be able the same like JCShell. The commands > you are using a JCShell commands, but behind this works the GP library? > > I guess the x in the AID are just wildcards. 0x7A sounds bad, this is > not GP library specific error. An error from GP library should start > with 0x80.. I sound like a PC/SC problem, maybe a connection problem. > Maybe is is a system error. I found in winerror.h for Windows: > > > // > // MessageId: ERROR_ARENA_TRASHED > // > // MessageText: > // > // The storage control blocks were destroyed. > // > #define ERROR_ARENA_TRASHED 7L > > > Or error.h in Linux: > > *#define* ERRnumeric 7 > /* numeric error > * Result not meaningful (divide by zero) or not significant (Some > * statistical operations) > */ > > > Regards, > Karsten > > >> Starting last year with JCOP V2.2 everything was OK, and on switching >> over to V2.3.1 (with adapted boot sequence) I expected no problems, but >> strangely the process runs into an error, while the JCShell script doesn't! >> >> >> The Select command in step 3 >> >> "/select A000000003xxxxxxxx" >> -> GP211_send_APDU with CAPU 00 A4 04 00 09 A0 00 00 00 03 53 90 00 01 00 >> >> comes back with error code 0x7A. >> >> I have tried to find the meaning of this, but didn't found "7A"s except >> in some constant like GET_DATA_EF_PROD_DATA_CHECKSUM. >> >> Do you have a hint for me what the problem could be? >> >> Thanks in advance >> >> Matthias >> >> >> >> >> ********************************************************************************** >> /card -a a000000003000000 -c com.ibm.jc.CardManager >> get-cplc >> set-key 255/1/DES-ECB/404142434445464748494a4b4c4d4e4f >> set-key 255/2/DES-ECB/404142434445464748494a4b4c4d4e4f >> set-key 255/3/DES-ECB/404142434445464748494a4b4c4d4e4f >> set-key 1/1/DES-ECB/0b4.. >> set-key 1/2/DES-ECB/844.. >> set-key 1/3/DES-ECB/784.. >> print-key >> init-update >> ext-auth enc >> card-info >> put-keyset 1 >> card-info >> ###################################################### >> # STEP-2 >> ###################################################### >> # Install[for install and make selectable] on the # >> # SSD package, set SD privilege and set the install # >> # parameter to 45, eg C90145 --> accepts extradition # >> ###################################################### >> # -b option # >> ###################################################### >> init-update 1 >> ext-auth plain >> install -i A000000003xxxxxxxx -q C90145 -bms a0000000yyyyyy >> a0000000zzzzzzzz >> card-info >> >> ###################################################### >> # STEP-3 >> ###################################################### >> # Select the SSD, open a secure channel # >> ###################################################### >> /select A000000003xxxxxxxx >> init-update >> ext-auth enc >> >> ###################################################### >> # STEP-4 >> ###################################################### >> # PUT KEY the 1 secure channel keys --> # >> # SSD transitions automatically to the PERSONALIZED # >> # state # >> >> ###################################################### >> set-key 1/1/DES-ECB/ce.. >> set-key 1/2/DES-ECB/f7.. >> set-key 1/3/DES-ECB/98.. >> put-keyset 1 >> >> ********************************************************************************** >> >> >> >> >> >> >> >> >> ------------------------------------------------------------------------------ >> _______________________________________________ >> Globalplatform-users mailing list >> Glo...@li... >> https://lists.sourceforge.net/lists/listinfo/globalplatform-users >> >> >> >> > > > > |
From: Sergi <se...@gm...> - 2009-12-15 17:04:52
|
Hi, my name is Sergio and I'm interseted to get in the GPshell mail-list. Thank You, Bye. |
From: Karsten O. <kar...@go...> - 2009-11-19 21:11:03
|
andrea zambon schrieb: The AID is fine. But: Errore di comunicazione con la smart card. Riprovare.) The stub received bad data.) Are all connection related errors. There are not related to GPShell. Try another reader to be sure. Karsten > Hi, > No. The result does not change (with AID a000000003000000). > try AID a0000000035350: > mode_211 > enable_trace > establish_context > card_connect > * reader name FEIG ID CPR.M02.VP/AB-C 0 > select -AID a0000000035350 > Command --> 00A4040007A0000000035350 > Wrapped command --> 00A4040007A0000000035350 > Response <-- 6A82 > select_application() returns 0x80216A82 (6A82: The application to be > selected co > uld not be found.) > > One other person suggested to me: -vDataLimit 100 -nvDataLimit 100 > -nvCodeLimit 100 > he uses FEIG reader, Nokia 6212, unlocked. think. > Compare I see some differences: > - He uses a different AID. > - He gets a different error. > Its output: > mode_211 > enable_trace > establish_context > card_connect > * reader name FEIG ID CPR.M02.VP/AB-C 0 > open_sc -security 3 -keyver 42 -mac_key > 404142434445464748494A4B4C4D4E4F -enc_key > 404142434445464748494A4B4C4D4E4F -kek_key 4 > 04142434445464748494A4B4C4D4E4F open_sc -security 3 -keyver 42 > -mac_key 404142434445464748494A4B4C4D4E4F -enc_key > 404142434445464748494A4B4C4D4E4F -kek_key 4 > 04142434445464748494A4B4C4D4E4F > --> 00CA006600 > <-- > 734A06072A864886FC6B01600C060A2A864886FC6B02020101630906072A864886FC6B03640B06092A864886FC6B04025..... > --> 80502A0008ECBE201FFA6F279F00 > <-- 00007211E0E310FB18232A0200069FB22BA8F3F109857DDF6FB604559000 > --> 84820300106E2BF6C8C1CA259CCFD5BF344EA7ACE9 > <-- 9000 > install -file testsc.cap -priv 2 > file name testsc.cap > --> 80E602001106546573745343000006EF04C60202880000 > <-- 009000 > --> 80E80000EFC482027B010010DECAFFED01020400010654657374534302001F001000 > --> 1F0009000B004A000C00E8000A0028000000AA000000000000010 > 10004000B01000107A000000062010103000901055152535455001806000C00800304FF0007010000002C0700E8000210188C000718038801180388021803 > 8803180388007A05308F000B3D8C0010181D0441181D258B000A7A0221188B001160037A198B00082D1A0425750026000300200011003000180040001F181 > 98C0005701618198C0006700F18198C000E7008116D008D00047A0321198B00082D198B000D3B181A08258801181A1006258802181A1007258803 > load_applet() returns 0x000006F7 (The stub received bad data.) > > but I always get: > mode_211 > enable_trace > establish_context > card_connect > * reader name FEIG ID CPR.M02.VP/AB-C 0 > select -AID a000000003000000 > Command --> 00A4040008A000000003000000 > Wrapped command --> 00A4040008A000000003000000 > Response <-- 6F108408A000000003000000A5049F6501FF9000 > open_sc -security 3 -keyver 42 -mac_key > 404142434445464748494A4B4C4D4E4F -enc_ke......... > Response <-- 9000 > install -file HelloWorld.cap -priv 2 -vDataLimit 100 -nvDataLimit > 100 -nvCodeLimit 100 > file name HelloWorld.cap > Command --> > 80E602002409A00000006203010C0108A000000003000000000EEF0CC6020070C7020064C80200640000 > Wrapped command --> > 84E6020030FDB1DA7CDD4BF1CEB8E094B873A2B809DA73562A0624C062EE3DC1E93ECCFA2F114EA83CB4C3449244975FDB3FD304A000 > Response <-- 009000 > Command --> > 80E80000EFC482019B010013DECAFFED010204000109A00000006203010C0102001F0D020000000680030003... > Wrapped command --> > 84E80000F88BF0DAF723F594862457EF02E11E81F776DE41CF65C32DF77B > EAAAC0D5D036AAB44179A4F7B0F6F9D429487512EC8C5509860F0B8028E47D7C865C9899CF385964 > 132BFC75644FB9596F775C397A98A6DC0C6C655D938DCBC23A0BA0D8474DD746912846D0F8276C43 > 2F8A073F15D02D72005DA7E58AFF0F852A90AC300B9C4787899C1BA43929D57586B0F70F5EC786FB > C1C4B32EAAB6DF19AA3F32D72EA6B0D6E28EA9DB54FCD344AB7646BECAB4759B920522166516E84B > A8CAA334793920B3FAD0143D9DCC208C2ACB78C38F35D1D8687F18055878C97025EA6E51BFC27FE8 > 5C5F40F52AAAEE433BFA9A3016AB866A7E61730CBD3063 > load_applet() returns 0x8010002F (Errore di comunicazione con la smart > card. Riprovare.) > > Ask you one other thing: > From GlobalPlatform specifications (2.2.2) I read on page 113: > "The Issuer Security Domain inherits the card Life Cycle State that > has a bit-oriented coded value on one byte as > described in the following table: > b8 b7 b6 b5 b4 b3 b2 b1 Meaning > 0 0 0 0 0 0 0 1 OP_READY > 0 0 0 0 0 1 1 1 INITIALIZED > 0 0 0 0 1 1 1 1 SECURED > 0 1 1 1 1 1 1 1 CARD_LOCKED > 1 1 1 1 1 1 1 1 TERMINATED " > If my AID is in state f ( a000000003000000 f 9e ), means that it is > terminated? > Or I read something that does not matter? > > Thanks for your answers, > Forgive me if my mails are long and for my English. > > > 2009/11/18 Karsten Ohme <kar...@go... > <mailto:kar...@go...>> > > zam...@gm... <mailto:zam...@gm...> schrieb: > > Hi, > > Yes, the reader was unstable. I changed the usb-serial > converter, now > > works better. > > > > This is the output of get_status -element 80 > > > > get_status -element 80 > > Command --> 80F28000024F0000 > > Wrapped command --> 84F2800010F5A2FB96B63303BAE5DF43FACFC9A1E700 > > Response <-- 08A0000000030000000F9E9000 > > GP211_get_status() returned 1 items > > List of elements (AID state privileges) > > a000000003000000 f 9e > > card_disconnect > > release_context > > OK, a000000003000000 is the AID. Does it work now? > > Karsten > > > > From Nokia-UnlockMidlet-REAME: > > "DO NOT DELETE THE FOLLOWING Application IDs from the secure > element: > > A000000003000000 > > D276000005AB0503E0040101 > > A0000000035350 > > D276000005AA040360010410 > > D276000005AA0503E00401 > > The following AIDs are not mandatory for unlocked secure element > > operation, and may be deleted if required for saving EEPROM space: > > D276000005AA0503E0050101 > > D276000005AA0503E00501" > > > > > > > > Thanks. > > > > > > > > Il giorno , Karsten Ohme <kar...@go... > <mailto:kar...@go...>> ha scritto: > > > zam...@gm... <mailto:zam...@gm...> schrieb: > > > > > > > Hi, > > > > > > > Sorry, but I do not understand what you mean .. > > > > > > > (Can you find out the aid the Card Manager or Security > Domain AID of > > > > > > > the smart card?) > > > > > > > You can explain it better? What should I do? Maybe you want > this: > > > > > > Hi, > > > > > > > > > > > > Yes. Good idea. > > > > > > > > > > > > Try to issue get_status -element 80. The aid contained there > is the > > > > > > Security domain AID I mean for the select command. > > > > > > > > > > > > If the card is not implemented correctly then this might not > work. Blame > > > > > > the card manufacturer. > > > > > > > > > > > > I'm not sure but you also try a0000000035350 as the AID for > the select > > > > > > command. > > > > > > > > > > > > The output from version1.4.2 is better, but there is a problem > in the > > > > > > communication layer. Is the smartcard correctly connected? Has the > > > > > > reader problems? Is the contactless reader close enough? I cannot > > > > > > influence this behavior. > > > > > > > > > > > > BR, > > > > > > Karsten > > > > > > > > > > > > > > mode_211 > > > > > > > enable_trace > > > > > > > establish_context > > > > > > > card_connect > > > > > > > * reader name FEIG ID CPR.M02.VP/AB-C 0 > > > > > > > open_sc -security 3 -keyver 42 -mac_key > > > > > > > 404142434445464748494A4B4C4D4E4F -enc_ke > > > > > > > y 404142434445464748494A4B4C4D4E4F -kek_key > > > > > > > 404142434445464748494A4B4C4D4E4F > > > > > > > Command --> 80CA006600 > > > > > > > Wrapped command --> 80CA006600 > > > > > > > Response > > > > > 664C734A06072A864886FC6B01600C060A2A864886FC6B02020101630906072A864 > > > > > > > > > > 886FC6B03640B06092A864886FC6B040255650B06092B8510864864020103660C060A2B060104012 > > > > > > > A026E01029000 > > > > > > > Command --> 80502A0008F4B11F2FF3A529D700 > > > > > > > Wrapped command --> 80502A0008F4B11F2FF3A529D700 > > > > > > > Response > > > > Command --> 848203001084E2011D9F2FBDF101B8A29BD96692FF > > > > > > > Wrapped command --> 848203001084E2011D9F2FBDF101B8A29BD96692FF > > > > > > > Response > > > > get_status -element 20 > > > > > > > Command --> 80F22000024F0000 > > > > > > > Wrapped command --> 84F22000106FD558A18D06BD3317C2834FBDE639B900 > > > > > > > Response > > > > > 07A000000003535001000CD276000005AA04036001041001000BD276000005AA050 > > > > > > > 3E0040101000BD276000005AA0503E0050101009000 > > > > > > > GP211_get_status() returned 4 items > > > > > > > > > > > > > > List of elements (AID state privileges) > > > > > > > a0000000035350 1 0 > > > > > > > d276000005aa040360010410 1 0 > > > > > > > d276000005aa0503e00401 1 0 > > > > > > > d276000005aa0503e00501 1 0 > > > > > > > card_disconnect > > > > > > > release_context > > > > > > > > > > > > > > > > > > > > > However I try a000000003000000 and I get a step forward ( > with 1.4.2!) > > > > > > > > > > > > > > mode_211 > > > > > > > enable_trace > > > > > > > establish_context > > > > > > > card_connect > > > > > > > * reader name FEIG ID CPR.M02.VP/AB-C 0 > > > > > > > select -AID a000000003000000 > > > > > > > Command --> 00A4040008A000000003000000 > > > > > > > Wrapped command --> 00A4040008A000000003000000 > > > > > > > Response > > > > open_sc -security 3 -keyver 42 -mac_key > > > > > > > 404142434445464748494A4B4C4D4E4F -enc_ke > > > > > > > y 404142434445464748494A4B4C4D4E4F -kek_key > > > > > > > 404142434445464748494A4B4C4D4E4F > > > > > > > Command --> 80CA006600 > > > > > > > Wrapped command --> 80CA006600 > > > > > > > Response > > > > > 664C734A06072A864886FC6B01600C060A2A864886FC6B02020101630906072A864 > > > > > > > > > > 886FC6B03640B06092A864886FC6B040255650B06092B8510864864020103660C060A2B060104012 > > > > > > > A026E01029000 > > > > > > > Command --> 80502A0008C9F6A8AAA063845300 > > > > > > > Wrapped command --> 80502A0008C9F6A8AAA063845300 > > > > > > > Response > > > > Command --> 8482030010108DCF253D220762B371CB7F3EFF7A0B > > > > > > > Wrapped command --> 8482030010108DCF253D220762B371CB7F3EFF7A0B > > > > > > > Response > > > > install -file HelloWorld.cap -priv 2 > > > > > > > file name HelloWorld.cap > > > > > > > Command --> > > > > > > > > 80E602001C09A00000006203010C0108A0000000030000000006EF04C60201A80000 > > > > > > > Wrapped command --> > > > > > > > 84E6020028BC61022952CE14237C8BD3588EC062E6E607AD50755F5BE7AA > > > > > > > D9C9B0E207A8642B72A1309ED6D01C00 > > > > > > > Response > > > > Command --> > > > > > > > > 80E80000EFC482019B010013DECAFFED010204000109A00000006203010C0102001F > > > > > > > > > > 0013001F000E000B0036000C0067000A00130000006C00000000000001010004000B01000107A000 > > > > > > > > > > 000062010103000E010AA00000006203010C0101001406000C00800301000107010000001F070067 > > > > > > > > > > 000210188C000118110100900B8700188B00027A02308F00033D8C00043B7A0523198B00052D198B > > > > > > > > > > 00063203290470191A08AD0016041F8D000B3B16041F41290419088B000C321F64E8198B00073B19 > > > > > > > > > > 160408418B00081903088B000919AD000316048B000A7A08000A0000000000000000000005003600 > > > > > > > 0D020000000680030003 > > > > > > > Wrapped command --> > > > > > > > 84E80000F8BF2991D032CB541685823E5095B87C377B937F8F7F6CA47F8F > > > > > > > > > > 7786911CD3B82497AD3D4C59194065F59AF6D8B2F5587F38392FD9F4D91578885E7C3CE37E88E38D > > > > > > > > > > 19686AF526B0F36DB0E8805157D49435511EC056E7E3D9B5C28D8630E85F7E772948D893F19FF955 > > > > > > > > > > 932A6FAB28C0F040C2A1AD68903342B5591FE094AF643736EA224DC629FE37DF8A6614A1D87C6D84 > > > > > > > > > > B16A472820700A12415434C398C34C00442BC74E7AD41802C0CDC992BD95FE70AB15B3498DC76BBF > > > > > > > > > > 8904921DFD3A522DBC3968C36F8242329EFDBAB6D4F23C11D8156E71FA783AFA89ADF41AB693B551 > > > > > > > 486F9513BA2F5EA921308A5CC95212735AE19999F38C44 > > > > > > > load_applet() returns 0x8010002F (Errore di comunicazione > con la smart > > > > > > > card. Riprovare.) > > > > > > > > > > > > > > > > > > > > > Again many thanks. > > > > > > > > > > > > > > > > > > > > > > > > > > > > Il giorno , Karsten Ohme kar...@go... > <mailto:kar...@go...>> ha scritto: > > > > > > > > andrea zambon schrieb: > > > > > > > > > > > > > > > > > Hi, thanks for reply, very kind. > > > > > > > > > > > > > > > > > I added the select command but the result has not changed. > > > > > > > > > > > > > > > > > I'm working on the same PC. I do not know the reason for the > > language, > > > > > > > > > > > > > > > > > I have 2 folders GPshell 1.4.1 and 1.4.2. Downloaded from > > Sourceforge. > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Result with 1.4.2: > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Can you find out the aid the card manager or Security > Domain AID > > of the > > > > > > > > > > > > > > > > smart card? I still think this is the problem. Maybe it is > also > > > > > > > > > > > > > > > > a000000003000000. > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Karsten > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > mode_211 > > > > > > > > > > > > > > > > > enable_trace > > > > > > > > > > > > > > > > > establish_context > > > > > > > > > > > > > > > > > card_connect > > > > > > > > > > > > > > > > > * reader name FEIG ID CPR.M02.VP/AB-C 0 > > > > > > > > > > > > > > > > > select -AID a0000000030000 > > > > > > > > > > > > > > > > > Command --> 00A4040007A0000000030000 > > > > > > > > > > > > > > > > > Wrapped command --> 00A4040007A0000000030000 > > > > > > > > > > > > > > > > > Response > > > > > > > > > open_sc -security 3 -keyver 42 -mac_key > > > > > > > > > > > > > > > > > 404142434445464748494A4B4C4D4E4F -enc_ke > > > > > > > > > > > > > > > > > y 404142434445464748494A4B4C4D4E4F -kek_key > > > > > > > > > > > > > > > > > 404142434445464748494A4B4C4D4E4F > > > > > > > > > > > > > > > > > Command --> 80CA006600 > > > > > > > > > > > > > > > > > Wrapped command --> 80CA006600 > > > > > > > > > > > > > > > > > Response > > > > > > > > > > > 664C734A06072A864886FC6B01600C060A2A864886FC6B02020101630906072A864 > > > > > > > > > > > > > > > > > > > > > > > > > > > 886FC6B03640B06092A864886FC6B040255650B06092B8510864864020103660C060A2B060104012 > > > > > > > > > > > > > > > > > A026E01029000 > > > > > > > > > > > > > > > > > Command --> 80502A0008A427CC0E0ABB8FB600 > > > > > > > > > > > > > > > > > Wrapped command --> 80502A0008A427CC0E0ABB8FB600 > > > > > > > > > > > > > > > > > Response > > > > > > > > > Command --> 8482030010D847E0B2509D16D7C0178374D5976F7E > > > > > > > > > > > > > > > > > Wrapped command --> > 8482030010D847E0B2509D16D7C0178374D5976F7E > > > > > > > > > > > > > > > > > Response > > > > > > > > > install -file HelloWorld.cap -priv 2 > > > > > > > > > > > > > > > > > file name HelloWorld.cap > > > > > > > > > > > > > > > > > Command --> > > > > > > > > > > > > > > > > > > 80E602001B09A00000006203010C0107A00000000300000006EF04C60201A80000 > > > > > > > > > > > > > > > > > Wrapped command --> > > > > > > > > > > > > > > > > > 84E602002899F4BD84D036511FF66AB18927AF89865DA1BA8A5DAFB78BBC > > > > > > > > > > > > > > > > > C7908BBA3499B6164B61196F2FBAB700 > > > > > > > > > > > > > > > > > Response > > > > > > > > > install_for_load() returns 0x80206A88 (6A88: Referenced > data not > > > > > > > found.) > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Result with 1.4.1: > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > mode_211 > > > > > > > > > > > > > > > > > enable_trace > > > > > > > > > > > > > > > > > establish_context > > > > > > > > > > > > > > > > > card_connect > > > > > > > > > > > > > > > > > * reader name FEIG ID CPR.M02.VP/AB-C 0 > > > > > > > > > > > > > > > > > select -AID a0000000030000 > > > > > > > > > > > > > > > > > --> 00A4040007A0000000030000 > > > > > > > > > > > > > > > > > > > > > > > > > > open_sc -security 3 -keyver 42 -mac_key > > > > > > > > > > > > > > > > > 404142434445464748494A4B4C4D4E4F -enc_ke > > > > > > > > > > > > > > > > > y 404142434445464748494A4B4C4D4E4F -kek_key > > > > > > > > > > > > > > > > > 404142434445464748494A4B4C4D4E4F > > > > > > > > > > > > > > > > > --> 00CA006600 > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > 734A06072A864886FC6B01600C060A2A864886FC6B02020101630906072A864886FC6B03640B > > > > > > > > > > > > > > > > > > > > > > > > > > > 06092A864886FC6B040255650B06092B8510864864020103660C060A2B060104012A026E01029000 > > > > > > > > > > > > > > > > > --> 80502A00081937B683882CF88500 > > > > > > > > > > > > > > > > > > > > > > > > > > --> 84820300100B0E61E989E5B545E29954DD6542C624 > > > > > > > > > > > > > > > > > > > > > > > > > > install -file HelloWorld.cap -priv 2 > > > > > > > > > > > > > > > > > file name HelloWorld.cap > > > > > > > > > > > > > > > > > --> 80E602001409A00000006203010C01000006EF04C60201A80000 > > > > > > > > > > > > > > > > > > > > > > > > > > --> > > > > > > > > > > > > > > > > > > > > > > > > > > > 80E80000EFC482019B010013DECAFFED010204000109A00000006203010C0102001F0013001F > > > > > > > > > > > > > > > > > > > > > > > > > > > 000E000B0036000C0067000A00130000006C00000000000001010004000B01000107A00000006201 > > > > > > > > > > > > > > > > > > > > > > > > > > > 0103000E010AA00000006203010C0101001406000C00800301000107010000001F07006700021018 > > > > > > > > > > > > > > > > > > > > > > > > > > > 8C000118110100900B8700188B00027A02308F00033D8C00043B7A0523198B00052D198B00063203 > > > > > > > > > > > > > > > > > > > > > > > > > > > 290470191A08AD0016041F8D000B3B16041F41290419088B000C321F64E8198B00073B1916040841 > > > > > > > > > > > > > > > > > > > > > > > > > > > 8B00081903088B000919AD000316048B000A7A08000A00000000000000000000050036000D020000 > > > > > > > > > > > > > > > > > 000680030003 > > > > > > > > > > > > > > > > > load_applet() returns 0x8010002F (Errore di > comunicazione con > > la smart > > > > > > > > > > > > > > > > > card. Rip > > > > > > > > > > > > > > > > > rovare. > > > > > > > > > > > > > > > > > ) > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Other people have worked with this phone. > > > > > > > > > > > > > > > > > These problems could be due to a permanent block of the > SE? How do > > > > > > > I know? > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > I have strong doubts about the stability of the reader PCSC, > > sometimes > > > > > > > > > > > > > > > > > this happens: > > > > > > > > > > > > > > > > > mode_211 > > > > > > > > > > > > > > > > > enable_trace > > > > > > > > > > > > > > > > > establish_context > > > > > > > > > > > > > > > > > card_connect > > > > > > > > > > > > > > > > > * reader name FEIG ID CPR.M02.VP/AB-C 0 > > > > > > > > > > > > > > > > > select -AID A000000003000000 > > > > > > > > > > > > > > > > > Command --> 00A4040008A000000003000000 > > > > > > > > > > > > > > > > > Wrapped command --> 00A4040008A000000003000000 > > > > > > > > > > > > > > > > > select_application() returns 0x8010002F (Errore di > > comunicazione con > > > > > > > > > > > > > > > > > la smart card. Riprovare.) > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Could be the player to not operate properly and > generate these > > > > > > > errors? > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > I am an engineering student at the University of Padova > - IT, > > and I'm > > > > > > > > > > > > > > > > > writing a thesis on NFC. I'd like to better understand these > > commands, > > > > > > > > > > > > > > > > > you can recommend some useful reading in addition to the > > > > > > > > > > > > > > > > > GlobalPlatform specifications? > > > > > > > > > > > > > > > > > Thank you. > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > 2009/11/17 Karsten Ohme kar...@go... > <mailto:kar...@go...> > > > > > > > > > > > > > > > > > kar...@go... > <mailto:kar...@go...>>> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Hi Andrea, > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > install_for_load() returns 0x80206A88 (6A88: Referenced > > data not > > > > > > > > > > > > > > > > > found.) > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > is the first command which prepares the card for the > > loading of an > > > > > > > > > > > > > > > > > application. If this step fails something is wrong > with the > > > > > > > parameters > > > > > > > > > > > > > > > > > given, e.g. not enough size on the card for the > applet or the > > > > > > > Security > > > > > > > > > > > > > > > > > Domain in which the applet should be installed does > not exist. > > > > > > > > > > > > > > > > > Referenced data not found implies the last. > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > 80E602001B > > > > > > > > > > > > > > > > > 09 A00000006203010C01 -> package AID of the applet > to install > > > > > > > > > > > > > > > > > 07 A0000001510000 -> Security Domain AID > > > > > > > > > > > > > > > > > 00 -> no hash value given > > > > > > > > > > > > > > > > > 06 EF 04 C6 02 01 A8 -> 01A8 = 424 bytes to send > > > > > > > > > > > > > > > > > 00 -> No load token > > > > > > > > > > > > > > > > > 00 -> Le = Maximum bytes expected in response APDU > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > The communication error with 1.4.1 seems to be > worse. But why > > > > > > > is the > > > > > > > > > > > > > > > > > last output English and the second Italian? > Different pc? > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > So I think the security domain A0000001510000 does not > > exist. Try > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > "select -AID A000000003000000" after the > card_connect to > > > > > > > select the > > > > > > > > > > > > > > > > > security domain. > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Karsten > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > andrea zambon schrieb: > > > > > > > > > > > > > > > > > > I'm trying to install HelloWorld.cap in a Nokia > 6212 NFC > > > > > > > unlocked by > > > > > > > > > > > > > > > > > > Nokia Midlet. > > > > > > > > > > > > > > > > > > Nokia 6212 should contain G&D smartcafe. > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Try with gpshell 1.4.2: > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > mode_211 > > > > > > > > > > > > > > > > > > enable_trace > > > > > > > > > > > > > > > > > > establish_context > > > > > > > > > > > > > > > > > > card_connect > > > > > > > > > > > > > > > > > > * reader name FEIG ID CPR.M02.VP/AB-C 0 > > > > > > > > > > > > > > > > > > open_sc -security 3 -keyver 42 -mac_key > > > > > > > > > > > > > > > > > > 404142434445464748494A4B4C4D4E4F -enc_ke > > > > > > > > > > > > > > > > > > y 404142434445464748494A4B4C4D4E4F -kek_key > > > > > > > > > > > > > > > > > > 404142434445464748494A4B4C4D4E4F > > > > > > > > > > > > > > > > > > Command --> 80CA006600 > > > > > > > > > > > > > > > > > > Wrapped command --> 80CA006600 > > > > > > > > > > > > > > > > > > Response > > > > > > > > > > > > > > > > > > 664C734A06072A864886FC6B01600C060A2A864886FC6B02020101630906072A864 > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > 886FC6B03640B06092A864886FC6B040255650B06092B8510864864020103660C060A2B060104012 > > > > > > > > > > > > > > > > > > A026E01029000 > > > > > > > > > > > > > > > > > > Command --> 80502A00087B1EB2D3E35BD35800 > > > > > > > > > > > > > > > > > > Wrapped command --> 80502A00087B1EB2D3E35BD35800 > > > > > > > > > > > > > > > > > > Response > > > > > > > > > > 00007320CCAAA75453292A02002B4111DDD715BBB83BB0AD42D591A09000 > > > > > > > > > > > > > > > > > > Command --> 84820300103FA3EF3687F9719E00A40C3279DC17A0 > > > > > > > > > > > > > > > > > > Wrapped command --> > > 84820300103FA3EF3687F9719E00A40C3279DC17A0 > > > > > > > > > > > > > > > > > > Response > > > > > > > > > > install -file HelloWorld.cap -priv 2 > > > > > > > > > > > > > > > > > > file name HelloWorld.cap > > > > > > > > > > > > > > > > > > Command --> > > > > > > > > > > > > > > > > > > > > > > > > > > 80E602001B09A00000006203010C0107A00000015100000006EF04C60201A80000 > > > > > > > > > > > > > > & > > |
From: Karsten O. <kar...@go...> - 2009-11-18 16:15:16
|
zam...@gm... schrieb: > Hi, > Yes, the reader was unstable. I changed the usb-serial converter, now > works better. > > This is the output of get_status -element 80 > > get_status -element 80 > Command --> 80F28000024F0000 > Wrapped command --> 84F2800010F5A2FB96B63303BAE5DF43FACFC9A1E700 > Response <-- 08A0000000030000000F9E9000 > GP211_get_status() returned 1 items > List of elements (AID state privileges) > a000000003000000 f 9e > card_disconnect > release_context OK, a000000003000000 is the AID. Does it work now? Karsten > > From Nokia-UnlockMidlet-REAME: > "DO NOT DELETE THE FOLLOWING Application IDs from the secure element: > A000000003000000 > D276000005AB0503E0040101 > A0000000035350 > D276000005AA040360010410 > D276000005AA0503E00401 > The following AIDs are not mandatory for unlocked secure element > operation, and may be deleted if required for saving EEPROM space: > D276000005AA0503E0050101 > D276000005AA0503E00501" > > > > Thanks. > > > > Il giorno , Karsten Ohme <kar...@go...> ha scritto: > > zam...@gm... schrieb: > > > > > Hi, > > > > > Sorry, but I do not understand what you mean .. > > > > > (Can you find out the aid the Card Manager or Security Domain AID of > > > > > the smart card?) > > > > > You can explain it better? What should I do? Maybe you want this: > > > > Hi, > > > > > > > > Yes. Good idea. > > > > > > > > Try to issue get_status -element 80. The aid contained there is the > > > > Security domain AID I mean for the select command. > > > > > > > > If the card is not implemented correctly then this might not work. Blame > > > > the card manufacturer. > > > > > > > > I'm not sure but you also try a0000000035350 as the AID for the select > > > > command. > > > > > > > > The output from version1.4.2 is better, but there is a problem in the > > > > communication layer. Is the smartcard correctly connected? Has the > > > > reader problems? Is the contactless reader close enough? I cannot > > > > influence this behavior. > > > > > > > > BR, > > > > Karsten > > > > > > > > > > mode_211 > > > > > enable_trace > > > > > establish_context > > > > > card_connect > > > > > * reader name FEIG ID CPR.M02.VP/AB-C 0 > > > > > open_sc -security 3 -keyver 42 -mac_key > > > > > 404142434445464748494A4B4C4D4E4F -enc_ke > > > > > y 404142434445464748494A4B4C4D4E4F -kek_key > > > > > 404142434445464748494A4B4C4D4E4F > > > > > Command --> 80CA006600 > > > > > Wrapped command --> 80CA006600 > > > > > Response > > > 664C734A06072A864886FC6B01600C060A2A864886FC6B02020101630906072A864 > > > > > > 886FC6B03640B06092A864886FC6B040255650B06092B8510864864020103660C060A2B060104012 > > > > > A026E01029000 > > > > > Command --> 80502A0008F4B11F2FF3A529D700 > > > > > Wrapped command --> 80502A0008F4B11F2FF3A529D700 > > > > > Response > > > Command --> 848203001084E2011D9F2FBDF101B8A29BD96692FF > > > > > Wrapped command --> 848203001084E2011D9F2FBDF101B8A29BD96692FF > > > > > Response > > > get_status -element 20 > > > > > Command --> 80F22000024F0000 > > > > > Wrapped command --> 84F22000106FD558A18D06BD3317C2834FBDE639B900 > > > > > Response > > > 07A000000003535001000CD276000005AA04036001041001000BD276000005AA050 > > > > > 3E0040101000BD276000005AA0503E0050101009000 > > > > > GP211_get_status() returned 4 items > > > > > > > > > > List of elements (AID state privileges) > > > > > a0000000035350 1 0 > > > > > d276000005aa040360010410 1 0 > > > > > d276000005aa0503e00401 1 0 > > > > > d276000005aa0503e00501 1 0 > > > > > card_disconnect > > > > > release_context > > > > > > > > > > > > > > > However I try a000000003000000 and I get a step forward ( with 1.4.2!) > > > > > > > > > > mode_211 > > > > > enable_trace > > > > > establish_context > > > > > card_connect > > > > > * reader name FEIG ID CPR.M02.VP/AB-C 0 > > > > > select -AID a000000003000000 > > > > > Command --> 00A4040008A000000003000000 > > > > > Wrapped command --> 00A4040008A000000003000000 > > > > > Response > > > open_sc -security 3 -keyver 42 -mac_key > > > > > 404142434445464748494A4B4C4D4E4F -enc_ke > > > > > y 404142434445464748494A4B4C4D4E4F -kek_key > > > > > 404142434445464748494A4B4C4D4E4F > > > > > Command --> 80CA006600 > > > > > Wrapped command --> 80CA006600 > > > > > Response > > > 664C734A06072A864886FC6B01600C060A2A864886FC6B02020101630906072A864 > > > > > > 886FC6B03640B06092A864886FC6B040255650B06092B8510864864020103660C060A2B060104012 > > > > > A026E01029000 > > > > > Command --> 80502A0008C9F6A8AAA063845300 > > > > > Wrapped command --> 80502A0008C9F6A8AAA063845300 > > > > > Response > > > Command --> 8482030010108DCF253D220762B371CB7F3EFF7A0B > > > > > Wrapped command --> 8482030010108DCF253D220762B371CB7F3EFF7A0B > > > > > Response > > > install -file HelloWorld.cap -priv 2 > > > > > file name HelloWorld.cap > > > > > Command --> > > > > > 80E602001C09A00000006203010C0108A0000000030000000006EF04C60201A80000 > > > > > Wrapped command --> > > > > > 84E6020028BC61022952CE14237C8BD3588EC062E6E607AD50755F5BE7AA > > > > > D9C9B0E207A8642B72A1309ED6D01C00 > > > > > Response > > > Command --> > > > > > 80E80000EFC482019B010013DECAFFED010204000109A00000006203010C0102001F > > > > > > 0013001F000E000B0036000C0067000A00130000006C00000000000001010004000B01000107A000 > > > > > > 000062010103000E010AA00000006203010C0101001406000C00800301000107010000001F070067 > > > > > > 000210188C000118110100900B8700188B00027A02308F00033D8C00043B7A0523198B00052D198B > > > > > > 00063203290470191A08AD0016041F8D000B3B16041F41290419088B000C321F64E8198B00073B19 > > > > > > 160408418B00081903088B000919AD000316048B000A7A08000A0000000000000000000005003600 > > > > > 0D020000000680030003 > > > > > Wrapped command --> > > > > > 84E80000F8BF2991D032CB541685823E5095B87C377B937F8F7F6CA47F8F > > > > > > 7786911CD3B82497AD3D4C59194065F59AF6D8B2F5587F38392FD9F4D91578885E7C3CE37E88E38D > > > > > > 19686AF526B0F36DB0E8805157D49435511EC056E7E3D9B5C28D8630E85F7E772948D893F19FF955 > > > > > > 932A6FAB28C0F040C2A1AD68903342B5591FE094AF643736EA224DC629FE37DF8A6614A1D87C6D84 > > > > > > B16A472820700A12415434C398C34C00442BC74E7AD41802C0CDC992BD95FE70AB15B3498DC76BBF > > > > > > 8904921DFD3A522DBC3968C36F8242329EFDBAB6D4F23C11D8156E71FA783AFA89ADF41AB693B551 > > > > > 486F9513BA2F5EA921308A5CC95212735AE19999F38C44 > > > > > load_applet() returns 0x8010002F (Errore di comunicazione con la smart > > > > > card. Riprovare.) > > > > > > > > > > > > > > > Again many thanks. > > > > > > > > > > > > > > > > > > > > Il giorno , Karsten Ohme kar...@go...> ha scritto: > > > > > > andrea zambon schrieb: > > > > > > > > > > > > > Hi, thanks for reply, very kind. > > > > > > > > > > > > > I added the select command but the result has not changed. > > > > > > > > > > > > > I'm working on the same PC. I do not know the reason for the > language, > > > > > > > > > > > > > I have 2 folders GPshell 1.4.1 and 1.4.2. Downloaded from > Sourceforge. > > > > > > > > > > > > > > > > > > > > > > > > > > Result with 1.4.2: > > > > > > > > > > > > > > > > > > > > > > > > Can you find out the aid the card manager or Security Domain AID > of the > > > > > > > > > > > > smart card? I still think this is the problem. Maybe it is also > > > > > > > > > > > > a000000003000000. > > > > > > > > > > > > > > > > > > > > > > > > Karsten > > > > > > > > > > > > > > > > > > > > > > > > > > mode_211 > > > > > > > > > > > > > enable_trace > > > > > > > > > > > > > establish_context > > > > > > > > > > > > > card_connect > > > > > > > > > > > > > * reader name FEIG ID CPR.M02.VP/AB-C 0 > > > > > > > > > > > > > select -AID a0000000030000 > > > > > > > > > > > > > Command --> 00A4040007A0000000030000 > > > > > > > > > > > > > Wrapped command --> 00A4040007A0000000030000 > > > > > > > > > > > > > Response > > > > > > > open_sc -security 3 -keyver 42 -mac_key > > > > > > > > > > > > > 404142434445464748494A4B4C4D4E4F -enc_ke > > > > > > > > > > > > > y 404142434445464748494A4B4C4D4E4F -kek_key > > > > > > > > > > > > > 404142434445464748494A4B4C4D4E4F > > > > > > > > > > > > > Command --> 80CA006600 > > > > > > > > > > > > > Wrapped command --> 80CA006600 > > > > > > > > > > > > > Response > > > > > > > > 664C734A06072A864886FC6B01600C060A2A864886FC6B02020101630906072A864 > > > > > > > > > > > > > > > > > > > 886FC6B03640B06092A864886FC6B040255650B06092B8510864864020103660C060A2B060104012 > > > > > > > > > > > > > A026E01029000 > > > > > > > > > > > > > Command --> 80502A0008A427CC0E0ABB8FB600 > > > > > > > > > > > > > Wrapped command --> 80502A0008A427CC0E0ABB8FB600 > > > > > > > > > > > > > Response > > > > > > > Command --> 8482030010D847E0B2509D16D7C0178374D5976F7E > > > > > > > > > > > > > Wrapped command --> 8482030010D847E0B2509D16D7C0178374D5976F7E > > > > > > > > > > > > > Response > > > > > > > install -file HelloWorld.cap -priv 2 > > > > > > > > > > > > > file name HelloWorld.cap > > > > > > > > > > > > > Command --> > > > > > > > > > > > > > 80E602001B09A00000006203010C0107A00000000300000006EF04C60201A80000 > > > > > > > > > > > > > Wrapped command --> > > > > > > > > > > > > > 84E602002899F4BD84D036511FF66AB18927AF89865DA1BA8A5DAFB78BBC > > > > > > > > > > > > > C7908BBA3499B6164B61196F2FBAB700 > > > > > > > > > > > > > Response > > > > > > > install_for_load() returns 0x80206A88 (6A88: Referenced data not > > > > > found.) > > > > > > > > > > > > > > > > > > > > > > > > > > Result with 1.4.1: > > > > > > > > > > > > > > > > > > > > > > > > > > mode_211 > > > > > > > > > > > > > enable_trace > > > > > > > > > > > > > establish_context > > > > > > > > > > > > > card_connect > > > > > > > > > > > > > * reader name FEIG ID CPR.M02.VP/AB-C 0 > > > > > > > > > > > > > select -AID a0000000030000 > > > > > > > > > > > > > --> 00A4040007A0000000030000 > > > > > > > > > > > > > > > > > > > > open_sc -security 3 -keyver 42 -mac_key > > > > > > > > > > > > > 404142434445464748494A4B4C4D4E4F -enc_ke > > > > > > > > > > > > > y 404142434445464748494A4B4C4D4E4F -kek_key > > > > > > > > > > > > > 404142434445464748494A4B4C4D4E4F > > > > > > > > > > > > > --> 00CA006600 > > > > > > > > > > > > > > > > > > > > > > > > > > 734A06072A864886FC6B01600C060A2A864886FC6B02020101630906072A864886FC6B03640B > > > > > > > > > > > > > > > > > > > 06092A864886FC6B040255650B06092B8510864864020103660C060A2B060104012A026E01029000 > > > > > > > > > > > > > --> 80502A00081937B683882CF88500 > > > > > > > > > > > > > > > > > > > > --> 84820300100B0E61E989E5B545E29954DD6542C624 > > > > > > > > > > > > > > > > > > > > install -file HelloWorld.cap -priv 2 > > > > > > > > > > > > > file name HelloWorld.cap > > > > > > > > > > > > > --> 80E602001409A00000006203010C01000006EF04C60201A80000 > > > > > > > > > > > > > > > > > > > > --> > > > > > > > > > > > > > > > > > > > 80E80000EFC482019B010013DECAFFED010204000109A00000006203010C0102001F0013001F > > > > > > > > > > > > > > > > > > > 000E000B0036000C0067000A00130000006C00000000000001010004000B01000107A00000006201 > > > > > > > > > > > > > > > > > > > 0103000E010AA00000006203010C0101001406000C00800301000107010000001F07006700021018 > > > > > > > > > > > > > > > > > > > 8C000118110100900B8700188B00027A02308F00033D8C00043B7A0523198B00052D198B00063203 > > > > > > > > > > > > > > > > > > > 290470191A08AD0016041F8D000B3B16041F41290419088B000C321F64E8198B00073B1916040841 > > > > > > > > > > > > > > > > > > > 8B00081903088B000919AD000316048B000A7A08000A00000000000000000000050036000D020000 > > > > > > > > > > > > > 000680030003 > > > > > > > > > > > > > load_applet() returns 0x8010002F (Errore di comunicazione con > la smart > > > > > > > > > > > > > card. Rip > > > > > > > > > > > > > rovare. > > > > > > > > > > > > > ) > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Other people have worked with this phone. > > > > > > > > > > > > > These problems could be due to a permanent block of the SE? How do > > > > > I know? > > > > > > > > > > > > > > > > > > > > > > > > > > I have strong doubts about the stability of the reader PCSC, > sometimes > > > > > > > > > > > > > this happens: > > > > > > > > > > > > > mode_211 > > > > > > > > > > > > > enable_trace > > > > > > > > > > > > > establish_context > > > > > > > > > > > > > card_connect > > > > > > > > > > > > > * reader name FEIG ID CPR.M02.VP/AB-C 0 > > > > > > > > > > > > > select -AID A000000003000000 > > > > > > > > > > > > > Command --> 00A4040008A000000003000000 > > > > > > > > > > > > > Wrapped command --> 00A4040008A000000003000000 > > > > > > > > > > > > > select_application() returns 0x8010002F (Errore di > comunicazione con > > > > > > > > > > > > > la smart card. Riprovare.) > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Could be the player to not operate properly and generate these > > > > > errors? > > > > > > > > > > > > > > > > > > > > > > > > > > I am an engineering student at the University of Padova - IT, > and I'm > > > > > > > > > > > > > writing a thesis on NFC. I'd like to better understand these > commands, > > > > > > > > > > > > > you can recommend some useful reading in addition to the > > > > > > > > > > > > > GlobalPlatform specifications? > > > > > > > > > > > > > Thank you. > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > 2009/11/17 Karsten Ohme kar...@go... > > > > > > > > > > > > > kar...@go...>> > > > > > > > > > > > > > > > > > > > > > > > > > > Hi Andrea, > > > > > > > > > > > > > > > > > > > > > > > > > > install_for_load() returns 0x80206A88 (6A88: Referenced > data not > > > > > > > > > > > > > found.) > > > > > > > > > > > > > > > > > > > > > > > > > > is the first command which prepares the card for the > loading of an > > > > > > > > > > > > > application. If this step fails something is wrong with the > > > > > parameters > > > > > > > > > > > > > given, e.g. not enough size on the card for the applet or the > > > > > Security > > > > > > > > > > > > > Domain in which the applet should be installed does not exist. > > > > > > > > > > > > > Referenced data not found implies the last. > > > > > > > > > > > > > > > > > > > > > > > > > > 80E602001B > > > > > > > > > > > > > 09 A00000006203010C01 -> package AID of the applet to install > > > > > > > > > > > > > 07 A0000001510000 -> Security Domain AID > > > > > > > > > > > > > 00 -> no hash value given > > > > > > > > > > > > > 06 EF 04 C6 02 01 A8 -> 01A8 = 424 bytes to send > > > > > > > > > > > > > 00 -> No load token > > > > > > > > > > > > > 00 -> Le = Maximum bytes expected in response APDU > > > > > > > > > > > > > > > > > > > > > > > > > > The communication error with 1.4.1 seems to be worse. But why > > > > > is the > > > > > > > > > > > > > last output English and the second Italian? Different pc? > > > > > > > > > > > > > > > > > > > > > > > > > > So I think the security domain A0000001510000 does not > exist. Try > > > > > > > > > > > > > > > > > > > > > > > > > > "select -AID A000000003000000" after the card_connect to > > > > > select the > > > > > > > > > > > > > security domain. > > > > > > > > > > > > > > > > > > > > > > > > > > Karsten > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > andrea zambon schrieb: > > > > > > > > > > > > > > I'm trying to install HelloWorld.cap in a Nokia 6212 NFC > > > > > unlocked by > > > > > > > > > > > > > > Nokia Midlet. > > > > > > > > > > > > > > Nokia 6212 should contain G&D smartcafe. > > > > > > > > > > > > > > > > > > > > > > > > > > > > Try with gpshell 1.4.2: > > > > > > > > > > > > > > > > > > > > > > > > > > > > mode_211 > > > > > > > > > > > > > > enable_trace > > > > > > > > > > > > > > establish_context > > > > > > > > > > > > > > card_connect > > > > > > > > > > > > > > * reader name FEIG ID CPR.M02.VP/AB-C 0 > > > > > > > > > > > > > > open_sc -security 3 -keyver 42 -mac_key > > > > > > > > > > > > > > 404142434445464748494A4B4C4D4E4F -enc_ke > > > > > > > > > > > > > > y 404142434445464748494A4B4C4D4E4F -kek_key > > > > > > > > > > > > > > 404142434445464748494A4B4C4D4E4F > > > > > > > > > > > > > > Command --> 80CA006600 > > > > > > > > > > > > > > Wrapped command --> 80CA006600 > > > > > > > > > > > > > > Response > > > > > > > > > > > > > 664C734A06072A864886FC6B01600C060A2A864886FC6B02020101630906072A864 > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > 886FC6B03640B06092A864886FC6B040255650B06092B8510864864020103660C060A2B060104012 > > > > > > > > > > > > > > A026E01029000 > > > > > > > > > > > > > > Command --> 80502A00087B1EB2D3E35BD35800 > > > > > > > > > > > > > > Wrapped command --> 80502A00087B1EB2D3E35BD35800 > > > > > > > > > > > > > > Response > > > > > > > 00007320CCAAA75453292A02002B4111DDD715BBB83BB0AD42D591A09000 > > > > > > > > > > > > > > Command --> 84820300103FA3EF3687F9719E00A40C3279DC17A0 > > > > > > > > > > > > > > Wrapped command --> > 84820300103FA3EF3687F9719E00A40C3279DC17A0 > > > > > > > > > > > > > > Response > > > > > > > > install -file HelloWorld.cap -priv 2 > > > > > > > > > > > > > > file name HelloWorld.cap > > > > > > > > > > > > > > Command --> > > > > > > > > > > > > > > > > > > > 80E602001B09A00000006203010C0107A00000015100000006EF04C60201A80000 > > > > > > > > > > & |
From: Karsten O. <kar...@go...> - 2009-11-18 03:50:12
|
zam...@gm... schrieb: > Hi, > Sorry, but I do not understand what you mean .. > (Can you find out the aid the Card Manager or Security Domain AID of > the smart card?) > You can explain it better? What should I do? Maybe you want this: Hi, Yes. Good idea. Try to issue get_status -element 80. The aid contained there is the Security domain AID I mean for the select command. If the card is not implemented correctly then this might not work. Blame the card manufacturer. I'm not sure but you also try a0000000035350 as the AID for the select command. The output from version1.4.2 is better, but there is a problem in the communication layer. Is the smartcard correctly connected? Has the reader problems? Is the contactless reader close enough? I cannot influence this behavior. BR, Karsten > > mode_211 > enable_trace > establish_context > card_connect > * reader name FEIG ID CPR.M02.VP/AB-C 0 > open_sc -security 3 -keyver 42 -mac_key > 404142434445464748494A4B4C4D4E4F -enc_ke > y 404142434445464748494A4B4C4D4E4F -kek_key > 404142434445464748494A4B4C4D4E4F > Command --> 80CA006600 > Wrapped command --> 80CA006600 > Response <-- > 664C734A06072A864886FC6B01600C060A2A864886FC6B02020101630906072A864 > 886FC6B03640B06092A864886FC6B040255650B06092B8510864864020103660C060A2B060104012 > A026E01029000 > Command --> 80502A0008F4B11F2FF3A529D700 > Wrapped command --> 80502A0008F4B11F2FF3A529D700 > Response <-- 00007320CCAAA75453292A02003A61DE461FAD5C98A0EBECCEDBE0D79000 > Command --> 848203001084E2011D9F2FBDF101B8A29BD96692FF > Wrapped command --> 848203001084E2011D9F2FBDF101B8A29BD96692FF > Response <-- 9000 > get_status -element 20 > Command --> 80F22000024F0000 > Wrapped command --> 84F22000106FD558A18D06BD3317C2834FBDE639B900 > Response <-- > 07A000000003535001000CD276000005AA04036001041001000BD276000005AA050 > 3E0040101000BD276000005AA0503E0050101009000 > GP211_get_status() returned 4 items > > List of elements (AID state privileges) > a0000000035350 1 0 > d276000005aa040360010410 1 0 > d276000005aa0503e00401 1 0 > d276000005aa0503e00501 1 0 > card_disconnect > release_context > > > However I try a000000003000000 and I get a step forward ( with 1.4.2!) > > mode_211 > enable_trace > establish_context > card_connect > * reader name FEIG ID CPR.M02.VP/AB-C 0 > select -AID a000000003000000 > Command --> 00A4040008A000000003000000 > Wrapped command --> 00A4040008A000000003000000 > Response <-- 6F108408A000000003000000A5049F6501FF9000 > open_sc -security 3 -keyver 42 -mac_key > 404142434445464748494A4B4C4D4E4F -enc_ke > y 404142434445464748494A4B4C4D4E4F -kek_key > 404142434445464748494A4B4C4D4E4F > Command --> 80CA006600 > Wrapped command --> 80CA006600 > Response <-- > 664C734A06072A864886FC6B01600C060A2A864886FC6B02020101630906072A864 > 886FC6B03640B06092A864886FC6B040255650B06092B8510864864020103660C060A2B060104012 > A026E01029000 > Command --> 80502A0008C9F6A8AAA063845300 > Wrapped command --> 80502A0008C9F6A8AAA063845300 > Response <-- 00007320CCAAA75453292A02003766810DFBD7A55D15FF377EE2A2B99000 > Command --> 8482030010108DCF253D220762B371CB7F3EFF7A0B > Wrapped command --> 8482030010108DCF253D220762B371CB7F3EFF7A0B > Response <-- 9000 > install -file HelloWorld.cap -priv 2 > file name HelloWorld.cap > Command --> > 80E602001C09A00000006203010C0108A0000000030000000006EF04C60201A80000 > Wrapped command --> > 84E6020028BC61022952CE14237C8BD3588EC062E6E607AD50755F5BE7AA > D9C9B0E207A8642B72A1309ED6D01C00 > Response <-- 009000 > Command --> > 80E80000EFC482019B010013DECAFFED010204000109A00000006203010C0102001F > 0013001F000E000B0036000C0067000A00130000006C00000000000001010004000B01000107A000 > 000062010103000E010AA00000006203010C0101001406000C00800301000107010000001F070067 > 000210188C000118110100900B8700188B00027A02308F00033D8C00043B7A0523198B00052D198B > 00063203290470191A08AD0016041F8D000B3B16041F41290419088B000C321F64E8198B00073B19 > 160408418B00081903088B000919AD000316048B000A7A08000A0000000000000000000005003600 > 0D020000000680030003 > Wrapped command --> > 84E80000F8BF2991D032CB541685823E5095B87C377B937F8F7F6CA47F8F > 7786911CD3B82497AD3D4C59194065F59AF6D8B2F5587F38392FD9F4D91578885E7C3CE37E88E38D > 19686AF526B0F36DB0E8805157D49435511EC056E7E3D9B5C28D8630E85F7E772948D893F19FF955 > 932A6FAB28C0F040C2A1AD68903342B5591FE094AF643736EA224DC629FE37DF8A6614A1D87C6D84 > B16A472820700A12415434C398C34C00442BC74E7AD41802C0CDC992BD95FE70AB15B3498DC76BBF > 8904921DFD3A522DBC3968C36F8242329EFDBAB6D4F23C11D8156E71FA783AFA89ADF41AB693B551 > 486F9513BA2F5EA921308A5CC95212735AE19999F38C44 > load_applet() returns 0x8010002F (Errore di comunicazione con la smart > card. Riprovare.) > > > Again many thanks. > > > > Il giorno , Karsten Ohme <kar...@go...> ha scritto: > > andrea zambon schrieb: > > > > > Hi, thanks for reply, very kind. > > > > > I added the select command but the result has not changed. > > > > > I'm working on the same PC. I do not know the reason for the language, > > > > > I have 2 folders GPshell 1.4.1 and 1.4.2. Downloaded from Sourceforge. > > > > > > > > > > Result with 1.4.2: > > > > > > > > Can you find out the aid the card manager or Security Domain AID of the > > > > smart card? I still think this is the problem. Maybe it is also > > > > a000000003000000. > > > > > > > > Karsten > > > > > > > > > > mode_211 > > > > > enable_trace > > > > > establish_context > > > > > card_connect > > > > > * reader name FEIG ID CPR.M02.VP/AB-C 0 > > > > > select -AID a0000000030000 > > > > > Command --> 00A4040007A0000000030000 > > > > > Wrapped command --> 00A4040007A0000000030000 > > > > > Response > > > open_sc -security 3 -keyver 42 -mac_key > > > > > 404142434445464748494A4B4C4D4E4F -enc_ke > > > > > y 404142434445464748494A4B4C4D4E4F -kek_key > > > > > 404142434445464748494A4B4C4D4E4F > > > > > Command --> 80CA006600 > > > > > Wrapped command --> 80CA006600 > > > > > Response > > > 664C734A06072A864886FC6B01600C060A2A864886FC6B02020101630906072A864 > > > > > > 886FC6B03640B06092A864886FC6B040255650B06092B8510864864020103660C060A2B060104012 > > > > > A026E01029000 > > > > > Command --> 80502A0008A427CC0E0ABB8FB600 > > > > > Wrapped command --> 80502A0008A427CC0E0ABB8FB600 > > > > > Response > > > Command --> 8482030010D847E0B2509D16D7C0178374D5976F7E > > > > > Wrapped command --> 8482030010D847E0B2509D16D7C0178374D5976F7E > > > > > Response > > > install -file HelloWorld.cap -priv 2 > > > > > file name HelloWorld.cap > > > > > Command --> > > > > > 80E602001B09A00000006203010C0107A00000000300000006EF04C60201A80000 > > > > > Wrapped command --> > > > > > 84E602002899F4BD84D036511FF66AB18927AF89865DA1BA8A5DAFB78BBC > > > > > C7908BBA3499B6164B61196F2FBAB700 > > > > > Response > > > install_for_load() returns 0x80206A88 (6A88: Referenced data not > found.) > > > > > > > > > > Result with 1.4.1: > > > > > > > > > > mode_211 > > > > > enable_trace > > > > > establish_context > > > > > card_connect > > > > > * reader name FEIG ID CPR.M02.VP/AB-C 0 > > > > > select -AID a0000000030000 > > > > > --> 00A4040007A0000000030000 > > > > > > > > open_sc -security 3 -keyver 42 -mac_key > > > > > 404142434445464748494A4B4C4D4E4F -enc_ke > > > > > y 404142434445464748494A4B4C4D4E4F -kek_key > > > > > 404142434445464748494A4B4C4D4E4F > > > > > --> 00CA006600 > > > > > > > > > 734A06072A864886FC6B01600C060A2A864886FC6B02020101630906072A864886FC6B03640B > > > > > > 06092A864886FC6B040255650B06092B8510864864020103660C060A2B060104012A026E01029000 > > > > > --> 80502A00081937B683882CF88500 > > > > > > > > --> 84820300100B0E61E989E5B545E29954DD6542C624 > > > > > > > > install -file HelloWorld.cap -priv 2 > > > > > file name HelloWorld.cap > > > > > --> 80E602001409A00000006203010C01000006EF04C60201A80000 > > > > > > > > --> > > > > > > 80E80000EFC482019B010013DECAFFED010204000109A00000006203010C0102001F0013001F > > > > > > 000E000B0036000C0067000A00130000006C00000000000001010004000B01000107A00000006201 > > > > > > 0103000E010AA00000006203010C0101001406000C00800301000107010000001F07006700021018 > > > > > > 8C000118110100900B8700188B00027A02308F00033D8C00043B7A0523198B00052D198B00063203 > > > > > > 290470191A08AD0016041F8D000B3B16041F41290419088B000C321F64E8198B00073B1916040841 > > > > > > 8B00081903088B000919AD000316048B000A7A08000A00000000000000000000050036000D020000 > > > > > 000680030003 > > > > > load_applet() returns 0x8010002F (Errore di comunicazione con la smart > > > > > card. Rip > > > > > rovare. > > > > > ) > > > > > > > > > > > > > > > Other people have worked with this phone. > > > > > These problems could be due to a permanent block of the SE? How do > I know? > > > > > > > > > > I have strong doubts about the stability of the reader PCSC, sometimes > > > > > this happens: > > > > > mode_211 > > > > > enable_trace > > > > > establish_context > > > > > card_connect > > > > > * reader name FEIG ID CPR.M02.VP/AB-C 0 > > > > > select -AID A000000003000000 > > > > > Command --> 00A4040008A000000003000000 > > > > > Wrapped command --> 00A4040008A000000003000000 > > > > > select_application() returns 0x8010002F (Errore di comunicazione con > > > > > la smart card. Riprovare.) > > > > > > > > > > > > > > > Could be the player to not operate properly and generate these > errors? > > > > > > > > > > I am an engineering student at the University of Padova - IT, and I'm > > > > > writing a thesis on NFC. I'd like to better understand these commands, > > > > > you can recommend some useful reading in addition to the > > > > > GlobalPlatform specifications? > > > > > Thank you. > > > > > > > > > > > > > > > 2009/11/17 Karsten Ohme kar...@go... > > > > > kar...@go...>> > > > > > > > > > > Hi Andrea, > > > > > > > > > > install_for_load() returns 0x80206A88 (6A88: Referenced data not > > > > > found.) > > > > > > > > > > is the first command which prepares the card for the loading of an > > > > > application. If this step fails something is wrong with the > parameters > > > > > given, e.g. not enough size on the card for the applet or the > Security > > > > > Domain in which the applet should be installed does not exist. > > > > > Referenced data not found implies the last. > > > > > > > > > > 80E602001B > > > > > 09 A00000006203010C01 -> package AID of the applet to install > > > > > 07 A0000001510000 -> Security Domain AID > > > > > 00 -> no hash value given > > > > > 06 EF 04 C6 02 01 A8 -> 01A8 = 424 bytes to send > > > > > 00 -> No load token > > > > > 00 -> Le = Maximum bytes expected in response APDU > > > > > > > > > > The communication error with 1.4.1 seems to be worse. But why > is the > > > > > last output English and the second Italian? Different pc? > > > > > > > > > > So I think the security domain A0000001510000 does not exist. Try > > > > > > > > > > "select -AID A000000003000000" after the card_connect to > select the > > > > > security domain. > > > > > > > > > > Karsten > > > > > > > > > > > > > > > andrea zambon schrieb: > > > > > > I'm trying to install HelloWorld.cap in a Nokia 6212 NFC > unlocked by > > > > > > Nokia Midlet. > > > > > > Nokia 6212 should contain G&D smartcafe. > > > > > > > > > > > > Try with gpshell 1.4.2: > > > > > > > > > > > > mode_211 > > > > > > enable_trace > > > > > > establish_context > > > > > > card_connect > > > > > > * reader name FEIG ID CPR.M02.VP/AB-C 0 > > > > > > open_sc -security 3 -keyver 42 -mac_key > > > > > > 404142434445464748494A4B4C4D4E4F -enc_ke > > > > > > y 404142434445464748494A4B4C4D4E4F -kek_key > > > > > > 404142434445464748494A4B4C4D4E4F > > > > > > Command --> 80CA006600 > > > > > > Wrapped command --> 80CA006600 > > > > > > Response > > > > > 664C734A06072A864886FC6B01600C060A2A864886FC6B02020101630906072A864 > > > > > > > > > > > > 886FC6B03640B06092A864886FC6B040255650B06092B8510864864020103660C060A2B060104012 > > > > > > A026E01029000 > > > > > > Command --> 80502A00087B1EB2D3E35BD35800 > > > > > > Wrapped command --> 80502A00087B1EB2D3E35BD35800 > > > > > > Response > > > 00007320CCAAA75453292A02002B4111DDD715BBB83BB0AD42D591A09000 > > > > > > Command --> 84820300103FA3EF3687F9719E00A40C3279DC17A0 > > > > > > Wrapped command --> 84820300103FA3EF3687F9719E00A40C3279DC17A0 > > > > > > Response > > > > install -file HelloWorld.cap -priv 2 > > > > > > file name HelloWorld.cap > > > > > > Command --> > > > > > > > 80E602001B09A00000006203010C0107A00000015100000006EF04C60201A80000 > > > > > > Wrapped command --> > > > > > > 84E6020028F31BE7712F93F0ABFE268F0C6ABA49E7C949E71DD630F65267 > > > > > > 7EBE14F577DB67C149BD4811C760C700 > > > > > > Response > > > > install_for_load() returns 0x80206A88 (6A88: Referenced data not > > > > > found.) > > > > > > > > > > > > What does this error? > > > > > > > > > > > > Try with version 1.4.1: > > > > > > > > > > > > mode_211 > > > > > > enable_trace > > > > > > establish_context > > > > > > card_connect > > > > > > * reader name FEIG ID CPR.M02.VP/AB-C 0 > > > > > > open_sc -security 3 -keyver 42 -mac_key > > > > > > 404142434445464748494A4B4C4D4E4F -enc_ke > > > > > > y 404142434445464748494A4B4C4D4E4F -kek_key > > > > > > 404142434445464748494A4B4C4D4E4F > > > > > > --> 00CA006600 > > > > > > > > > > > > > > > > 734A06072A864886FC6B01600C060A2A864886FC6B02020101630906072A864886FC6B03640B > > > > > > > > > > > > 06092A864886FC6B040255650B06092B8510864864020103660C060A2B060104012A026E01029000 > > > > > > --> 80502A00085C424004F386396400 > > > > > > > > > > --> 848203001031EC23F45C361B1A1391D5C672565C95 > > > > > > > > > > install -file HelloWorld.cap -priv 2 > > > > > > file name HelloWorld.cap > > > > > > --> 80E602001409A00000006203010C01000006EF04C60201A80000 > > > > > > > > > > --> > > > > > > > > > > > > 80E80000EFC482019B010013DECAFFED010204000109A00000006203010C0102001F0013001F > > > > > > > > > > > > 000E000B0036000C0067000A00130000006C00000000000001010004000B01000107A00000006201 > > > > > > > > > > > > 0103000E010AA00000006203010C0101001406000C00800301000107010000001F07006700021018 > > > > > > > > > > > > 8C000118110100900B8700188B00027A02308F00033D8C00043B7A0523198B00052D198B00063203 > > > > > > > > > > > > 290470191A08AD0016041F8D000B3B16041F41290419088B000C321F64E8198B00073B1916040841 > > > > > > > > > > > > 8B00081903088B000919AD000316048B000A7A08000A00000000000000000000050036000D020000 > > > > > > 000680030003 > > > > > > load_applet() returns 0x8010002F (Errore di comunicazione con la > > > > > smart > > > > > > card. Riprovare.) > > > > > > > > > > > > > > > > > > I get a different error. > > > > > > > > > > > > Can someone help me? > > > > > > Thanks for your reply. > > > > > > > > > > > > ------------------------------------------------------------------------ > > > > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > > > Let Crystal Reports handle the reporting - Free Crystal Reports > > > > > 2008 30-Day > > > > > > trial. Simplify your report design, integration and deployment - > > > > > and focus on > > > > > > what you do best, core application coding. Discover what's > new with > > > > > > Crystal Reports now. http://p.sf.net/sfu/bobj-july > > > > > > > > > > > > ------------------------------------------------------------------------ > > > > > > > > > > > > _______________________________________________ > > > > > > Globalplatform-users mailing list > > > > > > Glo...@li... > > > > > Glo...@li...> > > > > > > > https://lists.sourceforge.net/lists/listinfo/globalplatform-users > > > > > > > > > > > > > > > > > > > > > > |