Re: PEAR::Soap and certificates

From: Date: Wed, 02 Jun 2004 17:21:53 +0000
Subject: Re: PEAR::Soap and certificates
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-12837@lists.php.net to get a copy of this message
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); -- paperCrane <Justin Patrin>

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