JavacardOS will not accept order any more, please contact our partner Feitian online Store:
https://ftsafe.en.alibaba.com/index.html
https://ftsafe.en.alibaba.com/index.html
Installing applet on real smartcard failure
Installing applet on real smartcard failure
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
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
- UNKNwYSHSA
- Posts: 630
- Joined: Thu May 21, 2015 4:05 am
- Points :3055
- Contact:
Re: Installing applet on real smartcard failure
The applet construct method throws one exception.
sense and simplicity
Re: Installing applet on real smartcard failure
Do you know what exception it is throwing and why?
- UNKNwYSHSA
- Posts: 630
- Joined: Thu May 21, 2015 4:05 am
- Points :3055
- Contact:
Re: Installing applet on real smartcard failure
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?
Maybe one algorithm is not supported by the card.
Did you have the card User Manual Specification?
sense and simplicity
- UNKNwYSHSA
- Posts: 630
- Joined: Thu May 21, 2015 4:05 am
- Points :3055
- Contact:
Re: Installing applet on real smartcard failure
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.
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
Re: Installing applet on real smartcard failure
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 =)
- UNKNwYSHSA
- Posts: 630
- Joined: Thu May 21, 2015 4:05 am
- Points :3055
- Contact:
Who is online
Users browsing this forum: No registered users and 55 guests