9C02 is auth failed, like it didn't care for your default admin pin.

#define MSC_AUTH_FAILED 0x9C02

I'll take a look at the APDU and make sure it is right and get back
to you.

Thanks,
Dave




On Feb 3, 2004, at 1:45 AM, Bo Wu wrote:

Hi Marcus,

Instead of using the muscleTool, I tried to send APDUs to the card in JCOPTOOLS, I got following returns:

1. The first time, I always got the 6F00.
2. After the frist time, I always got the 9C02.
(Pls see the below log)

When I used the muscleTool, I got the same results.

My Card is JCOP 30/16. We bought it at least several months ago.

You will be appreciated very much if you can help me solve this problem.

Thank you in advance.

Bo Wu

============================
1st time
============================
cm> card-auth
/atr

--Waiting for card...

ATR=3B E6 00 FF 81 31 FE 45 4A 43 4F 50 30 33 07 ;....1.EJCOP03.

/card

--Waiting for card...

ATR=3B E6 00 FF 81 31 FE 45 4A 43 4F 50 30 33 07 ;....1.EJCOP03.

=> 00 A4 04 00 07 A0 00 00 00 03 00 00 00 .............

(91 msec)

<= 6F 18 84 07 A0 00 00 00 03 00 00 A5 0D 9F 6E 06 o.............n.

4A 5A 12 05 03 00 9F 65 01 FE 90 00 JZ.....e....

Status: No Error

set-key ${CURRKEYS}

print-key

255/1/DES-ECB/404142434445464748494A4B4C4D4E4F

255/2/DES-ECB/404142434445464748494A4B4C4D4E4F

255/3/DES-ECB/404142434445464748494A4B4C4D4E4F

init-update ${CURR_IUSET}

=> 80 50 00 00 08 1B ED 65 E0 1F B1 55 27 00 .P.....e...U'.

(150 msec)

<= 00 00 11 22 33 44 55 66 EC 05 FF 01 87 6A B0 3A ..."3DUf.....j.:

6F C4 61 67 C0 F9 8F 64 2D A4 ED 60 90 00 o.ag...d-..`..

Status: No Error

ext-auth

=> 84 82 00 00 10 A0 1A 9B B4 F1 35 12 8C 0E 44 2F ..........5...D/

7E 33 DA F2 2D ~3..-

(61 msec)

<= 90 00 ..

Status: No Error

cm> card-info
=> 80 F2 80 00 02 4F 00 00 .....O..

(160 msec)

<= 07 A0 00 00 00 03 00 00 01 1E 90 00 ............

Status: No Error

=> 80 F2 40 00 02 4F 00 00 [EMAIL PROTECTED]

(50 msec)

<= 06 A0 00 00 00 01 01 07 00 90 00 ...........

Status: No Error

=> 80 F2 20 00 02 4F 00 00 .. ..O..

(160 msec)

<= 05 A0 00 00 00 01 01 00 07 A0 00 00 00 62 01 01 .............b..

01 00 07 A0 00 00 00 62 00 01 01 00 07 A0 00 00 .......b........

00 62 01 02 01 00 07 A0 00 00 00 62 02 01 01 00 .b.........b....

07 A0 00 00 00 03 00 00 01 00 05 31 50 41 59 2E ...........1PAY.

00 00 06 A0 00 00 00 03 10 00 00 07 A0 00 00 00 ................

03 60 10 00 00 90 00 .`.....

Status: No Error


Card Manager AID : A0000000030000

Card Manager state : OP_READY


Application: SELECTABLE (--------) A00000000101

Load File : LOADED (--------) A000000001

Load File : LOADED (--------) A0000000620101 (javacard.framework)

Load File : LOADED (--------) A0000000620001 (java.lang)

Load File : LOADED (--------) A0000000620102 (javacard.security)

Load File : LOADED (--------) A0000000620201 (javacardx.crypto)

Load File : LOADED (--------) A0000000030000 (visa.openplatform)

Load File : DELETED (--------) "1PAY." (PSE)

Load File : DELETED (--------) A00000000310 (VSDC)

Load File : DELETED (--------) A0000000036010 (VisaCash)

cm> /select A00000000101
=> 00 A4 04 00 06 A0 00 00 00 01 01 00 ............

(120 msec)

<= 90 00 ..

Status: No Error

cm> /send B02A000038084D7573636C6530300401083030303030303030083030303030303030050208303030303030303008303030303030303000001BB8000201
=> B0 2A 00 00 38 08 4D 75 73 63 6C 65 30 30 04 01 .*..8.Muscle00..

08 30 30 30 30 30 30 30 30 08 30 30 30 30 30 30 .00000000.000000

30 30 05 02 08 30 30 30 30 30 30 30 30 08 30 30 00...00000000.00

30 30 30 30 30 30 00 00 1B B8 00 02 01 000000.......

(932 msec)

<= 6F 00 o.

Status: No precise diagnosis

cm>

===================================
2nd time
===================================
- /mode continuous=on
- /mode trace=on
- /terminal ${CURR_TERM}
--Opening terminal

> /atr
--Waiting for card...

ATR=3B E6 00 FF 81 31 FE 45 4A 43 4F 50 30 33 07 ;....1.EJCOP03.

T=1, II=0/PI1=0, N=255, IFSC=254, BWI=4/CWI=5, Hist="JCOP03"

> /card
--Waiting for card...

ATR=3B E6 00 FF 81 31 FE 45 4A 43 4F 50 30 33 07 ;....1.EJCOP03.

T=1, II=0/PI1=0, N=255, IFSC=254, BWI=4/CWI=5, Hist="JCOP03"

=> 00 A4 04 00 07 A0 00 00 00 03 00 00 00 .............

(90 msec)

<= 6F 18 84 07 A0 00 00 00 03 00 00 A5 0D 9F 6E 06 o.............n.

4A 5A 12 05 03 00 9F 65 01 FE 90 00 JZ.....e....

Status: No Error

cm> 00 A4 04 00 07 A0 00 00 00 03 00 00 00
No such command: 00

cm> set-key 255/1/DES-ECB/404142434445464748494a4b4c4d4e4f
cm> set-key 255/2/DES-ECB/404142434445464748494a4b4c4d4e4f
cm> set-key 255/3/DES-ECB/404142434445464748494a4b4c4d4e4f
cm> set-key 1/3/DES-ECB/505152535455565758595a5b5c5d5e5f
cm> set-key 1/1/DES-ECB/707172737475767778797a7b7c7d7e7f
cm> set-key 1/2/DES-ECB/606162636465666768696a6b6c6d6e6f
cm> init-update 255
=> 80 50 00 00 08 A4 BF 41 A8 CC F0 F9 4E 00 .P.....A....N.

(100 msec)

<= 00 00 11 22 33 44 55 66 EC 05 FF 01 2D 08 2D 53 ..."3DUf....-.-S

84 2B F8 83 8C 10 61 70 F1 E8 79 C1 90 00 .+....ap..y...

Status: No Error

cm> ext-auth
=> 84 82 00 00 10 9D 6F B1 69 1C 06 89 B0 C7 5C FD ......o.i.....\.

E8 DC 30 B8 65 ..0.e

(61 msec)

<= 90 00 ..

Status: No Error

cm> /select A00000000101
=> 00 A4 04 00 06 A0 00 00 00 01 01 00 ............

(40 msec)

<= 90 00 ..

Status: No Error

cm> /send B02A000038084D7573636C6530300401083030303030303030083030303030303030050208303030303030303008303030303030303000001BB8000201
=> B0 2A 00 00 38 08 4D 75 73 63 6C 65 30 30 04 01 .*..8.Muscle00..

08 30 30 30 30 30 30 30 30 08 30 30 30 30 30 30 .00000000.000000

30 30 05 02 08 30 30 30 30 30 30 30 30 08 30 30 00...00000000.00

30 30 30 30 30 30 00 00 1B B8 00 02 01 000000.......

(110 msec)

<= 9C 02 ..

Status: 0x9C02

cm>


Marcus Oestreicher wrote:

The current JCOP30's work. If I remember correctly, there has been a series of cards
with a bug in getExponent() on imported RSA keys which prevented
the musclecard applet to work.

If there is interest, I can try to dig out the work-around for these
cards.

Cheers,
Marcus

I already commented the "#if 0" and "#endif" in ccid-0.3.2/src/ccid.c. But
when I try to format the token, I got the "Formatting token [***] : Failed
(Unknown SW: 6F00)" message. But I can CONNECT the token after that, and
cannot verify the PIN. Pls see following log.


This is a problem with the applet now. I don't have an IBM JCOP 30 card.
I don't know if the applet is supposed to work on it. Someone wants to
report a success with this card and the applet?

Bye,




_______________________________________________
Muscle mailing list
[EMAIL PROTECTED]
http://lists.musclecard.com/mailman/listinfo/muscle





_______________________________________________
Muscle mailing list
[EMAIL PROTECTED]
http://lists.musclecard.com/mailman/listinfo/muscle


<x-tad-bigger>*****************************************************************************
David Corcoran <[EMAIL PROTECTED]>
Identity Alliance [http://www.identityalliance.com]
Smart Cards, Biometrics, Training, Identity Management
*****************************************************************************
</x-tad-bigger>

Reply via email to