EldoS | Feel safer!

Software components for data protection, secure storage and transfer

64-Bit Problems

Posted: 11/05/2012 04:37:12
by Chris Sennrich (Standard support level)
Joined: 10/17/2012
Posts: 12

We changed our development environment from 32-Bit to 64-Bit and now were not able to connect to our HSM-Store anymore. We also replaced the crypto dll with its 64-bit version.

We use the following code to connect:

hsmStore = new TElPKCS11CertStorage();
hsmStore.CryptoProvider = new TElPKCS11CryptoProvider();
((TElPKCS11CryptoProviderOptions)(((TElPKCS11CryptoProvider)hsmStore.CryptoProvider).Options)).ThreadSafe = true;

hsmStore.DLLName = cryptoDll;

On hsmStore.Open() we geht the following error:

An attempt was made to load a program with an incorrect format. (Exception from HRESULT:0x8007000B)

bei SBPKCS11Base.__Global.LoadExternalModule(String ModuleName, Int64& ExtHandle, IntPtr pPars, UInt32 cbPars)
bei SBPKCS11Base.TElPKCS11ModuleList.LoadModule(String ModuleName, Boolean TrySingleThreadedMode, Boolean AutoRefreshSlotInfo, Boolean PreserveSettingsIfExists, Boolean OnDemandMode, TElPKCS11NSSParams NSSParams)
bei SBPKCS11CertStorage.TElPKCS11CertStorage.Open()

When we load a certificate from the local store everything works fine.

Thanks for any help!
Posted: 11/05/2012 04:41:14
by Vsevolod Ievgiienko (Team)

Thank you for contacting us.

You should replace SecureBlackbox_PKCS11Proxy.dll with the 64-bit version that is located in \EldoS\SecureBlackbox.NET\Extra\PKCS11ProxyDLL\x64 folder.
Posted: 11/05/2012 04:41:59
by Ken Ivanov (Team)


It looks like the 32 bit version of the proxy driver is still attempted to be loaded. Please re-check that your application has access to 64 bit DLL (maybe a 32 bit one is residing wherever the binary of your application is).
Posted: 11/05/2012 05:38:04
by Chris Sennrich (Standard support level)
Joined: 10/17/2012
Posts: 12

Thanks I've changed the SecureBlackbox_PKCS11Proxy.dll and now it seems to work!



Topic viewed 1360 times

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


Back to top

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

Got it!