Our Online Store have the new products: RFID antenna board. Currently it can work with JC10M24R and JCOP4 card chips.
Compared with normal cards, the antenna board module has a smaller size and fixed holes, which is easy to integrate in the IOT(Internet Of Things) project.

Installing applet on real smartcard failure

JavaCard Applet Development Related Questions and Answers.
Novanex
Posts: 5
Joined: Sun Nov 13, 2016 12:14 pm
Points :138
Contact:

Installing applet on real smartcard failure

Post by Novanex » Thu Feb 23, 2017 3:58 pm

Hi.

With the application I've been devleoping that uses a smartcard applet that I've also developed, I've been using the JCIDE JCVM to run the applet, and connecting the application to that. However I need to test multiple users on the application, so I got myself two identical physical smartcard readers and javacard smartcards.

Reader - Omnikey 3121
Card - J3A041 40K

The applet installed and worked fine on the virual reader, but when I try installing it onto the physical smartcard, I get an error on installation (6A 80).

Anyone able to offer any insight as to why this might be happening?


Output (Physical card): http://pastebin.com/20ck6WYM
Basic output (Physical card): http://pastebin.com/UQT41SnS

Output (Virtual card): http://pastebin.com/0VqRALXG
Basic output (Virtual card): http://pastebin.com/h71jBN4f

Applet source code: http://pastebin.com/GSdRgXvz

User avatar
UNKNwYSHSA
Posts: 630
Joined: Thu May 21, 2015 4:05 am
Points :3053
Contact:

Re: Installing applet on real smartcard failure

Post by UNKNwYSHSA » Fri Feb 24, 2017 12:02 am

The applet construct method throws one exception.
sense and simplicity

Novanex
Posts: 5
Joined: Sun Nov 13, 2016 12:14 pm
Points :138
Contact:

Re: Installing applet on real smartcard failure

Post by Novanex » Fri Feb 24, 2017 8:14 am

Do you know what exception it is throwing and why?

User avatar
UNKNwYSHSA
Posts: 630
Joined: Thu May 21, 2015 4:05 am
Points :3053
Contact:

Re: Installing applet on real smartcard failure

Post by UNKNwYSHSA » Sun Feb 26, 2017 9:35 pm

You can comment line 110 or 111 or 115 and try again.
Maybe one algorithm is not supported by the card.
Did you have the card User Manual Specification?
sense and simplicity

User avatar
UNKNwYSHSA
Posts: 630
Joined: Thu May 21, 2015 4:05 am
Points :3053
Contact:

Re: Installing applet on real smartcard failure

Post by UNKNwYSHSA » Sun Feb 26, 2017 10:09 pm

I had test this applet on my j3d081 card.
The algorithm Cipher.ALG_DES_ECB_PKCS5 is not supported.
I think it is the same on your j2a040 card.
Comment the code line 115 and hava a try.
sense and simplicity

Novanex
Posts: 5
Joined: Sun Nov 13, 2016 12:14 pm
Points :138
Contact:

Re: Installing applet on real smartcard failure

Post by Novanex » Mon Feb 27, 2017 8:22 am

Yeah that seems to be it, I switched to one of the other DES algorithms that used a different padding scheme and it seems to work now, thanks =)

User avatar
UNKNwYSHSA
Posts: 630
Joined: Thu May 21, 2015 4:05 am
Points :3053
Contact:

Re: Installing applet on real smartcard failure

Post by UNKNwYSHSA » Mon Feb 27, 2017 9:25 pm

:)
sense and simplicity

Post Reply Previous topicNext topic

Who is online

Users browsing this forum: No registered users and 25 guests

JavaCard OS : Disclaimer