Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to install applet on smart card using java

Is there any way to load .cap(converted applet) design in java card in to java and then install applet from that .cap(converted applet) file into smart card?
I am having .cap file that is converted applet file and i want to install applet present in that .cap file.
First tell me how to load .cap file in java.
In java i am using javax.smartcardio package to interact with smart card and apdu commands to interact with applet installed in smart card.
I am using:

  1. smart card type = contact card
  2. using JavaCard2.2.2 with jcop using apdu
like image 785
Sachin D Avatar asked Oct 09 '22 03:10

Sachin D


1 Answers

On every programmable JavaCard there is a pre-loaded applet called "CardManager". This applet has to be used for uploading and installing new applets.

In most cases the used SDK of your JavaCard comes with libraries that encapsulate the necessary steps for selecting the CardManager (including necessary authentication), loading and installing an applet. It bases on the install and load commands defined in the GlobalPlatform standard.

The necessary steps/commands are for example explained here: Installing JavaCard Applet into real SmartCard. However the concrete authentication sequence (CardManager AID, used authentication key) for your card depends on what card type you have.

like image 79
Robert Avatar answered Oct 13 '22 10:10

Robert