I am working with the MasterCard credit card, and I have a question about the exact steps which I need to take to perform the CDA authentication.
If I understood the procedure correctly, I should first send the GENERATE AC
command followed by an EXTERNAL AUTHENTICATE
?
My GENERATE AC
command looks like:
80 AE 40 00 42 00 00 00 00 01 00 00 00 00 00 00 00 01 91 00 00 00 00 00 01 91 01 01 01 00 01 02 03 04 12 01 02 01 02 03 04 05 06 07 08 00 01 02 12 04 33 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
And the response (RESPONSE) I get from the card looks like:
77 29
9F 27 01 80
9F 36 02 00 5C
9F 26 08 AE 7D 66 E4 50 15 D5 A4 (Application Cryptogram)
9F 10 12 02 10 A0 00 00 2A 08 00 01 02 00 00 00 00 00 00 00 FF
90 00
In the next step, I am triggering 'EXTERNAL AUTHENTICATE' with the command:
00 82 00 00 AE 7D 66 E4 50 15 D5 A4 02 10 A0 00 00 2A 08 00
The response I get after that is a 2 Byte array [109, 0]
, that is 6D
. Does this mean that I'm doing something wrong?
Any advice would be appreciated.