From: S. H. <seb...@gm...> - 2008-12-15 22:49:34
|
Thank you again for your help.The command you gave me didn't work but i tried this one :send_apdu -sc 0 -APDU 80E60C002D09A00000006203010C010AA00000006203010C01010AA00000006203010C0101010209C90100EF04C80207D00000 which didn't work either :( (the message is always the same : "Wrong CLA byte"). I'm really lost with all that. I emailed the shop where i bought the cards to know the brand and maybe contact the manufacturer but i'd like to be sure it's not a GPShell issue. Do you know any other tool that i could use to install an applet on the card ? (even if i think it's a card problem, since the APDU commands failed too). If you have any idea, it is welcome :) I really can't find any ! Sébastien 2008/12/15 Karsten Ohme <wid...@t-...> > Sébastien HASCOAT schrieb: > > I tried what you said. It crashed again (with the same error message) > > when it executes "install_for_install" : > > Well, I'm not sure but I would assume that the card does not support the > install_for_install_and_make_selectable command (GPShell calls it > install for install). Hope the card is not buggy. > > execute a send_apdu -APDU command (see the README) and execute only a > install_for_install command, could be this: > > > 80E604002C09A00000006203010C010AA00000006203010C01010AA00000006203010C0101010208C900EF04C80207D00000 > > If you can read the GP 2.1.1 spec p. 120 for the syntax of the install > for install command. After this execute install_for_make_selectable. But > the first step is important. Try if it works. After this we can continue. > > Regards, > Karsten > > > > > <code> > > mode_211 > > enable_trace > > establish_context > > card_connect > > * reader name OMNIKEY CardMan 5x21 0 > > select -AID a000000003000000 > > Command --> 00A4040008A000000003000000 > > Wrapped command --> 00A4040008A000000003000000 > > Response <-- 6F108408A000000003000000A5049F6501FF9000 > > open_sc -security 1 -keyind 0 -keyver 0 -mac_key > > 404142434445464748494a4b4c4d4e4 > > f -enc_key 404142434445464748494a4b4c4d4e4f // Open secure channel > > Command --> 80CA006600 > > Wrapped command --> 80CA006600 > > Response <-- > > 664C734A06072A864886FC6B01600C060A2A864886FC6B02020101630906072A864 > > > 886FC6B03640B06092A864886FC6B040215650B06092B8510864864020103660C060A2B060104012 > > A026E01029000 > > Command --> 8050000008FB40E98F53D10FB900 > > Wrapped command --> 8050000008FB40E98F53D10FB900 > > Response <-- 00007115001731911702FF020023A368E8D9A4CEB77CEF48A7257CE39000 > > Command --> 8482010010A3941602DF12AD128CDD3370FAEAB2E6 > > Wrapped command --> 8482010010A3941602DF12AD128CDD3370FAEAB2E6 > > Response <-- 9000 > > delete -AID a00000006203010c01 > > Command --> 80E400800B4F09A00000006203010C0100 > > Wrapped command --> 84E40080134F09A00000006203010C01A3FEC982667FD10000 > > Response <-- 009000 > > delete -AID a00000006203010c0101 > > Command --> 80E400800C4F0AA00000006203010C010100 > > Wrapped command --> 84E40080144F0AA00000006203010C01016A24CEB03866787100 > > Response <-- 6A88 > > delete_applet() returns 0x80206A88 (6A88: Referenced data not found.) > > install_for_load -pkgAID a00000006203010c01 -nvCodeLimit 500 -sdAID > > A0000000030 > > 00000 > > Command --> > > 80E602001C09A00000006203010C0108A0000000030000000006EF04C60202000000 > > > > Wrapped command --> > > 84E602002409A00000006203010C0108A0000000030000000006EF04C602 > > 020000D2BE4CCB4DD0728F00 > > Response <-- 009000 > > load -file HelloWorld.cap > > file name HelloWorld.cap > > Command --> > > 80E80000EFC482019B010013DECAFFED010204000109A00000006203010C0102001F > > > 0013001F000E000B0036000C0067000A00130000006C00000000000001010004000B01000107A000 > > > 000062010103000E010AA00000006203010C0101001406000C00800301000107010000001F070067 > > > 000210188C000118110100900B8700188B00027A02308F00033D8C00043B7A0523198B00052D198B > > > 00063203290470191A08AD0016041F8D000B3B16041F41290419088B000C321F64E8198B00073B19 > > > 160408418B00081903088B000919AD000316048B000A7A08000A0000000000000000000005003600 > > 0D020000000680030003 > > Wrapped command --> > > 84E80000F7C482019B010013DECAFFED010204000109A00000006203010C > > > 0102001F0013001F000E000B0036000C0067000A00130000006C00000000000001010004000B0100 > > > 0107A000000062010103000E010AA00000006203010C0101001406000C0080030100010701000000 > > > 1F070067000210188C000118110100900B8700188B00027A02308F00033D8C00043B7A0523198B00 > > > 052D198B00063203290470191A08AD0016041F8D000B3B16041F41290419088B000C321F64E8198B > > > 00073B19160408418B00081903088B000919AD000316048B000A7A08000A00000000000000000000 > > 050036000D0200000006800300039B6701C59F56FE16 > > Response <-- 009000 > > Command --> > > 80E88001B0800301010000000600000103800A0103800A0603800A0703800A090380 > > > 0A0403800A050680100203800A0309001300030E252C000C050C06040805100C080906090B006C01 > > > 0001000000000100030002000000001C00840001001E001100000000010900140030000900000000 > > > 0701001F0033004600000000000D001C001E001EFFFF001E001C00200020002200240027002A002E > > 01B001100140024103441004B44106B4B444024404B431066800A100 > > Wrapped command --> > > 84E88001B8800301010000000600000103800A0103800A0603800A070380 > > > 0A0903800A0403800A050680100203800A0309001300030E252C000C050C06040805100C08090609 > > > 0B006C010001000000000100030002000000001C00840001001E0011000000000109001400300009 > > > 000000000701001F0033004600000000000D001C001E001EFFFF001E001C00200020002200240027 > > > 002A002E01B001100140024103441004B44106B4B444024404B431066800A1E03B1BB7C344926800 > > > > Response <-- 009000 > > install_for_install -priv 02 -AID a00000006203010c0101 -pkgAID > > a00000006203010c0 > > 1 -instAID a00000006203010c0101 -nvDataLimit 2000 > > Command --> > > 80E60C002C09A00000006203010C010AA00000006203010C01010AA0000000620301 > > 0C0101010208C900EF04C80207D00000 > > Wrapped command --> > > 84E60C003409A00000006203010C010AA00000006203010C01010AA00000 > > 006203010C0101010208C900EF04C80207D00051B416B12A1AC3D100 > > Response <-- 6E00 > > install_for_install_and_make_selectable() returns 0x80206E00 (6E00: > > Wrong CLA by > > te.) > > </code> > > Do you think it is a problem in GPShell or in the card ? :s > > Thank you again ! > > Sébastien > > > > > > 2008/12/14 Karsten Ohme <wid...@t-... > > <mailto:wid...@t-...>> > > > > Sébastien HASCOAT schrieb: > > > Hello Karsten, > > > Thank you for your answer. I tried both options but none worked :( > I > > > really don't understand why, i'm lost... > > > If you have another idea i could try... I'll continue thinking > > about it > > > too ! > > > > Try to execute the three steps on it own. See the file > > helloInstallCFlex ... > > > > install_for_load > > load_ > > install_for ... > > > > Regards, > > Karsten > > > I thought about trying JCOP Tools but it's impossible to find now. > > > Have a nice day, > > > Sébastien Hascoat > > > > > > 2008/12/14 Karsten Ohme <wid...@t-... > > <mailto:wid...@t-...> > > > <mailto:wid...@t-... <mailto:wid...@t-...>>> > > > > > > Sébastien HASCOAT schrieb: > > > > Hello, > > > > I have a problem when i try to install an applet on a > > JCOP31/72k Card. > > > > I've seen that many people had this problem, but i didn't > > find the > > > solution. > > > > I tried with the samples provided with GPShell (version > 1.4.2) : > > > > helloInstallGP211.txt and i get this error : > > > > > > > > install_for_install_and_make_selectable() returns 0x80206E00 > > (6E00: > > > > Wrong CLA byte.) > > > > > > > > Here is the log : > > > > > > > > mode_211 > > > > enable_trace > > > > establish_context > > > > card_connect > > > > * reader name OMNIKEY CardMan 5x21 0 > > > > select -AID a000000003000000 > > > > Command --> 00A4040008A000000003000000 > > > > Wrapped command --> 00A4040008A000000003000000 > > > > Response <-- 6F108408A000000003000000A5049F6501FF9000 > > > > open_sc -security 1 -keyind 0 -keyver 0 -mac_key > > > > 404142434445464748494a4b4c4d4e4f -enc_key > > > > 404142434445464748494a4b4c4d4e4f // Open secure channel > > > > Command --> 80CA006600 > > > > Wrapped command --> 80CA006600 > > > > Response <-- > > > > > > > > > > 664C734A06072A864886FC6B01600C060A2A864886FC6B02020101630906072A864886FC6B03640B06092A864886FC6B040215650B06092B8510864864020103660C060A2B060104012A026E01029000 > > > > Command --> 805000000811D03CEEB05ED33400 > > > > Wrapped command --> 805000000811D03CEEB05ED33400 > > > > Response <-- > > > 00007115001731911702FF020003AD669A479C52DD1284247BEC64ED9000 > > > > Command --> 8482010010F82A9987D172FB7A6CDD05CB5E928AF3 > > > > Wrapped command --> > 8482010010F82A9987D172FB7A6CDD05CB5E928AF3 > > > > Response <-- 9000 > > > > delete -AID a00000006203010c0101 > > > > Command --> 80E400800C4F0AA00000006203010C010100 > > > > Wrapped command --> > > > 84E40080144F0AA00000006203010C0101B37CC15990CDB33600 > > > > Response <-- 6A88 > > > > delete_applet() returns 0x80206A88 (6A88: Referenced data > > not found.) > > > > delete -AID a00000006203010c01 > > > > Command --> 80E400800B4F09A00000006203010C0100 > > > > Wrapped command --> > > 84E40080134F09A00000006203010C014688AF21D63AA08A00 > > > > Response <-- 009000 > > > > install -file HelloWorld.cap -nvDataLimit 2000 -instParam 00 > > -priv 2 > > > > file name HelloWorld.cap > > > > Command --> > > > > > > > > > > 80E602002009A00000006203010C0108A000000003000000000AEF08C60201A8C80207D00000 > > > > Wrapped command --> > > > > > > > > > > 84E602002809A00000006203010C0108A000000003000000000AEF08C60201A8C80207D000C5518324E192FB5100 > > > > Response <-- 009000 > > > > Command --> > > > > > > > > > > 80E80000EFC482019B010013DECAFFED010204000109A00000006203010C0102001F0013001F000E000B0036000C0067000A00130000006C00000000000001010004000B01000107A000000062010103000E010AA00000006203010C0101001406000C00800301000107010000001F070067000210188C000118110100900B8700188B00027A02308F00033D8C00043B7A0523198B00052D198B00063203290470191A08AD0016041F8D000B3B16041F41290419088B000C321F64E8198B00073B19160408418B00081903088B000919AD000316048B000A7A08000A00000000000000000000050036000D020000000680030003 > > > > Wrapped command --> > > > > > > > > > > 84E80000F7C482019B010013DECAFFED010204000109A00000006203010C0102001F0013001F000E000B0036000C0067000A00130000006C00000000000001010004000B01000107A000000062010103000E010AA00000006203010C0101001406000C00800301000107010000001F070067000210188C000118110100900B8700188B00027A02308F00033D8C00043B7A0523198B00052D198B00063203290470191A08AD0016041F8D000B3B16041F41290419088B000C321F64E8198B00073B19160408418B00081903088B000919AD000316048B000A7A08000A00000000000000000000050036000D020000000680030003571CA97857168A8D > > > > Response <-- 009000 > > > > Command --> > > > > > > > > > > 80E88001B0800301010000000600000103800A0103800A0603800A0703800A0903800A0403800A050680100203800A0309001300030E252C000C050C06040805100C080906090B006C010001000000000100030002000000001C00840001001E0011000000000109001400300009000000000701001F0033004600000000000D001C001E001EFFFF001E001C00200020002200240027002A002E01B001100140024103441004B44106B4B444024404B431066800A100 > > > > Wrapped command --> > > > > > > > > > > 84E88001B8800301010000000600000103800A0103800A0603800A0703800A0903800A0403800A050680100203800A0309001300030E252C000C050C06040805100C080906090B006C010001000000000100030002000000001C00840001001E0011000000000109001400300009000000000701001F0033004600000000000D001C001E001EFFFF001E001C00200020002200240027002A002E01B001100140024103441004B44106B4B444024404B431066800A16FC7CE2D558E8BAA00 > > > > Response <-- 009000 > > > > Command --> > > > > > > > > > > 80E60C002D09A00000006203010C010AA00000006203010C01010AA00000006203010C0101010209C90100EF04C80207D00000 > > > > Wrapped command --> > > > > > > > > > > 84E60C003509A00000006203010C010AA00000006203010C01010AA00000006203010C0101010209C90100EF04C80207D0004B24280302CB968A00 > > > > Response <-- 6E00 > > > > install_for_install_and_make_selectable() returns 0x80206E00 > > (6E00: > > > > Wrong CLA byte.) > > > > > > > > > > > > I am sure it is a simple thing but i really can't find where > > ! I have > > > > > > Maybe it is not so easy. The message CLA byte wrong is > > rubbish. I cannot > > > see the reason. It is correct. The CLA byte is the first byte. > > Here 84. > > > 80 is the standard CLA byte for a GP command. The 4 means that > > a secure > > > channel is used. Try to pass to open_sc -security 3 or security > 0 > > > instead of -security 1. Let's see what happens. But I don't > > think this > > > is the problem. > > > > > > The install command command executes in three steps: > > > > > > install_for_load starting with 80 E6 02 > > > load 80 E8 > > > install_for_install_and_make_selectable = 80 E6 0C ... > > > > > > This look correct in the trace. > > > > > > If the change of the security parameter changes the behavior > > there is a > > > bug on some side. > > > > > > Regards, > > > Karsten > > > > > > > the same error with my own applets then i suppose it will > solve > > > > everything if somebody can tell me where is the problem :) > > > > Thank you very much for your help ! > > > > Sebastien > > > > > > > > > > > > > > > > > > ------------------------------------------------------------------------ > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las > > > Vegas, Nevada. > > > > The future of the web can't happen without you. Join us at > > MIX09 > > > to help > > > > pave the way to the Next Web now. Learn more and register at > > > > > > > > > > http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/ > > > > > > > > > > > > > > > > > > ------------------------------------------------------------------------ > > > > > > > > _______________________________________________ > > > > Globalplatform-users mailing list > > > > Glo...@li... > > <mailto:Glo...@li...> > > > <mailto:Glo...@li... > > <mailto:Glo...@li...>> > > > > > > https://lists.sourceforge.net/lists/listinfo/globalplatform-users > > > > > > > > > > > > > > > ------------------------------------------------------------------------ > > > > > > > > > ------------------------------------------------------------------------------ > > > SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las > > Vegas, Nevada. > > > The future of the web can't happen without you. Join us at MIX09 > > to help > > > pave the way to the Next Web now. Learn more and register at > > > > > > http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/ > > > > > > > > > > > > ------------------------------------------------------------------------ > > > > > > _______________________________________________ > > > Globalplatform-users mailing list > > > Glo...@li... > > <mailto:Glo...@li...> > > > https://lists.sourceforge.net/lists/listinfo/globalplatform-users > > > > > > |