I am having trouble reading ICC data from an card. I have an AID from an issuer which is A0000007790000. So I am sending an APDU of 00A4040007A0000007790000 to select the application by its AID but I keep getting response of SWA: 62 SWB: 83. What am I missing, and how can I proceed from there.

I can only do a select PSE using 00A404000E315041592E5359532E444446303100 which is successful and I am getting a response of 6F1A840E315041592E5359532E4444463031A5088801015F2D02656E.. The Other commands like 00B2010C00 are returning that SWA SWB 6283 (Selected file invalidated) response. Any pointers will be greatly appreciated.

2

There are 2 best solutions below

6
On

The AID Select Command should have additional Le byte.

APDU Command: 00A4040007 A000000779 0000 00

0
On

The problem that I had was on the device permissions, I had not realized that the device I was using to read the emv cards had no permissions to read external files, so that did not allow me to read any data from the application files in the chip card