EldoS | Feel safer!

Software components for data protection, secure storage and transfer

Installing certificates chain using SBB

Also by EldoS: CallbackProcess
A component to control process creation and termination in Windows and .NET applications.
#24448
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.
#24449
Posted: 04/04/2013 05:39:45
by Eduardo Helminsky (Standard support level)
Joined: 08/20/2010
Posts: 102

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.
#24450
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.
#24451
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
#24452
Posted: 04/04/2013 07:05:55
by Eduardo Helminsky (Standard support level)
Joined: 08/20/2010
Posts: 102

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: Solid File System
A virtual file system that offers a feature-rich storage for application documents and data with built-in compression and encryption.

Reply

Statistics

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