From: Colin O'F. <co...@ne...> - 2013-03-02 00:03:56
|
Hello, Just thought I'd update this thread. My vendor sent me two new cards, which were personalized, so I think that was the ultimate solution. But when I try doing anything I get an error: mode_211 enable_trace establish_context card_connect -readerNumber 1 select -AID a000000003000000 Command --> 00A4040008A000000003000000 Wrapped command --> 00A4040008A000000003000000 Response <-- 6F658408A000000003000000A5599F6501FF9F6E06479100783300734A06072A864886FC6B01 600C060A2A864886FC6B02020101630 906072A864886FC6B03640B06092A864886FC6B040215650B06092B8510864864020103660C0 60A2B060104012A026E01029000 open_sc -security 1 -keyind 0 -keyver 0 -mac_key 404142434445464748494a4b4c4d4e4f -enc_key 404142434445464748494a4b4c4d4e4f // Open secure channel Command --> 80CA006600 Wrapped command --> 80CA006600 Response <-- 6985 GP211_get_secure_channel_protocol_details() returns 0x80206985 (6985: Command not allowed - Conditions of use not satisfied.) jcManager here (http://www.brokenmill.com/2010/03/java-secure-card-manager/) with the same settings worked fine, it's output was: Open terminal ... EstablishContext(): ... Wait for card in a certain reader ... Pick reader ... ********************** Selecting Card Manager *********************** -> 00 A4 04 00 08 A0 00 00 00 03 00 00 00 <- 6F 65 84 08 A0 00 00 00 03 00 00 00 A5 59 9F 65 01 FF 9F 6E 06 47 91 00 78 33 00 73 4A 06 07 2A 86 48 86 FC 6B 01 60 0C 06 0A 2A 86 48 86 FC 6B 02 02 01 01 63 09 06 07 2A 86 48 86 FC 6B 03 64 0B 06 09 2A 86 48 86 FC 6B 04 02 15 65 0B 06 09 2B 85 10 86 48 64 02 01 03 66 0C 06 0A 2B 06 01 04 01 2A 02 6E 01 02 90 00 ************ Init Update ************* -> 80 50 00 00 08 26 6C 8E 3C 10 69 39 05 <- 00 00 12 02 10 25 60 95 66 19 FF 02 00 02 59 8D D3 96 1B FD CC 97 F9 DF 4F 2A 6C E2 90 00 HostChallenge: 26 6C 8E 3C 10 69 39 05 CardChallenge: 59 8D D3 96 1B FD Card Calculated Card Cryptogram: CC 97 F9 DF 4F 2A 6C E2 Derivation Data is 01 82 00 02 00 00 00 00 00 00 00 00 00 00 00 00 Host Cryptogram Data (to encrypt) 00 02 59 8D D3 96 1B FD 26 6C 8E 3C 10 69 39 05 80 00 00 00 00 00 00 00 Card Cryptogram Data (to encrypt for verification) 26 6C 8E 3C 10 69 39 05 00 02 59 8D D3 96 1B FD 80 00 00 00 00 00 00 00 S_ENC: AD C1 16 3B A2 A1 47 FB B8 4B F4 4C 86 76 FB 7D AD C1 16 3B A2 A1 47 FB The Current session MAC key is 3E 06 B1 C8 FC FD 78 8A 57 3B 9A 98 89 D0 CA 50 The Current session DEK key is FC 01 09 6B 6D B1 3A DE E0 D4 CB 61 D0 3F D3 AA Encrypted CardCryptoGram is 4F FC F3 9B 4A 25 56 A2 1B 69 AA 91 D8 E3 D7 44 CC 97 F9 DF 4F 2A 6C E2 Encrypted HostCryptoGram is D8 F5 B8 41 93 59 A6 45 E1 2D 3A 9A 0A 03 13 CD 5F 64 BB 10 3F 4F 87 19 -> 84 82 03 00 10 5F 64 BB 10 3F 4F 87 19 21 48 9B A9 BF 0B F8 34 <- 90 00 Authenticated While I can use this other tool, if anyone has an idea why GPShell didn't work it might be useful for future users to note in the wiki and/or fix? Regards, -Colin From: Karsten Ohme [mailto:wid...@t-...] Sent: January-23-13 5:55 AM To: glo...@li... Subject: Re: [Globalplatform-users] JCOP V4.1 Card (NXP J2A040) Hi, I'm not familiar with the process. Maybe you can contact the people where you bought the card or the NXP or whoever is the manufacturer. I have corrected the error in the Wiki. The new wiki is on: https://sourceforge.net/p/globalplatform/wiki/GPShell/ SourceForge wanted to shut down the old wiki. At the moment the information should be the same on both wikis. BR, Karsten Am 23.01.2013 00:42, schrieb Colin O'Flynn: Hello, I have a J2A040 card which I was trying to get working. This was previously discussed it looked like in this thread: http://sourceforge.net/mailarchive/forum.php?thread_name=4E13B1D3.7050604%40 t-online.de <http://sourceforge.net/mailarchive/forum.php?thread_name=4E13B1D3.7050604%4 0t-online.de&forum_name=globalplatform-users> &forum_name=globalplatform-users . My results are basically identical to that. The results of the JCOP IDENTIFY command are: 04 31 00 33 00 00 00 00 4E 58 30 31 31 43 00 03 39 F8 73 6A 82 This suggests the card is not fused. The thread states that is bad, but the wiki the opposite way around (at http://sourceforge.net/apps/mediawiki/globalplatform/index.php?title=GPShell ). Is it bad the card isn't fused, and what should I do? They are brand new, but when I checked with the vendor they said the only key they knew of was the default keys (40 41 42 43 44 45 46 47 48 49 4a 4b 4c 4d 4e 4f). I'm new to the JavaCard world so not 100% sure of the next steps & would appreciate any guidance. Thanks for your help, -Colin O'Flynn ---------------------------------------------------------------------------- -- Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft MVPs and experts. ON SALE this month only -- learn more at: http://p.sf.net/sfu/learnnow-d2d _______________________________________________ Globalplatform-users mailing list Glo...@li... https://lists.sourceforge.net/lists/listinfo/globalplatform-users |