D.L.Kumar wrote:
> Hi all,
> Thanks for the replies.
> I am paralley working on both GPShell 1.2 and CFlexLoader.
> I want to communicate with the smart card.My reader is SCR331 and cards
> are Java cards.With GPShell I want to load the muscle card applet on to
> the Java card.
> The cards are Open Platform cards only.
> I executed BundleTool.The output is as follows:
> -===========================================================-
> [EMAIL PROTECTED] sbin]# ./bundleTool
> Select the appropriate token driver:
> ------------------------------------
>   1.     mscMuscleCard.bundle
>   2.     genericPlugin.bundle
> ------------------------------------
> Enter the number: 1
> Insert your token in: SCR331 USB Smart Card Reader 00 00
> Token support updated successfully 
> -===============================================================-
> 
> The ATR is mentioned in the Info.! plist file and when ever i run bundle
> tool it is writing ATR in to this file repeatedly.
>  The file is as follows:
> -=============================================================-
> <string>MUSCLE</string>
>         <key>spProductName</key>
>         <string>MuscleCard Applet</string>
>         <key>spAtrValue</key>
>         <string>3B7F1800000031C0739E010B6452D90400829000</string>
>         <string>3B7F1800000031C0739E010B6452D90400829000</string>
>         <string>3B7F1800000031C0739E010B6452D90400829000</string>
>         <string>3B7F1800000031C0739E010B6452D90400829000</string>
>         <string>3B7F1800000031C0739E010B6452D90400829000</string>
>         <string>3B7F1800000031C0739E010B6452D90400829000</string>
>         <string>3B6900002494010301000100A9</string>
>         <string>3B7F1800000031C0739E010B6452D90400829000</string>
>         <string>3B751300009C02020102</string>
>         <string>3B6500009C02020102</string>
>         <string>3B3B94008065AF030D0174830F9000</string>
>         <string>3F6D000080318065B00501025E83009000</string>
>         <key>spDefaultApplication</key>
>         <string>A00000000101</string>
> </dict>
> -==================================================================-
> If i try to format the card also it is saying to list the tokens.
> the output is as follows..(provided in muscle tools)
> -===========================================================-
> muscle > format
> ERR: List Tokens First ! (0x804D871 Unknown SW: 804D871)
> muscle >

Shut down the pcscd daemon. Execute it on a second shell with pcscd -f
-a -d. Maybe this can clarify it. I have not found the error code 0x804D871.

> -=============================================================-
> While installing GPshell 1.2.0 and globalplatform 2.0.1 ,I am not
> getting any errors.
> But when i run gpshell .I am getting the following error.
>  
> -==========================================================
> [EMAIL PROTECTED] gpshell-1.2.0]# /usr/local/bin/gpshell <list.txt
> mode_201
> enable_trace
> establish_context
> card_connect
> select -AID a0000000030000
> --> 00A4040007A0000000030000
> <-- 6F188407A0000000030000A50D9F6E061442000793479F6501FF9000
> open_sc -security 1 -keyind 0 -keyver 0 -mac_key
> 404142434445464748494a4b4c4d4e4f -enc_key
> 404142434445464748494a4b4c4d4e4f // Open secure channel
> --> 8050000008C19F8F9DDD263F8600
> <-- 0000434100025787600201010890682AAF91236801A18985FBA845AC9000

Strange. The first part succeeds (last two bytes 9000 means success). Do
not do this step to often or your card is locked!
You must have a successful authentication before your card gets locked.
(10 tries or so.)

> mutual_authentication() returns 0x80302000 (The verification of the card
> cryptogram failed.)

Please execute GPShell with "export GLOBALPLATFORM_DEBUG=1" or "set
instead of export" and give the log file output. (Please read the README
of GlobalPlatform, you can change the log file with environment variable
GLOBALPLATFORM_LOGFILE).

Does it also fail with CFlexLoader?

> -=======================================================-
> To run the GPShell Do i require any other extra packages.

Try the CVS version of GlobalPlatform Library and GPShell. But I do not
believe that it helps. What card are you using? Some manufacturers have
strange implementations, which are not full compatible for obscure reasons.

Karsten
>  
> Thanks in advance.
> D.L.Kumar
> 
> ------------------------------------------------------------------------
> Jiyo cricket on Yahoo! India cricket
> <http://us.rd.yahoo.com/mail/in/mailcricket/*http://in.sports.yahoo.com/cricket/>
> Yahoo! Messenger Mobile
> <http://us.rd.yahoo.com/mail/in/mailmobilemessenger/*http://in.mobile.yahoo.com/new/messenger/>
> Stay in touch with your buddies all the time.
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Muscle mailing list
> [email protected]
> http://lists.drizzle.com/mailman/listinfo/muscle

_______________________________________________
Muscle mailing list
[email protected]
http://lists.drizzle.com/mailman/listinfo/muscle

Reply via email to