MrNoober
MrNoober

Reputation: 133

Deploy javacard applet on a Jcard

I have been working on a java card project for the last couple of days, and today I was given a card reader and a couple of cards, and was asked to deploy the applet on them and test them, I've basically no idea about how to deploy the app on the card, so far I've been workign with the CREF emulator, and all have been working great, now I'd like some guidance or advice from people who have already worked with this technology before, I've an Omnikey 3821 Reader, the cards I've are white and blank, I've no more information about them, I tried testing them with apps like:

they are detected, in JSmex it's detected as an unkown card (not as a java card), can anyone show me any other way to interact with the cards? Get more information about them? Or how to deploy the .cap file on them and get the other apps to interact with them?

Thank you

PS : i'm workign with eclipse and javacard 2.2.2

EDIT :

EDIT (1) :

I'm Using GPShell now, and i installed a sample hello world cap file successfuly, but when i try to install a simple counter applet which i already tried on CREF the same way i installed the hello word applet i get the following error : ( 6985 : Command not allowed - Conditions of use not satisfied ) I read the it might be version related, I usef an eclipse cap navigator plugin, and i got the following results : Major version = 2 , Minor version = 1, does that mean that the version is 2.0 - 2.1 ? but when i tried running the same navigator on the counter cap file i generated, I got the same results even though i'm using JCDK 2.2.2

btw, when i try to download the hello world source and compile it into a .cap and install it i get the same error, is it my environmenent then ?

Upvotes: 2

Views: 1521

Answers (1)

Carlos Roso
Carlos Roso

Reputation: 1495

Try to get more info about your card using the "NFC Taginfo" Android app by NXP. It's been quite helpful for me when developing for Javacard. It will show a lot of information about your smartcard. If you can, please show here the data you get from this app when scanning your card.

Assuming it is a JCOP Javacard, you can always use JCOP Tools to load the .cap file. It's a pretty straightforward process. You must first have a NXP Docstore account and then send an email to [email protected] asking for the JCOP Tool. Once you install the JCOP tools you can use the plugin for Eclipse to load and install the applet into the javacard.

About INITIALIZE UPDATE/EXTERNAL AUTHENTICATE

If your Javacard is GlobalPlatform compliant (you will know it using NFC Taginfo), it means that you will have to use GlobalPlatform commands to load and install the applet. One of the first steps is to create a secure channel between the off-card application (your omnikey reader) and the card. This is made through the INITIALIZE UPDATE and EXTERNAL AUTHENTICATE.

Upvotes: 1

Related Questions