-
Notifications
You must be signed in to change notification settings - Fork 712
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
IDPrime 940: Failed to connect to card: Invalid arguments #2877
Comments
Thank you for the report! It sounds tricky to support some reasonable reporting on empty cards and to detect them from invalid ones. The problem seems to be the following condition: https://github.com/OpenSC/OpenSC/blob/master/src/libopensc/card-idprime.c#L387 Can you try to remove that condition to see if it will work for you?
|
Thanks very much for feedback. Yes, that works for me. It even shows the second PIN and some more details now:
The second PIN I suppose refers to the "Signature PIN", which is standard on these cards. |
Correct. The label should be "Signature PIN" indeed, but this was a small overlook. Both fixed in #2878 |
On a freshly initialized IDPrime 940 I'm seeing:
The problem occurs on opensc 0.24.0-rc1. On previous versions (opensc 0.22 and 0.23) I used to see:
In debug mode the issue appears to originate in card-idprime.c:
Once I put objects on the card things work better. It's just when the card contains only the PIN the various opensc tools fail. Even "opensc-tool --list-algorithms" fails with the same error.
The text was updated successfully, but these errors were encountered: