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

Improve PKCS11 failure mode #730

Open
ema opened this issue Nov 3, 2023 · 1 comment
Open

Improve PKCS11 failure mode #730

ema opened this issue Nov 3, 2023 · 1 comment

Comments

@ema
Copy link
Contributor

ema commented Nov 3, 2023

Hi,

configuring the PKCS11 provider incorrectly seems to invariably result in the following sort of error messages:

parsec[391160]: [ERROR parsec_service::providers::pkcs11] Error initializing PKCS 11 context;
parsec[391160]: [ERROR cryptoki::context] Failed to finalize: PKCS11 error: This value can be returned by any function other than C_Initialize and C_GetFunctionList.  It indicates that the function cannot be executed because the Cryptoki library has not yet been initialized by a call to C_Initialize.
parsec[391160]: [ERROR parsec_service::utils::service_builder] Provider with ID PKCS #11 provider cannot be created;

The above is printed regardless of what is actually going wrong in reality. For instance, I have tried starting parsec with the wrong slot_number, or with no slot at all. The error message should be more descriptive if possible.

Thanks!

@anta5010
Copy link
Collaborator

anta5010 commented Nov 3, 2023

This duplicates #611 or vice versa

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

2 participants