EldoS | Feel safer!

Software components for data protection, secure storage and transfer

Installing certificates chain using SBB

Posted: 04/04/2013 05:22:26
by Vsevolod Ievgiienko (Team)

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: 112

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 (Team)

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 (Team)

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: 112

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.



Topic viewed 3616 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!