-
Notifications
You must be signed in to change notification settings - Fork 711
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
OpenSC formatted Starcos 2.3 smartcard cannot be initialized #151
Comments
So I've done a bit more debugging and found out that the following diff makes the smartcard work: So the commit 1d82e8a changes the AC_OP numbers, and changing them back seemed to fix this regression. |
It appears that just the WRITE variable needs to be changed to 3 to make this work. |
OpenSC has changed a lot from 0.12.2 to 0.13.0 . Would be nice if you could reproduce your problem with the latest master and with maximal debug level. |
I've already tested with the latest OpenSC from git as of e8eb4cd (1 month ago), and the problem still exists. I'll get maximal debug output from the latest git when I can and attach it here. Like I mentioned before I was able to bisect the issue and it seems like changing SC_AC_OP_WRITE from 24 to 3, fixes the issue for this card, so looks like something specific with starcos code. |
Log is attached here: https://launchpadlibrarian.net/140033445/opensc_log.txt |
Please re-open the issue if it is still relevant or if you have news about possible fixes. |
I've reported a regression against Ubuntu, but this bug is also present with
e8eb4cd.
The issue copied here is:
Erasing and initializing a Starcos 2.3 smartcard returns the error:
Error -1211: Security status not satisfied
$ pkcs15-init -E
$ pkcs15-init --create-pkcs15 --profile pkcs15+onepin --use-default-transport-key --pin 0000 --puk 111111 --label "Test"
I've bisected the issue with the OpenSC git project and found that the first bad commit is:
1d82e8a
Here is a link to the Launchpad bug:
https://bugs.launchpad.net/ubuntu/+source/opensc/+bug/1166500
pscs_scan output will be attached to the Launchpad bug.
Thanks,
--chris j arges
The text was updated successfully, but these errors were encountered: