EldoS | Feel safer!

Software components for data protection, secure storage and transfer

Installing certificates chain using SBB

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.
Posted: 04/04/2013 05:22:26
by Vsevolod Ievgiienko (EldoS Corp.)

I've just checked that your code works correctly. It seems that the certificate that you want to be added into MY store doesn't contain a private key so the corresponding code is not called. Please check this with the debugger.
Posted: 04/04/2013 05:39:45
by Eduardo Helminsky (Standard support level)
Joined: 08/20/2010
Posts: 105

Unfortunately this is not the case. I have already checked this and the code xWin.Add(xCer,'MY') is executed as expected and therefore the certificate has a private key.

I am using Delphi XE - Update 1 on Windows 8 64 bits. If I double click the PFX file it installs correctly.
Posted: 04/04/2013 05:57:37
by Vsevolod Ievgiienko (EldoS Corp.)

Checked also on Windows 8 64 and it works. Could you send us your PFX file via Helpdesk so we'll be able to reproduce the problem locally.
Posted: 04/04/2013 06:05:16
by Eugene Mayevski (EldoS Corp.)

BTW if you need to add the private key as well, you need to specify this in the third parameter to Add method by setting it to true.

Sincerely yours
Eugene Mayevski
Posted: 04/04/2013 07:05:55
by Eduardo Helminsky (Standard support level)
Joined: 08/20/2010
Posts: 105

Vsevolod and Eugene

I have solved the problem adding the third parameter (True) to CopyPrivateKey, Windows shows me a window to confirm the operation and the certificate and the chain was installed successfully.

Thanks very much for your great support.
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 3473 times

Number of guests: 2, 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!