-
Notifications
You must be signed in to change notification settings - Fork 756
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
pkcs15-init --store-pin fails silently on a MyEID smartcard #2804
Comments
Can you try adding another PIN to the card?
|
One more note, check your configuration again, is file_cache on? This would explain the stated problem. |
Looking at the /etc/opensc.conf in use, file caching appears to be off:
Changing the app default (not pkcs15-init, default) to false works around the problem. It looks like:
|
The issue of file_cache was discussed in #2501 I have prepared a solution for the MyEID card, which allows to signal every change in the content of the card in relation to the content of the cache: #2798 Without applying #2798, I do not recommend turning on file_cache while performing any write operation on the card (initializing the card, uploading keys, generating keys, unwrapping keys). |
Can you provide an opensc debug log with the default config containing the |
It seems to me that the
After initializing the card, I don't have the Accordingly, The debug file is created with the following configuration (no
For this reason, it is not even possible to turn off the file cache only for |
Sigh ... I was putting this together quite some time ago when I did not have MyEID cards to test. I think a colleague tested this and I did not double-check the code. Well, good to have this solved inside of the myeid driver now ... |
Problem Description
For reasons not yet known, "pkcs15-init --store-pin" fails silently, no PIN is created, no error message is returned.
opensc-0.22.0-2.el9.x86_64
Proposed Resolution
An error message must be returned to indicate what went wrong.
Steps to reproduce
Format a MyEid smartcard.
Attempt to create a PIN. This step has worked fine with many other MyEID cards.
Note - no error message. Dumping the card, we see no PIN created.
Try to set the PIN a second time:
This second attempt above fails with the meaningless message "invalid arguments". Dump shows no PIN:
The text was updated successfully, but these errors were encountered: