-
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
PKCS11 provider serial_number configuration #615
Labels
bug
Something isn't working
Milestone
Comments
I am in favour of the first solution as it enhances the UX. |
I'm in favour of the first solution for the same reason - much nicer to work with unpaded strings. But I'd also like to document this behaviour in the config file. |
If we document the behaviour, there is no need for the warning. |
mohamedasaker-arm
added a commit
to mohamedasaker-arm/parsec
that referenced
this issue
Jun 29, 2022
Fixes: parallaxsecond#615 Signed-off-by: Mohamed Omar Asaker <mohamed.omarasaker@arm.com>
mohamedasaker-arm
added a commit
to mohamedasaker-arm/parsec
that referenced
this issue
Jul 12, 2022
Fixes: parallaxsecond#615 Signed-off-by: Mohamed Omar Asaker <mohamed.omarasaker@arm.com>
mohamedasaker-arm
added a commit
to mohamedasaker-arm/parsec
that referenced
this issue
Jul 13, 2022
Fixes: parallaxsecond#615 Signed-off-by: Mohamed Omar Asaker <mohamed.omarasaker@arm.com>
mohamedasaker-arm
added a commit
to mohamedasaker-arm/parsec
that referenced
this issue
Jul 20, 2022
Fixes: parallaxsecond#615 Signed-off-by: Mohamed Omar Asaker <mohamed.omarasaker@arm.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It's now possible (and recommended) to configure Parsec PKCS11 provider with a PKCS11 token serial number instead of a slot ID.
When I tested this feature with a Nitrokey HSM module I initially got an error:
After some debugging and reading specs I found that the serial number must be 16 characters long and must be padded with spaces:
http://docs.oasis-open.org/pkcs11/pkcs11-base/v2.40/os/pkcs11-base-v2.40-os.html#_Toc416959687
I fixed my issue by updating Parsec config with
serial_number = "DENK0102227 "
pkcs11-tool -L
doesn’t print the trailing spaces which can cause confusions like I had.So, we can resolve the issue with either:
parsec/src/providers/pkcs11/mod.rs
Line 527 in f302e27
The text was updated successfully, but these errors were encountered: