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

SmartCard-HSM: Error Generating Private Key on Smart card through OpenSC PKCS11 Module #681

Closed
scottthomas007 opened this issue Feb 19, 2016 · 3 comments

Comments

@scottthomas007
Copy link

I am trying to generate private key on SmartCard-HSM but its showing that it is unsupported. I tried to generate the private key through OpenSC PKCS11 module

It generated the error popup "The procedure entry point sc_error could not ve located in the dynamic link library opensc.dll"

It also generated the following error

C:\Program Files\OpenSC Project\OpenSC\tools>pkcs11-tool -l --pin 12345678 --key
pairgen --key-type rsa:1024 --id 10 -label "KEY" --module C:\WINDOWS\system32\opensc-pkcs11.dll
sc_dlopen failed: LoadLibrary/GetProcAddress failed
error: Failed to load pkcs11 module
Aborting.

What's this issue, can't we generate a key on SmartCard-HSM ?????

@CardContact
Copy link
Member

What version of OpenSC did you install ? What version of Windows are you using ? Is this a 32 or 64 bit version ? Did you install the 32 or 64 bit version of OpenSC.

Seems to me like the dll does not match the executable.

@scottthomas007
Copy link
Author

OpenSC version: 0.15 32bit
OS Version XP SP2 32bit

@scottthomas007
Copy link
Author

An old library smart card bundle was creating issue. Uninstalled scb and reinstalled the OpenSC and got it working now. Thanks mate

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