This discussion is archived
0 Replies Latest reply: Sep 12, 2013 12:03 AM by PraveenPT RSS

Query regarding delegated management

PraveenPT Explorer
Currently Being Moderated

Hi All,

 

I am trying to perform delegated management on JCOP 3.3.6.

below are the steps Im following:

 

1. Create a SSD with DAP and Delegated Management Privilege

2. Select SSD

3. Authenticate using ISD keys

4. Put DES key set into SSD

5. Put RSA public key

6. Select ISD

7. Authenticate and check card-info

No my SSD is in Personalized state.

 

But how to load the cap files into my SSD using Token verification?

How to generate the Tokens for load and install commands?

 

JShell Log:

 

/card

resetCard with timeout: 0 (ms)

--Waiting for card...

ATR=3B F9 13 00 00 81 31 FE 45 4A 43 4F 50 32 34 32    ;.....1.EJCOP242

    52 32 A3                                           R2.

IOCTL().

ATR:

         T = 1                  

=> 00 A4 04 00 09 A0 00 00 01 67 41 30 00 FF          .........gA0..

(932533 nsec)

<= 02 00 01 3B 00 00 00 00 4E 58 32 30 37 41 00 00    ...;....NX207A..

    00 6A 82                                           .j.

Status: File not found

=> 00 A4 04 00 08 A0 00 00 01 51 00 00 00 00          .........Q....

(2503 usec)

<= 6F 64 84 08 A0 00 00 01 51 00 00 00 A5 58 9F 65    od......Q....X.e

    01 FF 9F 6E 06 47 91 20 47 3B 00 73 49 06 07 2A    ...n.G. G;.sI..*

    86 48 86 FC 6B 01 60 0B 06 09 2A 86 48 86 FC 6B    .H..k.`...*.H..k

    02 02 02 63 09 06 07 2A 86 48 86 FC 6B 03 64 0B    ...c...*.H..k.d.

    06 09 2A 86 48 86 FC 6B 04 02 55 65 0B 06 09 2B    ..*.H..k..Ue...+

    85 10 86 48 64 02 01 03 66 0C 06 0A 2B 06 01 04    ...Hd...f...+...

    01 2A 02 6E 01 02 90 00                            .*.n....

Status: No Error

auth

=> 80 50 00 00 08 28 67 35 77 18 99 D8 AF 00          .P...(g5w.....

(3920 usec)

<= 00 00 74 74 6E 6E 6E 62 62 62 FF 02 00 2A 63 E6    ..ttnnnbbb...*c.

    01 5E 56 12 61 CC A6 84 24 5E 05 30 90 00          .^V.a...$^.0..

Status: No Error

=> 84 82 00 00 10 25 31 B6 28 81 74 5F 54 6E FA 9B    .....%1.(.t_Tn..

    44 2F B2 93 34                                     D/..4

(4049 usec)

<= 90 00                                              ..

Status: No Error

install -i A000000151535041 -s -b -e -q C9#() A0000001515350 A000000151535041

=> 80 E6 0C 00 20 07 A0 00 00 01 51 53 50 08 A0 00    .... .....QSP...

    00 01 51 53 50 41 08 A0 00 00 01 51 53 50 41 01    ..QSPA.....QSPA.

    E0 02 C9 00 00 00                                  ......

(13399 usec)

<= 00 90 00                                           ...

Status: No Error

/select A000000151535041

=> 00 A4 04 00 08 A0 00 00 01 51 53 50 41 00          .........QSPA.

(2192 usec)

<= 6F 64 84 08 A0 00 00 01 51 53 50 41 A5 58 9F 65    od......QSPA.X.e

    01 FF 9F 6E 06 47 91 20 47 3B 00 73 49 06 07 2A    ...n.G. G;.sI..*

    86 48 86 FC 6B 01 60 0B 06 09 2A 86 48 86 FC 6B    .H..k.`...*.H..k

    02 02 02 63 09 06 07 2A 86 48 86 FC 6B 03 64 0B    ...c...*.H..k.d.

    06 09 2A 86 48 86 FC 6B 04 02 55 65 0B 06 09 2B    ..*.H..k..Ue...+

    85 10 86 48 64 02 01 03 66 0C 06 0A 2B 06 01 04    ...Hd...f...+...

    01 2A 02 6E 01 02 90 00                            .*.n....

Status: No Error

auth

=> 80 50 00 00 08 99 5A A9 75 24 9E 67 AF 00          .P....Z.u$.g..

(3531 usec)

<= 00 00 74 74 6E 6E 6E 62 62 62 FF 02 00 2B A9 10    ..ttnnnbbb...+..

    6B A2 14 3F D8 79 5B 16 8B A6 68 34 90 00          k..?.y[...h4..

Status: No Error

=> 84 82 00 00 10 1B 04 08 9B 6C F6 7A C5 3B 75 E6    .........l.z.;u.

    84 E0 64 8D 61                                     ..d.a

(3766 usec)

<= 90 00                                              ..

Status: No Error

set-key 3/1/DES-ECB/404142434445464748494A4B4C4D4E50 3/2/DES-ECB/404142434445464748494A4B4C4D4E60 3/3/DES-ECB/404142434445464748494A4B4C4D4E70

put-keyset 3

=> 80 D8 00 81 43 03 80 10 1F 2D E4 D6 C8 50 9D FF    ....C....-...P..

    37 F6 F4 B4 1E 5B C3 1A 03 9C E9 99 80 10 1F 2D    7....[.........-

    E4 D6 C8 50 9D FF 5B 91 75 A5 1C 1B 3F C0 03 D9    ...P..[.u...?...

    5B 49 80 10 1F 2D E4 D6 C8 50 9D FF 1B 84 B2 41    [I...-...P.....A

    89 D7 2C 6F 03 EB C3 F2 00                         ..,o.....

(10609 usec)

<= 03 9C E9 99 D9 5B 49 EB C3 F2 90 00                .....[I.....

Status: No Error

put-key 115/1/RSA-PUB/0301000180ad97a22fe7cb29accc3a0b68844f0cb11d057ed8c80c5a4db856138030c419d0a27556902a939152ce79376b1cd0955ce4303bf7560c95230714c583ff8a8f12f1cf23d867e469773d15f0e708332651110cb615c8d373e86d57b5ffe7ff44bcc7690a4d68cbe07743b19879ac5beaeef6e1af133a1fd37b86a5339960b36e53

=> 80 D8 00 01 88 73 A1 80 AD 97 A2 2F E7 CB 29 AC    .....s...../..).

    CC 3A 0B 68 84 4F 0C B1 1D 05 7E D8 C8 0C 5A 4D    .:.h.O....~...ZM

    B8 56 13 80 30 C4 19 D0 A2 75 56 90 2A 93 91 52    .V..0....uV.*..R

    CE 79 37 6B 1C D0 95 5C E4 30 3B F7 56 0C 95 23    .y7k...\.0;.V..#

    07 14 C5 83 FF 8A 8F 12 F1 CF 23 D8 67 E4 69 77    ..........#.g.iw

    3D 15 F0 E7 08 33 26 51 11 0C B6 15 C8 D3 73 E8    =....3&Q......s.

    6D 57 B5 FF E7 FF 44 BC C7 69 0A 4D 68 CB E0 77    mW....D..i.Mh..w

    43 B1 98 79 AC 5B EA EE F6 E1 AF 13 3A 1F D3 7B    C..y.[......:..{

    86 A5 33 99 60 B3 6E 53 A0 03 01 00 01 00          ..3.`.nS......

(6607 usec)

<= 73 90 00                                           s..

Status: No Error

/card

resetCard with timeout: 0 (ms)

--Waiting for card...

ATR=3B F9 13 00 00 81 31 FE 45 4A 43 4F 50 32 34 32    ;.....1.EJCOP242

    52 32 A3                                           R2.

IOCTL().

ATR:

         T = 1                  

=> 00 A4 04 00 09 A0 00 00 01 67 41 30 00 FF          .........gA0..

(509884 nsec)

<= 02 00 01 3B 00 00 00 00 4E 58 32 30 37 41 00 00    ...;....NX207A..

    00 6A 82                                           .j.

Status: File not found

=> 00 A4 04 00 08 A0 00 00 01 51 00 00 00 00          .........Q....

(1390 usec)

<= 6F 64 84 08 A0 00 00 01 51 00 00 00 A5 58 9F 65    od......Q....X.e

    01 FF 9F 6E 06 47 91 20 47 3B 00 73 49 06 07 2A    ...n.G. G;.sI..*

    86 48 86 FC 6B 01 60 0B 06 09 2A 86 48 86 FC 6B    .H..k.`...*.H..k

    02 02 02 63 09 06 07 2A 86 48 86 FC 6B 03 64 0B    ...c...*.H..k.d.

    06 09 2A 86 48 86 FC 6B 04 02 55 65 0B 06 09 2B    ..*.H..k..Ue...+

    85 10 86 48 64 02 01 03 66 0C 06 0A 2B 06 01 04    ...Hd...f...+...

    01 2A 02 6E 01 02 90 00                            .*.n....

Status: No Error

auth

=> 80 50 00 00 08 C5 8E AA 8B 48 42 BB 87 00          .P.......HB...

(1736 usec)

<= 00 00 74 74 6E 6E 6E 62 62 62 FF 02 00 2C F2 EB    ..ttnnnbbb...,..

    6A AB 2C 79 61 01 17 78 14 7D D8 21 90 00          j.,ya..x.}.!..

Status: No Error

=> 84 82 00 00 10 60 CF 95 D7 27 70 E1 70 B3 AB DD    .....`...'p.p...

    28 A1 ED 84 2E                                     (....

(1803 usec)

<= 90 00                                              ..

Status: No Error

ls

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

(2934 usec)

<= 08 A0 00 00 01 51 00 00 00 01 9E 90 00             .....Q.......

Status: No Error

=> 80 F2 40 00 02 4F 00 00                            ..@..O..

(2753 usec)

<= 08 A0 00 00 01 51 53 50 41 0F E0 90 00             .....QSPA....

Status: No Error

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

(2906 usec)

<= 07 A0 00 00 01 51 53 50 01 00 01 08 A0 00 00 01    .....QSP........

    51 53 50 41 90 00                                  QSPA..

Status: No Error

 

 

Card Manager AID   :  A000000151000000

Card Manager state :  OP_READY

 

 

    Sec. Domain:PERSONALIZED (SVE-----) A000000151535041

    Load File  :      LOADED (--------) A0000001515350 

     Module    :                        A000000151535041

 

Regards,

Praveen P T