How to install applet on smart card using java

Is there any way to download. cap (converted applet) to a java card in java and then install the applet from this .cap file (converted applet) on a smart card?
I have a .cap file that converts an applet file and I want to install the applet in this .cap file.
First tell me how to upload a .cap file in java.
In java, I use the javax.smartcardio package to interact with the smart card and apdu commands to interact with the applet installed on the smart card.
I use:

  • smart card type = contact card
  • using JavaCard2.2.2 with jcop using apdu
+4
source share
1 answer

Each programmable JavaCard has a pre-loaded applet called CardManager. This applet should be used to download and install new applets.

In most cases, your JavaCard’s SDK comes with libraries that encapsulate the necessary steps to select CardManager (including the necessary authentication), download and install the applet. It is based on the install and download commands defined in the GlobalPlatform standard.

The following steps / commands are described: Installing the AppleCard Applet in a real smart card . However, the specific authentication sequence (CardManager AID, authentication key used) for your card depends on what type of card you have.

+3
source

Source: https://habr.com/ru/post/1387916/


All Articles