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

Enrique Guillen

Greenhorn
+ Follow
since Mar 13, 2015
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
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]
80500000081810D6E7AEFA77F700
[Response]
000050540000001900020202002FDC5D12A22CB7A11051C5D96DA298
(6F00)
(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