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. |