Page 1 of 1

Installing applet on real smartcard failure

Posted: Thu Feb 23, 2017 3:58 pm
by Novanex
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

Re: Installing applet on real smartcard failure

Posted: Fri Feb 24, 2017 12:02 am
by UNKNwYSHSA
The applet construct method throws one exception.

Re: Installing applet on real smartcard failure

Posted: Fri Feb 24, 2017 8:14 am
by Novanex
Do you know what exception it is throwing and why?

Re: Installing applet on real smartcard failure

Posted: Sun Feb 26, 2017 9:35 pm
by UNKNwYSHSA
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?

Re: Installing applet on real smartcard failure

Posted: Sun Feb 26, 2017 10:09 pm
by UNKNwYSHSA
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.

Re: Installing applet on real smartcard failure

Posted: Mon Feb 27, 2017 8:22 am
by Novanex
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 =)

Re: Installing applet on real smartcard failure

Posted: Mon Feb 27, 2017 9:25 pm
by UNKNwYSHSA
:)