You can subscribe to this list here.
2006 |
Jan
|
Feb
|
Mar
(18) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(5) |
Oct
(15) |
Nov
|
Dec
(6) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2007 |
Jan
(2) |
Feb
|
Mar
|
Apr
(1) |
May
(4) |
Jun
|
Jul
(10) |
Aug
(7) |
Sep
|
Oct
(2) |
Nov
(1) |
Dec
|
2008 |
Jan
(2) |
Feb
(7) |
Mar
(1) |
Apr
(7) |
May
|
Jun
|
Jul
|
Aug
(4) |
Sep
(9) |
Oct
(6) |
Nov
|
Dec
(22) |
2009 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(3) |
Jun
(3) |
Jul
(2) |
Aug
(2) |
Sep
(3) |
Oct
|
Nov
(6) |
Dec
(1) |
2010 |
Jan
(1) |
Feb
|
Mar
(2) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(3) |
Oct
(11) |
Nov
|
Dec
|
2011 |
Jan
|
Feb
(1) |
Mar
|
Apr
|
May
|
Jun
|
Jul
(11) |
Aug
(7) |
Sep
(1) |
Oct
|
Nov
|
Dec
|
2012 |
Jan
(2) |
Feb
|
Mar
|
Apr
|
May
|
Jun
(1) |
Jul
|
Aug
|
Sep
(1) |
Oct
|
Nov
|
Dec
|
2013 |
Jan
(2) |
Feb
|
Mar
(4) |
Apr
(5) |
May
(6) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(1) |
Nov
|
Dec
|
2014 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(1) |
2015 |
Jan
|
Feb
(2) |
Mar
(2) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(1) |
Dec
|
2017 |
Jan
|
Feb
(1) |
Mar
|
Apr
|
May
|
Jun
(1) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(1) |
Dec
|
2018 |
Jan
|
Feb
|
Mar
|
Apr
(1) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2019 |
Jan
|
Feb
(2) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2020 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(1) |
Oct
|
Nov
|
Dec
|
2022 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(1) |
Sep
|
Oct
|
Nov
|
Dec
|
From: 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: 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-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-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-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 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 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-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: <ar...@hi...> - 2008-12-03 08:26:12
|
It's the only change. It was so easy like you say. I think the script finally is identical to some others examples than comes with GPShell but here it is : Installation mode_211 enable_trace establish_context # If you have an Omnikey CardMan 5x21 reader, the contactless reader is # the next even number, e.g. 2 if this is you first reader device in # the system card_connect -readerNumber 2 select -AID a000000003000000 #Nokia 6131NFC open_sc -security 3 -keyver 42 -mac_key 404142434445464748494A4B4C4D4E4F -enc_key 404142434445464748494A4B4C4D4E4F -kek_key 404142434445464748494A4B4C4D4E4F #SDiD1010 #open_sc -security 1 -keyind 0 -keyver 0 -mac_key 404142434445464748494a4b4c4d4e4f -enc_key 404142434445464748494a4b4c4d4e4f install -file Wallet.cap -priv 2 card_disconnect release_context Content List mode_211 enable_trace establish_context # If you have an Omnikey CardMan 5x21 reader, the contactless reader is # the next even number, e.g. 2 if this is you first reader device in # the system card_connect -readerNumber 2 select -AID a000000003000000 #Nokia 6131NFC open_sc -security 3 -keyver 42 -mac_key 404142434445464748494A4B4C4D4E4F -enc_key 404142434445464748494A4B4C4D4E4F -kek_key 404142434445464748494A4B4C4D4E4F #SDiD1010 #open_sc -security 1 -keyind 0 -keyver 0 -mac_key 404142434445464748494a4b4c4d4e4f -enc_key 404142434445464748494a4b4c4d4e4f #Nokia 6131NFC get_status -element 20 #SDiD1010 #get_status -element 10 card_disconnect release_context Regards from Spain and thank you again. Quoting Karsten Ohme <wid...@t-...>: > Hi, > > Ah, yes. keyver 42 was indeed only usable for GemXpresso cards if I > remember correctly. Actually simple but I did not notice this. Nice that > it works. > > Was it the only change or can you please again the full script? So I can > include it as sample script for this type of card. > > Regards, > Karsten > > ar...@hi... schrieb: >> After a little bit of investigation, I have found where is the problem. >> This is >> the correct line : >> >> open_sc -security 1 -keyind 0 -keyver 0 -mac_key >> 404142434445464748494a4b4c4d4e4f -enc_key 404142434445464748494a4b4c4d4e4f >> >> I hope this will help other people with the same problem. >> >> Thanks a lot & regargs. >> >> >> Quoting Karsten Ohme <wid...@t-...>: >> > >>> Hi, >>> >>> ar...@hi... schrieb: >>>> Hello there. >>>> I'm trying, unsucesfully till now, to install and applet with >>>> GPShell and a >>>> Omnikey5321 reader into SDiD 1010 javacard. After a lot of postings in the >>>> SDiD's official forums, nobody seems to know how to install it using >>>> GPShell. >>>> Using JCOP Tools is not an option because of time reasons. >>>> If somebody has used previously this device in the past and have >>>> an example >>>> script or some idea of why the following script is crashing, I'll be >>>> thankfull >>> Unfortunately this card is not known to me. But I have an idea. Some or >>> all JCOP 10 cards are using a key derivation scheme. >>> >>> Do I have already committed the helloInstallJCOP10.txt with GPShell? >>> >>> Here is it: >>> >>> mode_211 >>> gemXpressoPro >>> enable_trace >>> establish_context >>> card_connect -readerNumber 3 >>> select -AID a000000003000000 >>> open_sc -security 1 -keyind 0 -keyver 0 -key >>> 404142434445464748494a4b4c4d4e4f >>> delete -AID a00000006203010c0101 >>> delete -AID a00000006203010c01 >>> delete -AID a00000006203010c0101 >>> install_for_load -pkgAID a00000006203010c01 -nvCodeLimit 500 >>> load -file HelloWorld.cap >>> install_for_install -instParam 00 -priv 02 -AID a00000006203010c0101 >>> -pkgAID a00000006203010c01 -instAID a00000006203010c0101 -nvDataLimit 500 >>> card_disconnect >>> release_context >>> >>> I'm not sure if it works in the the release version you have. Give it a >>> try. If it does not work use the latest sources from SVN and compile it. >>> Or I can send you a compiled version >>> >>> Regards, >>> Karsten >>> >>>> : >>>> >>>> mode_211 >>>> enable_trace >>>> establish_context >>>> # If you have an Omnikey CardMan 5x21 reader, the contactless reader is >>>> # the next even number, e.g. 2 if this is you first reader device in >>>> # the system >>>> card_connect -readerNumber 2 >>>> select -AID a000000003000000 >>>> open_sc -security 3 -keyver 42 -mac_key 404142434445464748494A4B4C4D4E4F >>>> -enc_key 404142434445464748494A4B4C4D4E4F -kek_key >>>> 404142434445464748494A4B4C4D4E4F >>>> install -file Example.cap -priv 2 >>>> card_disconnect >>>> release_context >>>> >>>> Following is the outpput : >>>> >>>> mode_211 >>>> enable_trace >>>> establish_context >>>> card_connect -readerNumber 2 >>>> * reader name OMNIKEY CardMan 5x21-CL 0 >>>> select -AID a000000003000000 >>>> Command --> 00A4040008A000000003000000 >>>> Wrapped command --> 00A4040008A000000003000000 >>>> Response <-- 6F108408A000000003000000A5049F6501FF9000 >>>> open_sc -security 3 -keyver 42 -mac_key >>>> 404142434445464748494A4B4C4D4E4F -enc_ke >>>> y 404142434445464748494A4B4C4D4E4F -kek_key >>>> 404142434445464748494A4B4C4D4E4F >>>> Command --> 80CA006600 >>>> Wrapped command --> 80CA006600 >>>> Response <-- >>>> 664C734A06072A864886FC6B01600C060A2A864886FC6B02020101630906072A864 >>>> 886FC6B03640B06092A864886FC6B040215650B06092B8510864864020103660C060A2B060104012 >>>> A026E01029000 >>>> Command --> 80502A000856369203C42D4C8200 >>>> Wrapped command --> 80502A000856369203C42D4C8200 >>>> Response <-- 6A88 >>>> mutual_authentication() returns 0x80206A88 (6A88: Referenced data >>>> not found.) >>>> >>>> I'm scared of making try and error with authentication flags because of 10 >>>> incorrect authentications (or even less) can ruin the javacard. >>>> >>>> Thanks in advance & Regards >>>> >>>> >>>> >>>> ---------------------------------------------------------------- >>>> This message was sent using IMP, the Internet Messaging Program. >>>> >>>> ------------------------------------------------------------------------- >>>> This SF.Net email is sponsored by the Moblin Your Move Developer's >>>> challenge >>>> Build the coolest Linux based applications with Moblin SDK & win >>>> great prizes >>>> Grand prize is a trip for two to an Open Source event anywhere in >>>> the world >>>> http://moblin-contest.org/redirect.php?banner_id=100&url=/ >>>> _______________________________________________ >>>> Globalplatform-users mailing list >>>> Glo...@li... >>>> https://lists.sourceforge.net/lists/listinfo/globalplatform-users >>>> >>>> >>> >> >> >> >> ---------------------------------------------------------------- >> This message was sent using IMP, the Internet Messaging Program. >> >> >> ------------------------------------------------------------------------- >> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge >> Build the coolest Linux based applications with Moblin SDK & win >> great prizes >> Grand prize is a trip for two to an Open Source event anywhere in the world >> http://moblin-contest.org/redirect.php?banner_id=100&url=/ >> _______________________________________________ >> Globalplatform-users mailing list >> Glo...@li... >> https://lists.sourceforge.net/lists/listinfo/globalplatform-users >> >> > > ---------------------------------------------------------------- This message was sent using IMP, the Internet Messaging Program. |
From: Karsten O. <wid...@t-...> - 2008-12-03 00:38:26
|
Hi, Ah, yes. keyver 42 was indeed only usable for GemXpresso cards if I remember correctly. Actually simple but I did not notice this. Nice that it works. Was it the only change or can you please again the full script? So I can include it as sample script for this type of card. Regards, Karsten ar...@hi... schrieb: > After a little bit of investigation, I have found where is the problem. > This is > the correct line : > > open_sc -security 1 -keyind 0 -keyver 0 -mac_key > 404142434445464748494a4b4c4d4e4f -enc_key 404142434445464748494a4b4c4d4e4f > > I hope this will help other people with the same problem. > > Thanks a lot & regargs. > > > Quoting Karsten Ohme <wid...@t-...>: > >> Hi, >> >> ar...@hi... schrieb: >>> Hello there. >>> I'm trying, unsucesfully till now, to install and applet with GPShell and a >>> Omnikey5321 reader into SDiD 1010 javacard. After a lot of postings in the >>> SDiD's official forums, nobody seems to know how to install it using >>> GPShell. >>> Using JCOP Tools is not an option because of time reasons. >>> If somebody has used previously this device in the past and have an example >>> script or some idea of why the following script is crashing, I'll be >>> thankfull >> Unfortunately this card is not known to me. But I have an idea. Some or >> all JCOP 10 cards are using a key derivation scheme. >> >> Do I have already committed the helloInstallJCOP10.txt with GPShell? >> >> Here is it: >> >> mode_211 >> gemXpressoPro >> enable_trace >> establish_context >> card_connect -readerNumber 3 >> select -AID a000000003000000 >> open_sc -security 1 -keyind 0 -keyver 0 -key >> 404142434445464748494a4b4c4d4e4f >> delete -AID a00000006203010c0101 >> delete -AID a00000006203010c01 >> delete -AID a00000006203010c0101 >> install_for_load -pkgAID a00000006203010c01 -nvCodeLimit 500 >> load -file HelloWorld.cap >> install_for_install -instParam 00 -priv 02 -AID a00000006203010c0101 >> -pkgAID a00000006203010c01 -instAID a00000006203010c0101 -nvDataLimit 500 >> card_disconnect >> release_context >> >> I'm not sure if it works in the the release version you have. Give it a >> try. If it does not work use the latest sources from SVN and compile it. >> Or I can send you a compiled version >> >> Regards, >> Karsten >> >>> : >>> >>> mode_211 >>> enable_trace >>> establish_context >>> # If you have an Omnikey CardMan 5x21 reader, the contactless reader is >>> # the next even number, e.g. 2 if this is you first reader device in >>> # the system >>> card_connect -readerNumber 2 >>> select -AID a000000003000000 >>> open_sc -security 3 -keyver 42 -mac_key 404142434445464748494A4B4C4D4E4F >>> -enc_key 404142434445464748494A4B4C4D4E4F -kek_key >>> 404142434445464748494A4B4C4D4E4F >>> install -file Example.cap -priv 2 >>> card_disconnect >>> release_context >>> >>> Following is the outpput : >>> >>> mode_211 >>> enable_trace >>> establish_context >>> card_connect -readerNumber 2 >>> * reader name OMNIKEY CardMan 5x21-CL 0 >>> select -AID a000000003000000 >>> Command --> 00A4040008A000000003000000 >>> Wrapped command --> 00A4040008A000000003000000 >>> Response <-- 6F108408A000000003000000A5049F6501FF9000 >>> open_sc -security 3 -keyver 42 -mac_key >>> 404142434445464748494A4B4C4D4E4F -enc_ke >>> y 404142434445464748494A4B4C4D4E4F -kek_key 404142434445464748494A4B4C4D4E4F >>> Command --> 80CA006600 >>> Wrapped command --> 80CA006600 >>> Response <-- >>> 664C734A06072A864886FC6B01600C060A2A864886FC6B02020101630906072A864 >>> 886FC6B03640B06092A864886FC6B040215650B06092B8510864864020103660C060A2B060104012 >>> A026E01029000 >>> Command --> 80502A000856369203C42D4C8200 >>> Wrapped command --> 80502A000856369203C42D4C8200 >>> Response <-- 6A88 >>> mutual_authentication() returns 0x80206A88 (6A88: Referenced data >>> not found.) >>> >>> I'm scared of making try and error with authentication flags because of 10 >>> incorrect authentications (or even less) can ruin the javacard. >>> >>> Thanks in advance & Regards >>> >>> >>> >>> ---------------------------------------------------------------- >>> This message was sent using IMP, the Internet Messaging Program. >>> >>> ------------------------------------------------------------------------- >>> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge >>> Build the coolest Linux based applications with Moblin SDK & win >>> great prizes >>> Grand prize is a trip for two to an Open Source event anywhere in the world >>> http://moblin-contest.org/redirect.php?banner_id=100&url=/ >>> _______________________________________________ >>> Globalplatform-users mailing list >>> Glo...@li... >>> https://lists.sourceforge.net/lists/listinfo/globalplatform-users >>> >>> >> > > > > ---------------------------------------------------------------- > This message was sent using IMP, the Internet Messaging Program. > > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Globalplatform-users mailing list > Glo...@li... > https://lists.sourceforge.net/lists/listinfo/globalplatform-users > > |
From: <ar...@hi...> - 2008-12-02 09:54:40
|
After a little bit of investigation, I have found where is the problem. This is the correct line : open_sc -security 1 -keyind 0 -keyver 0 -mac_key 404142434445464748494a4b4c4d4e4f -enc_key 404142434445464748494a4b4c4d4e4f I hope this will help other people with the same problem. Thanks a lot & regargs. Quoting Karsten Ohme <wid...@t-...>: > Hi, > > ar...@hi... schrieb: >> Hello there. >> I'm trying, unsucesfully till now, to install and applet with GPShell and a >> Omnikey5321 reader into SDiD 1010 javacard. After a lot of postings in the >> SDiD's official forums, nobody seems to know how to install it using >> GPShell. >> Using JCOP Tools is not an option because of time reasons. >> If somebody has used previously this device in the past and have an example >> script or some idea of why the following script is crashing, I'll be >> thankfull > > Unfortunately this card is not known to me. But I have an idea. Some or > all JCOP 10 cards are using a key derivation scheme. > > Do I have already committed the helloInstallJCOP10.txt with GPShell? > > Here is it: > > mode_211 > gemXpressoPro > enable_trace > establish_context > card_connect -readerNumber 3 > select -AID a000000003000000 > open_sc -security 1 -keyind 0 -keyver 0 -key > 404142434445464748494a4b4c4d4e4f > delete -AID a00000006203010c0101 > delete -AID a00000006203010c01 > delete -AID a00000006203010c0101 > install_for_load -pkgAID a00000006203010c01 -nvCodeLimit 500 > load -file HelloWorld.cap > install_for_install -instParam 00 -priv 02 -AID a00000006203010c0101 > -pkgAID a00000006203010c01 -instAID a00000006203010c0101 -nvDataLimit 500 > card_disconnect > release_context > > I'm not sure if it works in the the release version you have. Give it a > try. If it does not work use the latest sources from SVN and compile it. > Or I can send you a compiled version > > Regards, > Karsten > >> : >> >> mode_211 >> enable_trace >> establish_context >> # If you have an Omnikey CardMan 5x21 reader, the contactless reader is >> # the next even number, e.g. 2 if this is you first reader device in >> # the system >> card_connect -readerNumber 2 >> select -AID a000000003000000 >> open_sc -security 3 -keyver 42 -mac_key 404142434445464748494A4B4C4D4E4F >> -enc_key 404142434445464748494A4B4C4D4E4F -kek_key >> 404142434445464748494A4B4C4D4E4F >> install -file Example.cap -priv 2 >> card_disconnect >> release_context >> >> Following is the outpput : >> >> mode_211 >> enable_trace >> establish_context >> card_connect -readerNumber 2 >> * reader name OMNIKEY CardMan 5x21-CL 0 >> select -AID a000000003000000 >> Command --> 00A4040008A000000003000000 >> Wrapped command --> 00A4040008A000000003000000 >> Response <-- 6F108408A000000003000000A5049F6501FF9000 >> open_sc -security 3 -keyver 42 -mac_key >> 404142434445464748494A4B4C4D4E4F -enc_ke >> y 404142434445464748494A4B4C4D4E4F -kek_key 404142434445464748494A4B4C4D4E4F >> Command --> 80CA006600 >> Wrapped command --> 80CA006600 >> Response <-- >> 664C734A06072A864886FC6B01600C060A2A864886FC6B02020101630906072A864 >> 886FC6B03640B06092A864886FC6B040215650B06092B8510864864020103660C060A2B060104012 >> A026E01029000 >> Command --> 80502A000856369203C42D4C8200 >> Wrapped command --> 80502A000856369203C42D4C8200 >> Response <-- 6A88 >> mutual_authentication() returns 0x80206A88 (6A88: Referenced data >> not found.) >> >> I'm scared of making try and error with authentication flags because of 10 >> incorrect authentications (or even less) can ruin the javacard. >> >> Thanks in advance & Regards >> >> >> >> ---------------------------------------------------------------- >> This message was sent using IMP, the Internet Messaging Program. >> >> ------------------------------------------------------------------------- >> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge >> Build the coolest Linux based applications with Moblin SDK & win >> great prizes >> Grand prize is a trip for two to an Open Source event anywhere in the world >> http://moblin-contest.org/redirect.php?banner_id=100&url=/ >> _______________________________________________ >> Globalplatform-users mailing list >> Glo...@li... >> https://lists.sourceforge.net/lists/listinfo/globalplatform-users >> >> > > ---------------------------------------------------------------- This message was sent using IMP, the Internet Messaging Program. |
From: Karsten O. <wid...@t-...> - 2008-12-01 21:28:05
|
Hi, ar...@hi... schrieb: > Hello there. > I'm trying, unsucesfully till now, to install and applet with GPShell and a > Omnikey5321 reader into SDiD 1010 javacard. After a lot of postings in the > SDiD's official forums, nobody seems to know how to install it using GPShell. > Using JCOP Tools is not an option because of time reasons. > If somebody has used previously this device in the past and have an example > script or some idea of why the following script is crashing, I'll be thankfull Unfortunately this card is not known to me. But I have an idea. Some or all JCOP 10 cards are using a key derivation scheme. Do I have already committed the helloInstallJCOP10.txt with GPShell? Here is it: mode_211 gemXpressoPro enable_trace establish_context card_connect -readerNumber 3 select -AID a000000003000000 open_sc -security 1 -keyind 0 -keyver 0 -key 404142434445464748494a4b4c4d4e4f delete -AID a00000006203010c0101 delete -AID a00000006203010c01 delete -AID a00000006203010c0101 install_for_load -pkgAID a00000006203010c01 -nvCodeLimit 500 load -file HelloWorld.cap install_for_install -instParam 00 -priv 02 -AID a00000006203010c0101 -pkgAID a00000006203010c01 -instAID a00000006203010c0101 -nvDataLimit 500 card_disconnect release_context I'm not sure if it works in the the release version you have. Give it a try. If it does not work use the latest sources from SVN and compile it. Or I can send you a compiled version Regards, Karsten > : > > mode_211 > enable_trace > establish_context > # If you have an Omnikey CardMan 5x21 reader, the contactless reader is > # the next even number, e.g. 2 if this is you first reader device in > # the system > card_connect -readerNumber 2 > select -AID a000000003000000 > open_sc -security 3 -keyver 42 -mac_key 404142434445464748494A4B4C4D4E4F > -enc_key 404142434445464748494A4B4C4D4E4F -kek_key > 404142434445464748494A4B4C4D4E4F > install -file Example.cap -priv 2 > card_disconnect > release_context > > Following is the outpput : > > mode_211 > enable_trace > establish_context > card_connect -readerNumber 2 > * reader name OMNIKEY CardMan 5x21-CL 0 > select -AID a000000003000000 > Command --> 00A4040008A000000003000000 > Wrapped command --> 00A4040008A000000003000000 > Response <-- 6F108408A000000003000000A5049F6501FF9000 > open_sc -security 3 -keyver 42 -mac_key 404142434445464748494A4B4C4D4E4F -enc_ke > y 404142434445464748494A4B4C4D4E4F -kek_key 404142434445464748494A4B4C4D4E4F > Command --> 80CA006600 > Wrapped command --> 80CA006600 > Response <-- 664C734A06072A864886FC6B01600C060A2A864886FC6B02020101630906072A864 > 886FC6B03640B06092A864886FC6B040215650B06092B8510864864020103660C060A2B060104012 > A026E01029000 > Command --> 80502A000856369203C42D4C8200 > Wrapped command --> 80502A000856369203C42D4C8200 > Response <-- 6A88 > mutual_authentication() returns 0x80206A88 (6A88: Referenced data not found.) > > I'm scared of making try and error with authentication flags because of 10 > incorrect authentications (or even less) can ruin the javacard. > > Thanks in advance & Regards > > > > ---------------------------------------------------------------- > This message was sent using IMP, the Internet Messaging Program. > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Globalplatform-users mailing list > Glo...@li... > https://lists.sourceforge.net/lists/listinfo/globalplatform-users > > |
From: <ar...@hi...> - 2008-12-01 10:53:39
|
Hello there. I'm trying, unsucesfully till now, to install and applet with GPShell and a Omnikey5321 reader into SDiD 1010 javacard. After a lot of postings in the SDiD's official forums, nobody seems to know how to install it using GPShell. Using JCOP Tools is not an option because of time reasons. If somebody has used previously this device in the past and have an example script or some idea of why the following script is crashing, I'll be thankfull : mode_211 enable_trace establish_context # If you have an Omnikey CardMan 5x21 reader, the contactless reader is # the next even number, e.g. 2 if this is you first reader device in # the system card_connect -readerNumber 2 select -AID a000000003000000 open_sc -security 3 -keyver 42 -mac_key 404142434445464748494A4B4C4D4E4F -enc_key 404142434445464748494A4B4C4D4E4F -kek_key 404142434445464748494A4B4C4D4E4F install -file Example.cap -priv 2 card_disconnect release_context Following is the outpput : mode_211 enable_trace establish_context card_connect -readerNumber 2 * reader name OMNIKEY CardMan 5x21-CL 0 select -AID a000000003000000 Command --> 00A4040008A000000003000000 Wrapped command --> 00A4040008A000000003000000 Response <-- 6F108408A000000003000000A5049F6501FF9000 open_sc -security 3 -keyver 42 -mac_key 404142434445464748494A4B4C4D4E4F -enc_ke y 404142434445464748494A4B4C4D4E4F -kek_key 404142434445464748494A4B4C4D4E4F Command --> 80CA006600 Wrapped command --> 80CA006600 Response <-- 664C734A06072A864886FC6B01600C060A2A864886FC6B02020101630906072A864 886FC6B03640B06092A864886FC6B040215650B06092B8510864864020103660C060A2B060104012 A026E01029000 Command --> 80502A000856369203C42D4C8200 Wrapped command --> 80502A000856369203C42D4C8200 Response <-- 6A88 mutual_authentication() returns 0x80206A88 (6A88: Referenced data not found.) I'm scared of making try and error with authentication flags because of 10 incorrect authentications (or even less) can ruin the javacard. Thanks in advance & Regards ---------------------------------------------------------------- This message was sent using IMP, the Internet Messaging Program. |
From: ehsan t. <eh_...@ya...> - 2008-10-28 15:25:56
|
thanks for the answer. but about the end of the answer: Sim cards are smart cards and the most of them are also java card. Applets can be written to them and these applets can use many of(maybe all) of the gsm capabilities. you can see gemalto's forum(the main smart card manufacturer): http://developer.gemalto.com/nc/forums.html --- On Mon, 27/10/08, Karsten Ohme <kar...@go...> wrote: From: Karsten Ohme <kar...@go...> Subject: Re: [Globalplatform-users] instruments for applet upload using gpshell To: eh_...@ya... Cc: glo...@li... Date: Monday, 27 October, 2008, 1:26 AM Hi, ehsan taheri schrieb: > hello > I want to by a smart card and a sim card and try to load my java applets > in it and I have some questions. > > I know that the smart card communication protocol is APDU. > I have heard many other names such as global platform, open platform, > OCF, PC/SC and ... > I think these must be protocols and APIs for the communication between > PC and Smart card. > > Now I don't really know what kind of smart card and reader I need to buy. > > I have found one smart card available in my country. it supports : ISO > 7816, ISO 7816 is a ciommunication protocol defining electrical stuff and the mentioned APDU format. Every smart card should speak it. PC/SC is a standard for talking to card reader for reading smart cards. It should be supported by every reader. If the reader or card does not comply with the above standards fon't hesitate and throw it away. > PC/SC, Microsoft WHQL, FCC, CE and RoHS Well, FCC is radio communication and censorship authorities in the US, CE is a liberal version of this for Europe. Microsoft WHQL is for Windows driver certification. You see the last facts are only for marketing and uninteresting. > Does it work for me? > What about sim card and smart card? I s there any limitation on it? Well, usually a SIM card is (at the moment) quite different from a smart card which you can use wit GlobalPlatform. OpenPlatform is GlobalPlatform in a previuos version. GlobalPlatform is a management standard for installing applications an a smart card. The smart card must supprot this standard. Usually Java Card a sprogrammign language is used on these cards. So look for a Java Card, this should be what you want. All Java Cards houdl sipport Open/GlobalPlatform. There a NFC Near Field Communication phones which have an integrated smart card, calles SE, secure element. In the future maybe the SIM card will contain such an SE element, but at the moment no SIM card is known to me. So yyou cannot install a Java Card appelt on it for now. (Verify this if there are already SIM cards which can do this). The company Venyon migth be the first which makes it possible. Regards, Karsten > > > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > > > ------------------------------------------------------------------------ > > _______________________________________________ > Globalplatform-users mailing list > Glo...@li... > https://lists.sourceforge.net/lists/listinfo/globalplatform-users |
From: hkarahan <Hak...@es...> - 2008-10-28 09:39:31
|
Hi Karsten, Karsten Ohme wrote: > Hi, > > hkarahan schrieb: > > Hi, > > Sorry for the long delay you where sorted into my spam folder. > > > I am trying to interact with an installed applet on the Nokia 6131. > Is > > this possible through GPShell? Is there some "run"-command or > something > > Well, only rudimentary. There is the send_apdu command. See the > README > fiel. So you can write a script file with some send_apdu commands and > > talk to the card. > > send_apdu -sc 0 -APDU xxx // Send APDU xxx without secure channel > send_apdu_nostop -sc 0 -APDU xxx // Does not stop in case of an > error > > > > similar? Consider for example the HelloWorld.cap which comes with > > GPShell 1.4.2, is there a way to really make it output something? > > You get APDU reponse messages from the card. It should be possibel to > use the outcome of gpshell also in script files. If an error occurs > you can ask for the return status (0 or 1). > > gpshell reads by default from stdin if no script file is given. So > you > can also use it directly under a bash gpshell < send_apdu -APDU ... > > Best Regards, > Karsten I figured that out by now, but thanks for your reply anyway. Best Regards, Hakan Disclaimer: http://www.kuleuven.be/cwis/email_disclaimer.htm |
From: Karsten O. <kar...@go...> - 2008-10-28 02:42:40
|
Hi, hkarahan schrieb: > Hi, Sorry for the long delay you where sorted into my spam folder. > I am trying to interact with an installed applet on the Nokia 6131. Is > this possible through GPShell? Is there some "run"-command or something Well, only rudimentary. There is the send_apdu command. See the README fiel. So you can write a script file with some send_apdu commands and talk to the card. send_apdu -sc 0 -APDU xxx // Send APDU xxx without secure channel send_apdu_nostop -sc 0 -APDU xxx // Does not stop in case of an error > similar? Consider for example the HelloWorld.cap which comes with > GPShell 1.4.2, is there a way to really make it output something? You get APDU reponse messages from the card. It should be possibel to use the outcome of gpshell also in script files. If an error occurs you can ask for the return status (0 or 1). gpshell reads by default from stdin if no script file is given. So you can also use it directly under a bash gpshell < send_apdu -APDU ... Best Regards, Karsten > > Thank you very much. > > Best regards, > Hakan > > Disclaimer: http://www.kuleuven.be/cwis/email_disclaimer.htm > > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Globalplatform-users mailing list > Glo...@li... > https://lists.sourceforge.net/lists/listinfo/globalplatform-users > > |
From: Karsten O. <kar...@go...> - 2008-10-26 21:55:16
|
Hi, ehsan taheri schrieb: > hello > I want to by a smart card and a sim card and try to load my java applets > in it and I have some questions. > > I know that the smart card communication protocol is APDU. > I have heard many other names such as global platform, open platform, > OCF, PC/SC and ... > I think these must be protocols and APIs for the communication between > PC and Smart card. > > Now I don't really know what kind of smart card and reader I need to buy. > > I have found one smart card available in my country. it supports : ISO > 7816, ISO 7816 is a ciommunication protocol defining electrical stuff and the mentioned APDU format. Every smart card should speak it. PC/SC is a standard for talking to card reader for reading smart cards. It should be supported by every reader. If the reader or card does not comply with the above standards fon't hesitate and throw it away. > PC/SC, Microsoft WHQL, FCC, CE and RoHS Well, FCC is radio communication and censorship authorities in the US, CE is a liberal version of this for Europe. Microsoft WHQL is for Windows driver certification. You see the last facts are only for marketing and uninteresting. > Does it work for me? > What about sim card and smart card? I s there any limitation on it? Well, usually a SIM card is (at the moment) quite different from a smart card which you can use wit GlobalPlatform. OpenPlatform is GlobalPlatform in a previuos version. GlobalPlatform is a management standard for installing applications an a smart card. The smart card must supprot this standard. Usually Java Card a sprogrammign language is used on these cards. So look for a Java Card, this should be what you want. All Java Cards houdl sipport Open/GlobalPlatform. There a NFC Near Field Communication phones which have an integrated smart card, calles SE, secure element. In the future maybe the SIM card will contain such an SE element, but at the moment no SIM card is known to me. So yyou cannot install a Java Card appelt on it for now. (Verify this if there are already SIM cards which can do this). The company Venyon migth be the first which makes it possible. Regards, Karsten > > > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > > > ------------------------------------------------------------------------ > > _______________________________________________ > Globalplatform-users mailing list > Glo...@li... > https://lists.sourceforge.net/lists/listinfo/globalplatform-users |
From: ehsan t. <eh_...@ya...> - 2008-10-26 15:18:32
|
hello I want to by a smart card and a sim card and try to load my java applets in it and I have some questions. I know that the smart card communication protocol is APDU. I have heard many other names such as global platform, open platform, OCF, PC/SC and ... I think these must be protocols and APIs for the communication between PC and Smart card. Now I don't really know what kind of smart card and reader I need to buy. I have found one smart card available in my country. it supports : ISO 7816, PC/SC, Microsoft WHQL, FCC, CE and RoHS Does it work for me? What about sim card and smart card? I s there any limitation on it? |
From: hkarahan <Hak...@es...> - 2008-10-20 12:58:56
|
Hi, I am trying to interact with an installed applet on the Nokia 6131. Is this possible through GPShell? Is there some "run"-command or something similar? Consider for example the HelloWorld.cap which comes with GPShell 1.4.2, is there a way to really make it output something? Thank you very much. Best regards, Hakan Disclaimer: http://www.kuleuven.be/cwis/email_disclaimer.htm |
From: Savio D. <sav...@ya...> - 2008-09-22 13:58:54
|
> Mmmh, but still strange. Because it has found under > readerNumber 0 it > also found the OMNIKEY CardMan 5x21-CL 0. So, that means > the one > registered reader in the system does actually not exist? > Wrong > registration in Windows? It is still listed as reader in > other software? > > Regards, > Karsten > Hi Karsten, The problem lies on the Omnikey reader configuration. It usually supports T=0 and T=1 protocols. But if I use the NFC Handy the mifare cards are not recognized as T=CL is not supported by the device rather it is emulated by the Synchronous card API provided by Omnikey. To use this feature one has to enter a new registers key called ControlFlags inside HKEY_LOCAL_MACHINE-CurrentControlSet-Control-Cardman-RFID and give a Dword value of 4. Then the reader is able to read the ATR of the NFC. I have a feeling this creates a new registry entry which is not visible under the name "OMNIKEY Cardman 5x21-CL 0". I may be wrong, but I did the above steps to read the NFC using the reader in Nokia 6131 SDK. cheers Dom |
From: Karsten O. <kar...@go...> - 2008-09-22 13:41:28
|
Savio Domnic schrieb: > Hi Karsten, > It is the new ones from Omnikey website for the 5321 reader. I did figure out the problem meanwhile. I got one piece of script working now :) > > > mode_211 > enable_trace > establish_context > card_connect -readerNumber 2 > open_sc -security 3 -keyver 42 -mac_key 404142434445464748494a4b4c4d4e4f -enc_key 404142434445464748494a4b4c4d4e4f -kek_key 404142434445464748494a4b4c4d4e4f > get_status -element 20 > card_disconnect > release_context > > > Instead of using the name of the reader, I used the number and in fact the Omnikey reader registers two readers on the registry. > > 1) OMNIKEY CardMan 5x21 0 which is reader number 1 > 2) OMNIKEY CardMan 5x21-CL 0 which is reader number 2 > > Secondly, I was trying to select an AID which was not existing. Mmmh, but still strange. Because it has found under readerNumber 0 it also found the OMNIKEY CardMan 5x21-CL 0. So, that means the one registered reader in the system does actually not exist? Wrong registration in Windows? It is still listed as reader in other software? Regards, Karsten > > The above script listed all the AID's on the NFC 6131 using the Omnikey cardman 5321 reader. > > Thanks a lot for your timely help guys and I start to like GPShell now :) > cheers > Enya > --- On Mon, 9/22/08, Karsten Ohme <kar...@go...> wrote: > >> From: Karsten Ohme <kar...@go...> >> Subject: Re: [Globalplatform-users] Installing Applets using GPShell on NFC6131 >> To: sav...@ya... >> Cc: glo...@li... >> Date: Monday, September 22, 2008, 5:20 AM >> Savio Domnic schrieb: >>> Dear Karsten, >>> I tried it using security level 1, but there seems to >> be no change.. >> >> Are your drivers up to date for the Omnikey? >> >> Regards, >> Karsten >>> >>> > > > > > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Globalplatform-users mailing list > Glo...@li... > https://lists.sourceforge.net/lists/listinfo/globalplatform-users > > |
From: Savio D. <sav...@ya...> - 2008-09-22 08:05:47
|
Hi Karsten, It is the new ones from Omnikey website for the 5321 reader. I did figure out the problem meanwhile. I got one piece of script working now :) mode_211 enable_trace establish_context card_connect -readerNumber 2 open_sc -security 3 -keyver 42 -mac_key 404142434445464748494a4b4c4d4e4f -enc_key 404142434445464748494a4b4c4d4e4f -kek_key 404142434445464748494a4b4c4d4e4f get_status -element 20 card_disconnect release_context Instead of using the name of the reader, I used the number and in fact the Omnikey reader registers two readers on the registry. 1) OMNIKEY CardMan 5x21 0 which is reader number 1 2) OMNIKEY CardMan 5x21-CL 0 which is reader number 2 Secondly, I was trying to select an AID which was not existing. The above script listed all the AID's on the NFC 6131 using the Omnikey cardman 5321 reader. Thanks a lot for your timely help guys and I start to like GPShell now :) cheers Enya --- On Mon, 9/22/08, Karsten Ohme <kar...@go...> wrote: > From: Karsten Ohme <kar...@go...> > Subject: Re: [Globalplatform-users] Installing Applets using GPShell on NFC6131 > To: sav...@ya... > Cc: glo...@li... > Date: Monday, September 22, 2008, 5:20 AM > Savio Domnic schrieb: > > Dear Karsten, > > I tried it using security level 1, but there seems to > be no change.. > > Are your drivers up to date for the Omnikey? > > Regards, > Karsten > > > > > > |
From: Karsten O. <kar...@go...> - 2008-09-22 03:27:47
|
Savio Domnic schrieb: > Dear Karsten, > I tried it using security level 1, but there seems to be no change.. > > > >> For C-MAC: See the README of GPShell (-security 1) >>> ---------- > > This following output is when I did not place any card on the reader. > > > C:\dev\Nokia\GPShell-1.4.2\GPShell-1.4.2>gpshell helloinstallgp211.txt > mode_211 > enable_trace > establish_context > card_connect -readerNumber 0 > * reader name OMNIKEY CardMan 5x21-CL 0 > card_connect() returns 0x80100069 (The smart card has been removed, so that further communication is not possible. > ) > select -AID a000000007000000 > Command --> 00A4040008A000000007000000 > Wrapped command --> 00A4040008A000000007000000 > select_application() returns 0x00000006 (The handle is invalid. > ) > > > > > here I place the NFC on the reader and the result is bit different.. > > > C:\dev\Nokia\GPShell-1.4.2\GPShell-1.4.2>gpshell helloinstallgp211.txt > mode_211 > enable_trace > establish_context > card_connect -readerNumber 0 > * reader name OMNIKEY CardMan 5x21-CL 0 > select -AID a000000007000000 > Command --> 00A4040008A000000007000000 > Wrapped command --> 00A4040008A000000007000000 > select_application() returns 0x0000001F (A device attached to the system is not functioning. > ) That means that there seems to be a problem at the communication level. Try another APDU tool, if think with Omnikey is shipped one or try this: http://www.topshareware.com/companies/3557-1/scardsoft.htm Manually execute a SELECT command: 00A4040008A000000007000000 If this is wokring then GPShell has a communication problem, this would be strange. Karsten > > C:\dev\Nokia\GPShell-1.4.2\GPShell-1.4.2> > -------------------------------- > > what could be that I am doing wrong.?! > Is the AID very important..I changed it to a000000007000000 from a000000003000000 as there seems to be an application existing on the default NFC phone with this ID and the unlock midlet readme says not to delete this AID..so I thought I must not rewrite it either...I didnt change anything on the applet.. > > your help is highly appreciated guys.. > thanks > Enya > > > > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Globalplatform-users mailing list > Glo...@li... > https://lists.sourceforge.net/lists/listinfo/globalplatform-users > > |
From: Karsten O. <kar...@go...> - 2008-09-22 03:20:54
|
Savio Domnic schrieb: > Dear Karsten, > I tried it using security level 1, but there seems to be no change.. Are your drivers up to date for the Omnikey? Regards, Karsten > > > >> For C-MAC: See the README of GPShell (-security 1) >>> ---------- > > This following output is when I did not place any card on the reader. > > > C:\dev\Nokia\GPShell-1.4.2\GPShell-1.4.2>gpshell helloinstallgp211.txt > mode_211 > enable_trace > establish_context > card_connect -readerNumber 0 > * reader name OMNIKEY CardMan 5x21-CL 0 > card_connect() returns 0x80100069 (The smart card has been removed, so that further communication is not possible. > ) > select -AID a000000007000000 > Command --> 00A4040008A000000007000000 > Wrapped command --> 00A4040008A000000007000000 > select_application() returns 0x00000006 (The handle is invalid. > ) > > > > > here I place the NFC on the reader and the result is bit different.. > > > C:\dev\Nokia\GPShell-1.4.2\GPShell-1.4.2>gpshell helloinstallgp211.txt > mode_211 > enable_trace > establish_context > card_connect -readerNumber 0 > * reader name OMNIKEY CardMan 5x21-CL 0 > select -AID a000000007000000 > Command --> 00A4040008A000000007000000 > Wrapped command --> 00A4040008A000000007000000 > select_application() returns 0x0000001F (A device attached to the system is not functioning. > ) > > C:\dev\Nokia\GPShell-1.4.2\GPShell-1.4.2> > -------------------------------- > > what could be that I am doing wrong.?! > Is the AID very important..I changed it to a000000007000000 from a000000003000000 as there seems to be an application existing on the default NFC phone with this ID and the unlock midlet readme says not to delete this AID..so I thought I must not rewrite it either...I didnt change anything on the applet.. > > your help is highly appreciated guys.. > thanks > Enya > > > > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Globalplatform-users mailing list > Glo...@li... > https://lists.sourceforge.net/lists/listinfo/globalplatform-users > > |
From: Savio D. <sav...@ya...> - 2008-09-21 19:56:01
|
Dear Karsten, I tried it using security level 1, but there seems to be no change.. > For C-MAC: See the README of GPShell (-security 1) > > ---------- This following output is when I did not place any card on the reader. C:\dev\Nokia\GPShell-1.4.2\GPShell-1.4.2>gpshell helloinstallgp211.txt mode_211 enable_trace establish_context card_connect -readerNumber 0 * reader name OMNIKEY CardMan 5x21-CL 0 card_connect() returns 0x80100069 (The smart card has been removed, so that further communication is not possible. ) select -AID a000000007000000 Command --> 00A4040008A000000007000000 Wrapped command --> 00A4040008A000000007000000 select_application() returns 0x00000006 (The handle is invalid. ) here I place the NFC on the reader and the result is bit different.. C:\dev\Nokia\GPShell-1.4.2\GPShell-1.4.2>gpshell helloinstallgp211.txt mode_211 enable_trace establish_context card_connect -readerNumber 0 * reader name OMNIKEY CardMan 5x21-CL 0 select -AID a000000007000000 Command --> 00A4040008A000000007000000 Wrapped command --> 00A4040008A000000007000000 select_application() returns 0x0000001F (A device attached to the system is not functioning. ) C:\dev\Nokia\GPShell-1.4.2\GPShell-1.4.2> -------------------------------- what could be that I am doing wrong.?! Is the AID very important..I changed it to a000000007000000 from a000000003000000 as there seems to be an application existing on the default NFC phone with this ID and the unlock midlet readme says not to delete this AID..so I thought I must not rewrite it either...I didnt change anything on the applet.. your help is highly appreciated guys.. thanks Enya |