Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript forum!

Enrique Guillen

+ Follow
since Mar 13, 2015
Cows and Likes
Total received
In last 30 days
Total given
Total received
Received in last 30 days
Total given
Given in last 30 days
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Enrique Guillen

Hi, I need some insight about some weird behavior I'm getting.
I developed an applet for GP 2.1.1 and Java Card 2.2.1. I have 2 sets of cards from different providers but with same characteristics.
When I load the cap on one set of cards, everything works fine.
When I load the same cap on the other set of cards, everything still works, but instead of getting 90 00 from the cards, every APDU I send returns 6F00. But the applet worked as expected and I am able to continue working.

My guess is that it has something to do with the global platform API, but I'm unsure of what.

For example, first APDU I need to send to the applet is an Initialize Update (the APDU is 100% correct):

[USERCARD: Command]
(328.125 ms)

6F 00, but it worked, after that I can ignore the SW and send an Ext Auth APDU and it will work also.

If I load the cap on the other cards and send the corresponding IU APDU, I will get 90 00

I really hope you can provide some insight.

This is the code:

5 years ago