EldoS | Feel safer!

Software components for data protection, secure storage and transfer

PKCS library returns fatal error

Also by EldoS: CallbackRegistry
A component to monitor and control Windows registry access and create virtual registry keys.
#35614
Posted: 01/19/2016 18:01:15
by ingbabic  (Standard support level)
Joined: 09/27/2011
Posts: 114

Hi
I have following error on laptop:
Quote
An unhandled exception of type 'SBPKCS11Base.EElPKCS11ModuleError' occurred in SecureBlackbox.PKI.dll

Additional information: PKCS#11 provider DLL function returned fatal error (error code is -2147483647)

I am using SBB version 14 (SecureBlackBox veriosn 14.0.285). PKCS dll is acpkcs211.dll version 5.2.0.6 (ActivClient) and it is correctly installed (at least ActiveClient works correctly). There is a path to dll, system path is correctly set, any way I tried also to set full path to PKCS11Lib, but didn't help. SecureBlackbox_PKCS11Proxy is also available. What should I look for?
#35622
Posted: 01/20/2016 04:39:43
by Vsevolod Ievgiienko (EldoS Corp.)

Thank you for contacting us.

Please try to access the token using our samples. You should check that SecureBlackbox_PKCS11Proxy bitness is the same as for acpkcs211.dll and that the sample is compiled for the same target (x86/x64).
#35629
Posted: 01/20/2016 07:43:41
by ingbabic  (Standard support level)
Joined: 09/27/2011
Posts: 114

With CryptoTokenDemo example the same result. Please see screenshot attached.


#35630
Posted: 01/20/2016 07:52:58
by Vsevolod Ievgiienko (EldoS Corp.)

Could you please post exception call stack here.
#35632
Posted: 01/20/2016 08:41:37
by ingbabic  (Standard support level)
Joined: 09/27/2011
Posts: 114

Here it is:
Quote

SBPKCS11Base.EElPKCS11ModuleError: PKCS#11 provider DLL function returned fatal error (error code is -2147483647)
at SBPKCS11Base.TElPKCS11ModuleList.LoadModule(String ModuleName, Boolean UseSystemProcAddresses, Boolean TrySingleThreadedMode, Boolean AutoRefreshSlotInfo, Boolean PreserveSettingsIfExists, Boolean OnDemandMode, TElPKCS11NSSParams NSSParams, Boolean NoImplicitSlotInfoUpdates)
at SBPKCS11CertStorage.TElPKCS11CertStorage.Open()
at CryptoTokenDemo.frmMain.OpenStorage() in c:\Users\Public\Documents\EldoS\SecureBlackbox.NET\Samples\C#\PKIBlackbox\Desktop\CertTokenDemo\MainForm.cs:line 378
#35633
Posted: 01/20/2016 09:06:30
by Ken Ivanov (EldoS Corp.)

Thank you.

The exception means that the storage component failed to load the driver DLL. There can be several possible reasons for this:

1) The driver DLL is of wrong target (e.g. you pass an x86 DLL to an x64 app).

2) Some of the dependant DLLs are not accessible. Please try setting the application's current path to the ActivClient's directory (normally "C:\Program Files (x86)\ActivIdentity\ActivClient\" or "C:\Program Files\ActivIdentity\ActivClient\") and check if it helps.

The driver itself should work fine, as we had some experience with ActivClient in the past and it always worked correctly for us.

Ken
#35693
Posted: 01/26/2016 09:31:57
by ingbabic  (Standard support level)
Joined: 09/27/2011
Posts: 114

Ken,
You're right. When I installed ActivClient on another PC everything worked without a problem. I suppose that the problem is with setup on that PC specifically, but I am too busy to check what's wrong with it. I'll tell them to reinstall it :)
#35694
Posted: 01/26/2016 09:43:05
by Ken Ivanov (EldoS Corp.)

Brilliant - thank you very much for letting us know.

Have a good day.

Ken
Also by EldoS: BizCrypto
Components for BizTalk® and SQL Server® Integration Services that let you securely store and transfer information in your business automation solutions.

Reply

Statistics

Topic viewed 2857 times

none




|

Back to top

As of July 15, 2016 EldoS Corporation will operate as a division of /n software inc. For more information, please read the announcement.

Got it!