cURL / Mailing Lists / curl-and-php / Single Mail

curl-and-php

SOAP NUSOAP CURL Certificate Authentication issues

From: Manjoine, Chris A <chris-manjoine_at_uiowa.edu>
Date: Thu, 5 Jan 2006 13:25:12 -0600

I am trying to make a certificate authentication to a vendor. The cert
is a test cert and the vendor says that a dummy cert will work which I
have already created
 
<?
require_once "./nusoap.php";
// start the class
$url="https://atws.grants.gov:446/AgencyIntegration/GetOpportunityList";
$soapbox=new soapclient1($url);
$soapbox->authtype = 'certificate';
$soapbox->certRequest['sslcertfile']='/CA/server.crt';
$soapbox->certRequest['passphrase']='passphrase';
$soapbox->certRequest['sslkeyfile']='/CA/server.key';
$soapbox->certRequest['verifypeer']=0;
$soapbox->certRequest['verifyhost']=0;
 

echo "<pre>";
$returns=$soapbox->call("Get Opportunity List","");
$error=$soapbox->getError();
echo $soapbox->debug_str;
echo $error;
echo "<hr>";
echo $returns;
exit;
 
?>
 
 
below is the output of the execution
 
2006-01-05 13:19:25.844284 soapclient1: instantiate SOAP with endpoint
at https://atws.grants.gov:446/AgencyIntegration/GetOpportunityList

2006-01-05 13:19:25.845267 soapclient1: call: operation=Get Opportunity
List, namespace=http://tempuri.org, soapAction=, rpcParams=, style=rpc,
use=encoded, endpointType=soap

params=string(0) ""

headers=bool(false)

2006-01-05 13:19:25.845967 soapclient1: serializing param string for
operation Get Opportunity List

2006-01-05 13:19:25.846118 soapclient1: wrapping RPC request with
encoded method element

2006-01-05 13:19:25.846298 soapclient1: In serializeEnvelope length=93
body (max 1000 characters)= style=rpc use=encoded
encodingStyle=http://schemas.xmlsoap.org/soap/encoding/

2006-01-05 13:19:25.846373 soapclient1: headers:

bool(false)

2006-01-05 13:19:25.846549 soapclient1: namespaces:

array(0) {

}

2006-01-05 13:19:25.846907 soapclient1:
endpoint=https://atws.grants.gov:446/AgencyIntegration/GetOpportunityLis
t, soapAction=, namespace=http://tempuri.org, style=rpc, use=encoded,
encodingStyle=http://schemas.xmlsoap.org/soap/encoding/

2006-01-05 13:19:25.847008 soapclient1: SOAP message length=490 contents
(max 1000 bytes)=2006-01-05 13:19:25.847312 soapclient1: transporting
via HTTP

2006-01-05 13:19:25.848948 soapclient1: sending message, length=490

2006-01-05 13:19:25.847774 soap_transport_http: scheme = https

2006-01-05 13:19:25.847901 soap_transport_http: host = atws.grants.gov

2006-01-05 13:19:25.847985 soap_transport_http: port = 446

2006-01-05 13:19:25.848062 soap_transport_http: path =
/AgencyIntegration/GetOpportunityList

2006-01-05 13:19:25.848188 soap_transport_http: set Host:
atws.grants.gov:446

2006-01-05 13:19:25.848424 soap_transport_http: set User-Agent:
NuSOAP/0.7.2 (1.94)

2006-01-05 13:19:25.848565 soap_transport_http: set Content-Type:
text/xml; charset=ISO-8859-1

2006-01-05 13:19:25.848657 soap_transport_http: set SOAPAction: ""

2006-01-05 13:19:25.848769 soap_transport_http: Set credentials for
authtype certificate

2006-01-05 13:19:25.848865 soap_transport_http: Authorization header not
set

2006-01-05 13:19:25.849175 soap_transport_http: entered send() with data
of length: 490

2006-01-05 13:19:25.849356 soap_transport_http: connect
connection_timeout 0, response_timeout 30, scheme https, host
atws.grants.gov, port 446

2006-01-05 13:19:25.849455 soap_transport_http: connect using https

2006-01-05 13:19:25.850613 soap_transport_http: cURL connection set up

2006-01-05 13:19:25.850824 soap_transport_http: set Content-Length: 490

2006-01-05 13:19:25.850919 soap_transport_http: HTTP request: POST
/AgencyIntegration/GetOpportunityList HTTP/1.0

2006-01-05 13:19:25.851016 soap_transport_http: HTTP header: Host:
atws.grants.gov:446

2006-01-05 13:19:25.851146 soap_transport_http: HTTP header: User-Agent:
NuSOAP/0.7.2 (1.94)

2006-01-05 13:19:25.851232 soap_transport_http: HTTP header:
Content-Type: text/xml; charset=ISO-8859-1

2006-01-05 13:19:25.851317 soap_transport_http: HTTP header: SOAPAction:
""

2006-01-05 13:19:25.851402 soap_transport_http: HTTP header:
Content-Length: 490

2006-01-05 13:19:25.851659 soap_transport_http: set cURL payload

2006-01-05 13:19:25.851843 soap_transport_http: send and receive with
cURL

2006-01-05 13:19:27.525473 soap_transport_http: cURL ERROR: 35: SSL:
error:14094412:SSL routines:func(148):reason(1042)

url: https://atws.grants.gov:446/AgencyIntegration/GetOpportunityList

http_code: 0

header_size: 0

request_size: 0

filetime: -1

ssl_verify_result: 0

redirect_count: 0

total_time: 0

namelookup_time: 0.004

connect_time: 0.101

pretransfer_time: 0

size_upload: 0

size_download: 0

speed_download: 0

speed_upload: 0

download_content_length: 0

upload_content_length: 0

starttransfer_time: 0

redirect_time: 0

2006-01-05 13:19:27.525922 soap_transport_http: end of send()

2006-01-05 13:19:27.526214 soapclient1: Error: HTTP Error: cURL ERROR:
35: SSL: error:14094412:SSL routines:func(148):reason(1042)

url: https://atws.grants.gov:446/AgencyIntegration/GetOpportunityList

http_code: 0

header_size: 0

request_size: 0

filetime: -1

ssl_verify_result: 0

redirect_count: 0

total_time: 0

namelookup_time: 0.004

connect_time: 0.101

pretransfer_time: 0

size_upload: 0

size_download: 0

speed_download: 0

speed_upload: 0

download_content_length: 0

upload_content_length: 0

starttransfer_time: 0

redirect_time: 0

HTTP Error: cURL ERROR: 35: SSL: error:14094412:SSL
routines:func(148):reason(1042)

url: https://atws.grants.gov:446/AgencyIntegration/GetOpportunityList

http_code: 0

header_size: 0

request_size: 0

filetime: -1

ssl_verify_result: 0

redirect_count: 0

total_time: 0

namelookup_time: 0.004

connect_time: 0.101

pretransfer_time: 0

size_upload: 0

size_download: 0

speed_download: 0

speed_upload: 0

download_content_length: 0

upload_content_length: 0

starttransfer_time: 0

redirect_time: 0

_______________________________________________
http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php
Received on 2006-01-05