-
Notifications
You must be signed in to change notification settings - Fork 187
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
No Login on Private Key Usage #496
Comments
I don't use the PKCS#11 engine myself, but looking at the source code, it seems that libp11 actually does the right thing: Lines 199 to 243 in 6c96847
I suggest you debug that part above and especially check the reason why no login is performed on line 211. I would assume that libp11 doesn't recognize the need to login, because your slot doesn't propagate this property correctly. |
We observed the following behaviour in version 0.4.12 when invoking
openssl dgst -engine pkcs11 -keyform engine -sign [...]
CKR_USER_NOT_LOGGED_IN
, the command failsWe found specifying "FORCE_LOGIN" in the engine section as a workaround.
However, according to our understanding, in the described case libp11 would preferably perform C_Login() after the failed call to C_SignInit() and try to call this function again.
Is this something you would put on the roadmap? Would you prefer us to propse an MR (currently not sure if we can provide that but I would check that)?
The text was updated successfully, but these errors were encountered: