Java Card: How to load SIM applet to real smart card?
Asked Answered
G

3

10

I developed a Java Card applet in Eclipse and obtained a cap file. Then i used jcManager – Java Secure Card Manager to load that file to my smart cards. I have two type of smart cards:

  1. Contact, JCOP 2.1 36K
  2. Contactless, JCOP 2.1

My smart card reader is: SDI011 Dual Interface Reader.

Also to developing SIM applet, i'm using Gemalto Developer Suite [3.6]. That IDE has a GSM emulator and my SIM applet works on it well. It gives cap, jar, jac, exp.. files of applet.

Everything is fine so far but i want to load that cap file to my contact or contactless Java Card [because i have no SIM card to work on], and then send-receive APDU messages.

Is it possible? If yes, how? How to load my SIM applet to real smart card [not SIM card]?

Guillermoguilloche answered 26/6, 2013 at 14:10 Comment(0)
C
7

It might not work because the SIM application might have dependencies to APIs that are not present in the JCOP cards (for instance ETSI 102 705). But then it is worth trying. Make sure that the file format is compatible between the tools (a cap file is not always a cap file by the way; a real cap file is a zip, some tools prefer IJC files). Try using the cap file from the Gemalto tool in the jcManager. If it does not work you can try GPShell. The main challenge is to have the keys to your target, and then the right tool.

Calabresi answered 26/6, 2013 at 16:16 Comment(0)
J
1

Uploading a .cap file will already fail if there is a slight difference in the API. In Java class files directly specify the method to call by name. In Java Card however, the converter will remove the dynamic binding.

If you want to upload to a different platform, then please at least run the generated .class files through the converter.

Josephinejosephson answered 3/7, 2013 at 22:45 Comment(0)
S
1

If your card os supports the OTA then you can try loading the applet via OTA. You can also delete via OTA. I have never used gemalto tools so I am only giving you a way you can try. Refer to GP document or, 3gpp ts 03.48. For OTA.

Striptease answered 30/1, 2020 at 8:51 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.