Re: Certificate problem in Borland C++ Builder - WeOnlyDo Discussion board

Re: Certificate problem in Borland C++ Builder (General questions)

by wodSupport, Monday, October 03, 2005, 13:37 (6991 days ago) @ Paul Draper

Paul,

Actually, not sure why, returned error is 30005. You did all correctly, but private key was not valid. How did it end up as 10047 - I have no clue.
When I opened your key, and I see it's true, you supplied SSH public key, but you need private key.
So, use GenerateKey and then Generate from Certificate object to create yourself new key.

Can you do that?

BTW, your code works ok, and conversion is ok. Perhaps instead of (ICertificate*) cast you could do [code]Certificate1->GetDefaultInterface()[/code]
seems that works nicely. It worked for me ok like this:[code]ICertificate *c = Certificate1->GetDefaultInterface();
wodWebServerCom1->_set_Certificate(c);[/code]


Complete thread: