Re: Re: PEAR::Soap and certificates

From: Date: Thu, 03 Jun 2004 15:28:59 +0000
Subject: Re: Re: PEAR::Soap and certificates
References: 1 2 3  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-12869@lists.php.net to get a copy of this message
Stephan Wentz wrote:
Justin Patrin wrote:
Stephan Wentz wrote:
hi all! Just a quick question, i need to access a web-service that's protected with a certificate that the accessing' client needs to have. Is this somehow supported in PEAR::Soap? Or did I miss something and this is supported in any other way? If not, what are the alternatives, is there any method to do this with PHP? Bye, Stephan Wentz
Hmmm, I forgot to have my options pushed into SOAP! If you take a look at the Net_Socket, HTTP_Request, and HTTP_Client packages, you'll see some changes that I contributed to use this. Looks like it's time to get them in SOAP. $params = array('socketOptions' =>
                array('ssl' =>
                      array('local_cert' => '/path/to/cert.pem',
                            'passphrase' => 'password')));
For HTTP_Request: $req = new HTTP_Request($url, $params); For HTTP_Client: $cli = new HTTP_Client($params);
thanks for you help! i tried this (and the stuff from your bug-report) and it works... kind of ;-) the problem ist that i also have a CA-certificate that needs to be added. after adding the client-cert i get this error with soap: [message] => curl_exec error 60 SSL certificate problem, verify that the CA cert is OK any hints or suggestions? stephan
Try: curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0); -- paperCrane <Justin Patrin>

« previous php.pear.general (#12869) next »