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

C_Sign returned CKR_OPERATION_NOT_INITIALIZED in multithreaded application #229

Open
Anil-Kamble opened this issue Dec 12, 2023 · 0 comments

Comments

@Anil-Kamble
Copy link

Hi,

We are signing the PDF using multi threading. Sometimes it's throwing error "C_Sign returned CKR_OPERATION_NOT_INITIALIZED" & "C_SignInit returned CKR_OPERATION_ACTIVE"

It will be great help, if anyone could guide us to resolve it.

Stacktrace is also pasted below for reference.

at Net.Pkcs11Interop.HighLevelAPI41.Session.Sign(IMechanism mechanism, IObjectHandle keyHandle, Byte[] data, Boolean performLogin, Byte[] keyPin)
at Net.Pkcs11Interop.HighLevelAPI41.Session.Sign(IMechanism mechanism, IObjectHandle keyHandle, Byte[] data)

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

No branches or pull requests

1 participant