Skip to content
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

Do not close the PKCS11 context on startup #282

Merged
merged 1 commit into from Dec 16, 2021

Conversation

rgerganov
Copy link
Contributor

When Fulcio is started with PKCS11 CA, every signing request fails with
"context is closed" error. This is because the private key is loaded
once but then its context is closed. The private key of the CA doesn't
change during the entire lifecycle of Fulcio and it cannot be used
without active context.

Closes: #281

Signed-off-by: Radoslav Gerganov rgerganov@vmware.com

When Fulcio is started with PKCS11 CA, every signing request fails with
"context is closed" error. This is because the private key is loaded
once but then its context is closed. The private key of the CA doesn't
change during the entire lifecycle of Fulcio and it cannot be used
without active context.

Closes: sigstore#281

Signed-off-by: Radoslav Gerganov <rgerganov@vmware.com>
@dlorenc dlorenc merged commit a9bc71a into sigstore:main Dec 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

PKCS11 CA is broken
2 participants