From: S. H. <seb...@gm...> - 2008-12-13 22:32:21
|
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 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 |
From: Karsten O. <wid...@t-...> - 2008-12-14 02:25:12
|
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... > https://lists.sourceforge.net/lists/listinfo/globalplatform-users |
From: S. H. <seb...@gm...> - 2008-12-14 10:01:52
|
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 ! 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-...> > 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... > > https://lists.sourceforge.net/lists/listinfo/globalplatform-users > > |
From: Karsten O. <wid...@t-...> - 2008-12-14 12:29:49
|
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-...>> > > 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...> > > 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... > https://lists.sourceforge.net/lists/listinfo/globalplatform-users |
From: S. H. <seb...@gm...> - 2008-12-14 22:35:07
|
I tried what you said. It crashed again (with the same error message) when it executes "install_for_install" : <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-...> > 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-...>> > > > > 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...> > > > 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... > > https://lists.sourceforge.net/lists/listinfo/globalplatform-users > > |
From: Karsten O. <wid...@t-...> - 2008-12-15 02:54:46
|
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 > > |
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 > > > > > > |
From: Karsten O. <wid...@t-...> - 2008-12-16 03:06:52
|
Sébastien HASCOAT schrieb: > 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 :( This is not install_for_install command. The install for install has only a 04 as P1 byte (the third byte). But maybe the card has a problem. Maybe also the returned error is not correct and the installation file is not accepted. The problem seems to be very specific and I have not seen it for other cards. I don't know of any other free tool except JCOP the tools. Is the card in the right life cycle state? See the GP spec. Maybe this causes a problem. It should be in state PERSONALIZED or one before. Regards, Karsten > (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-... > <mailto: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-...> > > <mailto: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-...>> > > > <mailto: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...>> > > > <mailto: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...> > > <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... > https://lists.sourceforge.net/lists/listinfo/globalplatform-users |
From: Michael S. <mst...@co...> - 2008-12-16 16:32:02
|
One thought I had was to check the card state. It's possible this is an illegal operation unless the card state is greater than a certain level. You may have gotten a card that hasn't been sealed. Mike At 08:05 PM 12/15/2008, Karsten Ohme wrote: >Sébastien HASCOAT schrieb: >> 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 :( > >This is not install_for_install command. The install for install has >only a 04 as P1 byte (the third byte). But maybe the card has a problem. >Maybe also the returned error is not correct and the installation file >is not accepted. The problem seems to be very specific and I have not >seen it for other cards. >I don't know of any other free tool except JCOP the tools. > >Is the card in the right life cycle state? See the GP spec. Maybe this >causes a problem. It should be in state PERSONALIZED or one before. > >Regards, >Karsten > >> (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-... >> <mailto: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-...> >> > <mailto: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-...>> >> > > <mailto: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...>> >> > > <mailto: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...> >> > <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... >> 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... >https://lists.sourceforge.net/lists/listinfo/globalplatform-users |
From: S. H. <seb...@gm...> - 2008-12-16 13:43:48
|
Thank you again !! I'll have a look this evening, i'll let you know if i found anything about it. Sébastien 2008/12/16 Karsten Ohme <wid...@t-...> > Sébastien HASCOAT schrieb: > > 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 :( > > This is not install_for_install command. The install for install has > only a 04 as P1 byte (the third byte). But maybe the card has a problem. > Maybe also the returned error is not correct and the installation file > is not accepted. The problem seems to be very specific and I have not > seen it for other cards. > I don't know of any other free tool except JCOP the tools. > > Is the card in the right life cycle state? See the GP spec. Maybe this > causes a problem. It should be in state PERSONALIZED or one before. > > Regards, > Karsten > > > (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-... > > <mailto: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-...> > > > <mailto: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-... > >> > > > > <mailto: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...>> > > > > <mailto: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...> > > > <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... > > https://lists.sourceforge.net/lists/listinfo/globalplatform-users > > |
From: S. H. <seb...@gm...> - 2008-12-16 17:01:44
|
Somebody told me to try that : " Honestly, no clue. It works on my side (also tried it with JCOP 31/72 v2.2). The only reason I can think of for SW_CLA_NOT_SUPPORTED at INSTALL[for install&make selectable] is due to wrong security level. But your log doesn't show that (unless GPShell sends something different). As you seem to have an unfused card, try booting it and repeat the pre-personalization. If you don't know how, contact your distributor to do so or write NXP customer support. " (http://forums.sun.com/thread.jspa?threadID=5355071) So i emailed NXP to ask them how to do. And this evening i'll have a look at all these ideas, maybe i'll find a way to do it !! I thought JavaCard was easier than that :) Sébastien |
From: Michael S. <mst...@co...> - 2008-12-17 00:38:44
|
At 11:57 AM 12/16/2008, Sébastien HASCOAT wrote: >Somebody told me to try that : > >" >Honestly, no clue. It works on my side (also tried it with JCOP 31/72 v2.2). The only reason I can think of for SW_CLA_NOT_SUPPORTED at INSTALL[for install&make selectable] is due to wrong security level. But your log doesn't show that (unless GPShell sends something different). > >As you seem to have an unfused card, try booting it and repeat the pre-personalization. If you don't know how, contact your distributor to do so or write NXP customer support. " > >(<http://forums.sun.com/thread.jspa?threadID=5355071>http://forums.sun.com/thread.jspa?threadID=5355071) > >So i emailed NXP to ask them how to do. And this evening i'll have a look at all these ideas, maybe i'll find a way to do it !! I thought JavaCard was easier than that :) >Sébastien Try sending an identify command: "00h A4h 04h 00h 09h A0h 00h 00h 01h 67h 41h 30h 00h FFh 00h" Should return an 6A82h as status plus an array of data. Fuse state should be offset 14 - 1 byte. 00h is unfused, 01h is fused. If this is unfused, I'd suggest not using it and get a pre-personalized card from somewhere like USASmartcard. That should already be set up for normal Javacard usage. The cards in the unfused state are ready for a bulk manufacturing process (write a memory image) rather than loading an applet. Mike |
From: S. H. <seb...@gm...> - 2008-12-17 07:52:47
|
Hello, That's the array : 30040124000000005048353232440003D88D936A82 If i'm right, i found "00" so it's unfused.... I'm getting mad :) Sébastien |
From: Michael S. <mst...@co...> - 2008-12-17 18:08:21
|
At 02:52 AM 12/17/2008, Sébastien HASCOAT wrote: >Hello, >That's the array : >30040124000000005048353232440003D88D936A82 > >If i'm right, i found "00" so it's unfused.... I'm getting mad :) > >Sébastien I wouldn't get mad - just get a fused card. Good luck! Mike |
From: S. H. <seb...@gm...> - 2008-12-17 18:19:20
|
A fused car would be better ? 8-) Sébastien |
From: Michael S. <mst...@co...> - 2008-12-17 18:30:14
|
A fused card is ready for normal javacard/Global platform operations. With an unfused card, if you have the card keys, you can change the underlying OS, native libraries etc. You can also do bulk personalization (e.g. write a card image rather than single applets). To do that you probably need the development kit from NXP. Its got all the fun stuff in it. I don't know what their requirements are to get such a kit. One last warning... a card in the unfused state might have different export (country to country) restrictions than an unfused card due to unfettered access to the core of the libraries. Mike At 01:19 PM 12/17/2008, Sébastien HASCOAT wrote: >A fused car would be better ? >8-) >Sébastien |
From: S. H. <seb...@gm...> - 2008-12-17 20:06:05
|
Waow, thank you very much for all these explanations, i now understand why they don't work ! I think i'll order some other cards on the website you gave me, and i'll keep these cards for later, maybe one day i'll need that :) Thank you again very very very much. Sébastien |