Re: Certificate problem in Borland C++ Builder (General questions)
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:
- Certificate problem in Borland C++ Builder - paul draper, 2005-08-19, 18:02
- Re: Certificate problem in Borland C++ Builder - wodSupport, 2005-08-19, 18:09
- Re: Certificate problem in Borland C++ Builder - Paul Draper, 2005-10-03, 10:58
- Re: Certificate problem in Borland C++ Builder - wodSupport, 2005-10-03, 13:37
- Re: Certificate problem in Borland C++ Builder - Paul Draper, 2005-10-04, 15:56
- Re: Certificate problem in Borland C++ Builder - wodSupport, 2005-10-03, 13:37
- Re: Certificate problem in Borland C++ Builder - Paul Draper, 2005-10-03, 10:58
- Re: Certificate problem in Borland C++ Builder - wodSupport, 2005-08-19, 18:09