-
Notifications
You must be signed in to change notification settings - Fork 71
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
Issue with PKCS11 backend with Nitrokey HSM #380
Comments
Hmm weird. To have more details about what happened, can you modify Parsec config and set: [core_settings]
log_level = "trace"
log_error_details = true and try again? |
With
With
|
My guess is that it's some permission problem, that the user running Parsec is not allowed to access the libraries/HSM. Did you perform the |
My user on my machine is member of the edit: |
No, it is a different user. parsec service is run as
I will try to some groups (dialout, disk) to I am on openSUSE Tumbleweed. |
You can check permissions on all directories inseid |
At least for the |
Indeed, the folder inside Not sure how to handle this properly.
I added
And the error is different:
whereas the same Also,
so, it is kind of consistent. |
I think @anta5010 actually had this specific error (but with SoftHSM). You can initialize a token but not access its slots. I think it's still a permission issue somehow. I had to do something similar with polkit when I tried it a long time ago, here are my rules if it helps:
Maybe try to remove the |
@ggardet did you manage to get this to work? |
No, I gave up for now due to other high priority tasks. |
Closing this as stale, feel free to open if you hit this problem again! |
I am trying to use a USB Nitrokey HSM with Parsec 0.7.2.
I initialized the HSM key with:
pkcs11-tool --module /usr/lib64/pkcs11/libsofthsm2.so --init-token --init-pin --so-pin=3537363231383830 --new-pin=648219 --label="test" --pin=648219
Then
softhsm2-util --show-slots
gave me the slot number:Then I updated the config file with:
But I get:
If I change the library path to
/usr/lib64/pkcs11/opensc-pkcs11.so
:I get a different error message:
The text was updated successfully, but these errors were encountered: