acshk / acsccid

acsccid is a PC/SC driver for Linux/Mac OS X and it supports ACS CCID smart card readers. This library provides a PC/SC IFD handler implementation and communicates with the readers through the PC/SC Lite resource manager (pcscd).
GNU Lesser General Public License v2.1
104 stars 19 forks source link

ACR122U Reader unable to Authenticate and read from memory block #30

Closed arpit-mehra closed 1 year ago

arpit-mehra commented 3 years ago

I have been facing a problem with a ACR122U NFC Reader where it always returns 63 00 when I try to authenticate with the keys and access a memory block. I am trying to list down the versions and OS I am using for reference. Versions smart card reader driver name and version - ACR 122U PICC Interface pcsc-lite-libs-1.9.0-2.fc33.x86_64 pcsc-lite-1.9.0-2.fc33.x86_64 pcsc-lite-ccid-1.4.29-3.el8.x86_64 pcsc-lite-acsccid-1.1.8-1.el8.x86_64 the output of the command /usr/sbin/pcscd --version pcsc-lite version 1.9.0. Platform Operating system or GNU/Linux distribution name and version - RHEL 8

Also attaching the output of sudo LIBCCID_ifdLogLevel=0x000F pcscd --foreground --debug --apdu --color | tee log.txt

log.txt

Is there a setting on the driver, that needs any change ? I have another ACR1252 which works perfectly fine with the same set of keys, reading the same memory block, exactly the same code. I would really appreciate any pointers on this one.

godfreychung commented 3 years ago

Your log did not show any APDU to the reader. I think that you may need to save the log again for ACR122U and ACR1252U.

arpit-mehra commented 3 years ago

Attaching the logs again.

log-ACR122U.txt log-ACR1252.txt

godfreychung commented 3 years ago

Your log did not show any APDU to the reader. Please make sure that you have run the program. You will see the command starting with 6F and the response starting with 80.

arpit-mehra commented 3 years ago

Hi, Apologies, I had to restart my service to be able to detect the daemon started again in the foreground. Attaching the ACR122U logs here for your reference. log-Acr122U-APDU.txt

I have replaced the decryption keys with XX

arpit-mehra commented 3 years ago

Just wanted to check if something in the logs reveals if we are doing something wrong. Or is it the hardware or commands that we are sending.

godfreychung commented 3 years ago

I can't find any issue in your command. It may be card problem or you are using a wrong key. Please use a blank card with a default key to see if the issue can be reproduced.

arpit-mehra commented 3 years ago

Thanks for your response @godfreychung We have tried using the same card, with the same key, on another reader that works perfectly fine. Also, the same card, works on my phone's NFC Reader with the keys that I specify, which makes me think its either on the reader itself, or the driver is not happy talking to this NFC Reader.

godfreychung commented 3 years ago

I think that you may need to try more different cards to see if the reader is damaged or not. You can also contact ACS for technical support.