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

Detection issue with safenet ikey 2032 #29

Open
rajathirajan opened this issue Jul 7, 2022 · 5 comments
Open

Detection issue with safenet ikey 2032 #29

rajathirajan opened this issue Jul 7, 2022 · 5 comments

Comments

@rajathirajan
Copy link

Application has issues in detecting safenet ikey 2032 in windows10 64 bit pc.

@damianofalcioni
Copy link
Owner

Hi,
by default, the application is able to automatically identified in your system the presence of the following PKCS11 libraries (in windows): "incryptoki2.dll", "bit4ipki.dll", "bit4opki.dll", "bit4xpki.dll", "OCSCryptoki.dll", "asepkcs.dll", "SI_PKCS11.dll", "cmP11.dll", "cmP11_M4.dll", "IpmPki32.dll", "IPMpkiLC.dll", "IpmPkiLU.dll", "bit4cpki.dll", "bit4p11.dll", "asepkcs.dll", "PKCS11.dll", "eTPKCS11.dll", "SSC_PKCS11.dll", "inp11lib.dll", "opensc-pkcs11.dll".
Probably the "safenet ikey 2032" use its own PKCS11 dll. If you know the dll name (and installation path) you can add it via javascript using the following method before the signature:

websocket_smartcard_signer.addDll("your_dll_path");

Best regards,
Damiano

@rajathirajan
Copy link
Author

Thank you for your prompt reply. The Error was at line number 55 of SmartCardAccessJnaImpl.java

long[] mechLst = CE.GetMechanismList(slot);

It returns CKR exception from jacknji11 library

@damianofalcioni
Copy link
Owner

Did you loaded the correct DLL before?

What is the message in the exception?

@rajathirajan
Copy link
Author

rajathirajan commented Jul 19, 2022

Yes, I loaded the correct DLL (dkck201.dll).

The error message from signer was "No smartcards found supporting signing with mechanism RSA_PKCS using library"

CKRException 0xffffffff0000002 unknown CKR constant from jacknji11

@damianofalcioni
Copy link
Owner

Hi,
you can try to uncomment the main and debug directly here to investigate better the issue:

and also here:

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