blending SSL stream context with SOAP client code?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
harsha
Forum Contributor
Posts: 103
Joined: Thu Jul 11, 2002 1:35 am
Location: Bengaluru (Bangalore) > Karnataka > India

blending SSL stream context with SOAP client code?

Post 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
User avatar
Benjamin
Site Administrator
Posts: 6935
Joined: Sun May 19, 2002 10:24 pm

Re: blending SSL stream context with SOAP client code?

Post 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.
Post Reply