RE: curl_exec error 60 SSL certificate problem, verify that the CA cert is OK

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



As long as you don't care to validate the SSL credentials of the SOAP 
server, then you can set CURLOPT_SSL_VERIFYPEER off.

However, CURLOPT_SSL_VERIFYHOST may also need to be TRUE or FALSE if 
CURLOPT_SSL_VERIFYPEER is disabled (it defaults to 2). 

I've had to disable VerifyPeer when the remote server was not providing 
reliable credentials, but I was confident it was who I needed it to be.

Also, be aware that there are several other curlopt's that go with these 
two, including:

CURLOPT_CAINFO The name of a file holding one or more certificates to 
verify the peer with. This only makes sense when used in combination with 
CURLOPT_SSL_VERIFYPEER.  

CURLOPT_CAPATH A directory that holds multiple CA certificates. Use this 
option alongside CURLOPT_SSL_VERIFYPEER. 

See http://us2.php.net/manual/en/function.curl-setopt.php for more info.

Sincerely,

Bill.McCuistion@QBOpen.com
http://QBOpen.com ... Products, Services & Solutions for Businesses large 
& small
Tel: 281-842-1426 // Cell: 832-217-0771 // AIM: QBOpen
~~~~~~~~~ (\_~~ (\_~~ (\_~~~~~~~~~~~~~ (\_~~ (\_~~ (\_~~~~~~~~



Al Baker <abaker@php.net> 
04/30/2006 01:18 PM

To
Punit Gupta <pgupta@endeavortelecom.com>
cc
soap@lists.php.net
Subject
RE:  curl_exec error 60 SSL certificate problem, verify   thatthe CA 
cert is OK






Nope, you just need CURL for PEAR SOAP and HTTPS

On Tue, 2006-04-25 at 12:11 -0400, Punit Gupta wrote:
> Do you need Php5 to use SSL with pear soap? 
> 
> -----Original Message-----
> From: Al Baker [mailto:abaker@php.net] 
> Sent: Tuesday, April 25, 2006 12:28 AM
> To: Punit Gupta
> Cc: soap@lists.php.net
> Subject: Re:  curl_exec error 60 SSL certificate problem, verify
> thatthe CA cert is OK
> 
> Some SOAP server implementations require the SOAPAction HTTP header to
> be populated.
> 
> Al
> 
> On Mon, 2006-04-24 at 18:29 -0400, Punit Gupta wrote:
> > Hi,
> > 
> > My script consumes a SSL API. I got this error in the beginning:
> > 
> > curl_exec error 60 SSL certificate problem, verify that the CA cert is
> 
> > OK
> > 
> > And when I try the following:
> > 
> > $client->setOpt('curl', CURLOPT_SSL_VERIFYPEER, 0); 
> > $client->setOpt('curl', CURLOPT_SSL_VERIFYHOST, 0);
> > 
> > 
> > It returns a strange message: Server did not recognize the value of 
> > HTTP Header SOAPAction:
> > 
> > Does anybody know whats going on?
> > Thanks,
> > -Punit.
> > 
> 
> --
> PHP Soap Mailing List (http://www.php.net/) To unsubscribe, visit:
> http://www.php.net/unsub.php
> 

-- 
PHP Soap Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [PHP Users]     [Kernel Newbies]     [PHP Database]     [Yosemite]

  Powered by Linux