Click here to Skip to main content
15,891,712 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am new to using APDU commands. I am writing a .Net application and I need to verify the Pin on a CAC card using APDU commands.

What I have tried:

I am using the following APDU commands

CLA = 0x00,
INS = 0x20,
P1 = 0x00,
P2 = 0x80

I am getting a “6E00” Response – “Class not supported”. The commands work fine on a PIV card but not for the CAC card. I have tried different CLA but have not been able to get it to work. Does anyone know what I need to do different for the CAC card?
Posted
Updated 29-Jul-20 7:09am
v2

1 solution

You will probably find information faster at Common Access Card (CAC)[^].
 
Share this answer
 
Comments
Member 14749454 29-Jul-20 13:07pm    
Thank you for the link. I drilled down through the link you provided, but it took me to documentation I have previously looked at. I will go back through it again.
Richard MacCutchan 29-Jul-20 14:39pm    
The issue is clearly that something you are sending is not valid, so the only way to resolve it is to check the documentation to find out why. If the CAC site has a help forum then that is much the best place for your question.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900