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

Running Windows PKCS11 and getting failed to initialise #62

Open
Makeshift123 opened this issue Aug 15, 2022 · 2 comments
Open

Running Windows PKCS11 and getting failed to initialise #62

Makeshift123 opened this issue Aug 15, 2022 · 2 comments

Comments

@Makeshift123
Copy link

Makeshift123 commented Aug 15, 2022

Hello

Can you assist as I am trying to run any of the C programs but getting Failed to Initialise this is after the build was done on powershell with objects and the .exe created:

PS C:\Users\Administrator\build\src\encrypt\Debug> ./aes_ecb.exe --pin <username:<password
Failed to initialize

Also the [--library <path/to/pkcs11>] is this where the PATH of the .dll has been installed:

PS C:\Users\Administrator\build\src\encrypt\Debug> ./aes_ecb.exe --pin <username:<password --library C:\Program Files\Amazon\CloudHSM\lib\cloudhsm_pkcs11.dll

C:\Program could not loaded. Check file exists.
Getting PKCS11 function list failed!

What am I doing wrong?

@gertbza
Copy link

gertbza commented Aug 19, 2022

I agree - The library parameter requires the full path to the file, not just the folder.

I am also getting the same issue (Failed to initialize) with a Windows EC2 instance on AWS. AWS support suggested to try this with a Linux EC2, which I did and it also got stuck on the same step.

Can anyone please advise

@rday
Copy link
Member

rday commented Sep 19, 2022

@Makeshift123 From the error you posted, it looks like a " " was in the path to the file. Is that the case? Could you enclose the full path in quotes?

@gertbza Are you able to provide the error you see when attempting to run the samples?

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

3 participants