-
Notifications
You must be signed in to change notification settings - Fork 68
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 connectivity issue #607
Comments
With RUST_LOG=trace after re-inserting a USB HSM module: parsec-tool:
parsec:
|
From the spec:
I think it's fair to say that if we get |
The issue
Disconnecting and reconnecting a pluggable PKCS11 token leads to the PKCS11 provider being inaccessible. To reproduce the issue:
parsec-tool
, you'll get:This is as expected.
This error is NOT expected. The service should continue to operate correctly in this case.
Solution
There are still bits of information missing which will require some more investigation. I'm hoping to get a way to reproduce this using SoftHSM2.
The ideal solution would be for us to simply re-establish a functional connection to the hardware token when we detect that the token has been unplugged and plugged back in. The actual solution will depend on how reliably we can tell whether this has happened and on what options we identify for re-establishing that connection in a clean way.
Outstanding questions
This is a variant of the more generic approach discussed in #607
The text was updated successfully, but these errors were encountered: