NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
nusoap with php https problem


Joined: 22 Feb 2004
Posts: 1
Reply with quote
Is anyone familiar with using nusoap with php. Basically i'm trying to connect to a https site using nusoap passing some variables. i hav php 4.3.4 running,have opensll and curl installed too. I've tested curl and it works fine. when i use the following code,

require('nusoap.php');
$arr = array ("iClientID" => "1", "sUserName" => "pplapi", "sPassword" => "pplapi_password");
$parameters = array($arr);
$s1 = new soapclient('https://securdocsapitest.securitymail.com.au/svcsecurdocs.asmx/SDAPI_BEAuthenticateUser');
$result = $s1->call('echoArray',$parameters);
if(!$err = $s1->getError()){
echo 'Result1: '.$result;
exit;
}
else
{
echo 'Error: '.$err;
exit;
}



i get the folowing error:

soapclient: Error: HTTP Error: cURL ERROR: 60: SSL certificate problem,
verify that the CA cert is OK

any ideas
View user's profileFind all posts by akashSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8334
Reply with quote
Make sure you run cURL 7.10.5 or higher.
Besides others, this version has the fix below:
Quote:
- Fixed the SSL error handling to return proper SSL error messages again, they
broke in 7.10.4. I also attempt to track down CA cert problems and then
return the CURLE_SSL_CACERT error code.


Alternatively you may try out nusoap 0.7.0 which is available with phped 3.3 and run it w/o cURL. When cURL is not installed, nusoap uses php streams and if you php is compiled with openssl it will work through SSL fine. Check if topmost header of phpinfo() contains hhtps like this
Registered PHP Streams php, http, ftp, https, ftps, compress.zlib
View user's profileFind all posts by dmitriSend private messageVisit poster's website
nusoap with php https problem
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours  
Page 1 of 1  

  
  
 Reply to topic