EldoS | Feel safer!

Software components for data protection, secure storage and transfer

PKCS library returns fatal error

Also by EldoS: RawDisk
Access locked and protected files in Windows, read and write disks and partitions and more.
Posted: 01/19/2016 18:01:15
by ingbabic  (Standard support level)
Joined: 09/27/2011
Posts: 114

I have following error on laptop:
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 (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?
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).
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.

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

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

Here it is:

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
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.

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

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 :)
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.

Also by EldoS: Callback File System
Create virtual file systems and disks, expose and manage remote data as if they were files on the local disk.



Topic viewed 3371 times

Number of guests: 1, registered members: 0, in total hidden: 0


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!