Page 1 of 1

blending SSL stream context with SOAP client code?

Posted: Fri Mar 06, 2009 9:56 pm
by harsha
Hi All,

I request you all to help me out with this, please.

The ESX server is configure to use https, unfortunately the certifacte is not proper. Via browser, if I access the wsdl URL, I get a warning that there are glitches in it. However, if I accept it as an exception the browser takes me to the wsdl file.

Well from past one day I am experimenting on consuming the webserivces out ther on the ESX. By reading php manual I learnt that php_soap.dll but default assumes communicate using http . In order to tell php that to use https I have to enable php_*ssl.dll (forgot the exact name).

After reading http://in.php.net/manual/en/context.ssl.php, I was happy that "Yes! it can be achieved", but one question is still eating my head.

1. If the certificate that client gets has glitches, how to programatically handle this situation to say to my Soapclient "hey its ok with that ssl certificate"?

Cheers!!
Harsha Reddy

Re: blending SSL stream context with SOAP client code?

Posted: Fri Mar 06, 2009 10:03 pm
by Benjamin
On the page that you linked to there is an option called verify_peer. The page also states that it defaults to false. Also, if you were to use Curl, you can set CURLOPT_SSL_VERIFYPEER to false which would do the same thing.