Skip to Main Content

Java Card

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to upload a signed CAP file into a SSD with DAP

Ranjini HKApr 2 2015 — edited Apr 2 2015

Good day.

Hi All, I want to upload the signed cap file into the SSD with DAP. But my upload is failed. I Also want to know the Installing method.

Below are the steps i followed to create SSD with DAP and cap siging.

cm> /card

cm> auth

cm> ls

..

Card Manager AID   :  A000000151000000

Card Manager state :  OP_READY

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

     Module    :                        A000000151535041

cm> install -b -s -i A000000151535041 A0000001515350 A000000151535041

cm> /select A000000151535041

cm> set-key 255/1/DES-ECB/404142434445464748494a4b4c4d4e4f 255/2/DES-ECB/404142434445464748494a4b4c4d4e4f 255/3/DES-ECB/404142434445464748494a4b4c4d4e4f

cm> auth

cm> set-key 1/1/DES-ECB/505152535455565758595a5b5c5d5e5f 1/2/DES-ECB/505152535455565758595a5b5c5d5e5f 1/3/DES-ECB/505152535455565758595a5b5c5d5e5f

cm> put-keyset 1

// input of RSA public key in the Security Domain

cm> put-pub-key --tokenpin 123456 115 "F:\my_pkcs12.p12"

cm> /card

cm> auth

cm> ls

Card Manager AID   :  A000000151000000

Card Manager state :  OP_READY

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

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

     Module    :                        A000000151535041

After personalizing the SSD, Signed the cap file for DAP geneation

cm> /cap-sign --tokenpin "123456" "E:\test.cap" A000000151535041 "F:\my_pkcs12.p12"

After signing the cap , i tried to upload the cap file :

cm> upload -s A000000151535041   "E:\test.cap"

ERROR : 0x6985 (conditions not satisfied)

So please help me in resolving this issue, & let me know where m going wrong.Please let me know the steps to UPLOAD & INSTALL the applet into the SSD.

Comments

fac586
Answer

I haven't figured out how to do it using declarative Open Region DAs, or the documented API. From hints here and here I've got a solution using the underlying widget methods.
Modify the card link icon HTML Expression to use a data attribute instead of an id:

<a href="#" class="t-open-popup" data-empno="#EMPNO#">
 <span class="fa fa-user" aria-hidden="true"></span>
</a>

This provides JavaScript with a simpler, more direct way to access the unique card key value.
Change the DA Execute JavaScript Code:

var empno = this.triggeringElement.dataset.empno,
    o = { autoOpen: true,
          parentElement: "[data-empno=" + empno + "]",
          callout: true,
          relativePosition: "after" };

$('#showDetails').popup(o);

See demo on page 586 of your app.

Marked as Answer by Veerendra Patil · May 20 2021
1 - 1
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Apr 30 2015
Added on Apr 2 2015
0 comments
1,186 views