繁体   English   中英

PHP:cURL错误:35:连接到service.mycompany.com的未知SSL协议错误:443

[英]PHP: cURL ERROR: 35: Unknown SSL protocol error in connection to service.mycompany.com:443

今天,我已经在我的测试环境(XAMP)上使用nusoap库创建了一个消耗wcf webservice页面的客户端。 运行正常。 现在,我已将其发送给我的客户,他们已经在生产环境中对其进行了测试。 该Web服务是wcf .net Web服务。

他们得到了这个例外:

wsdl错误:获取https://service.mycompany.nl/SecurityService.svc?wsdl-HTTP错误:cURL错误:35:与service.mycompany.com连接的未知SSL协议错误:443网址: https:// service。 mycompany.com:443/SecurityService.svc?wsdl content_type:http_code:0 header_size:0 request_size:0 filetime:-1 ssl_verify_result:0 redirect_count:0 total_time:0.004144 namelookup_time:0.001897 connect_time:0.00416 pretransfer_time:0 size_upload:0 size_download:0 speed_download:0 speed_upload:0 download_content_length:-1 upload_content_length:-1 starttransfer_time:0 redirect_time:0 certinfo:数组redirect_url:

这是调试信息:

2014-03-11 13:46:07.735808 nusoap_client:ctor wsdl = wsdl超时= 0 response_timeout = 30端点=字符串(54)“ https://service.mycompany.com/SecurityService.svc?wsdl ” 2014-03-11 13:46:07.735897 nusoap_client:将从https://service.mycompany.com/SecurityService.svc?wsdl使用wsdl的延迟评估2014-03-11 13:46:07.735919 nusoap_client:setCredentials username = webservicetestuser authtype = basic certRequest = array(0){} 2014-03-11 13:46:07.735958 nusoap_client:调用:operation = LoginUsernamePassword,namespace = http ://tempuri.org,soapAction =,rpcParams =,style = rpc,use = encoded,endpointType = wsdl params = array(5){[“ Username”] => string(11)“ test@test.com”
[“ Password”] =>字符串(10)“ test!123” [“ ReturnToken”] =>
bool(true)[“ ReturnProfile”] => bool(true)[“ ReturnRoles”] =>
bool(true)} headers = bool(false)2014-03-11 13:46:07.735990 nusoap_client:使用doc实例化wsdl类: https ://service.mycompany.com/SecurityService.svc?wsdl 2014-03-11 13 :46:07.736042 wsdl:ctor wsdl = timeout = 0 response_timeout = 30 2014-03-11 13:46:07.736062 wsdl:解析和处理WSDL路径= 2014-03-11 13:46:07.736090 wsdl:setCredentials username = webservicetestuser authtype =基本certRequest = array(0){} 2014-03-11 13:46:07.736111 wsdl:解析和处理WSDL路径= https://service.mycompany.com/SecurityService.svc?wsdl 2014-03-11 13: 46:07.736127 wsdl:在路径=上解析WSDL https://service.mycompany.com/SecurityService.svc?wsdl 2014-03-11 13:46:07.736147 wsdl:获取WSDL http(s)URL https:// service。 mycompany.com/SecurityService.svc?wsdl 2014-03-11 13:46:07.736195 soap_transport_http:ctor url = https://service.mycompany.com/SecurityService.svc?wsdl use_curl = curl_options:array(0){} 2014 -03-11 13:46:07.736223 soap_transport_http:解析的URL方案= https 2014-03-11 13:46:07。 736238 soap_transport_http:解析的URL主机= service.mycompany.com 2014-03-11 13:46:07.736252 soap_transport_http:解析的URL路径= /SecurityService.svc 2014-03-11 13:46:07.736266 soap_transport_http:解析的URL查询= wsdl 2014 -03-11 13:46:07.736289 soap_transport_http:设置标头主机:service.mycompany.com 2014-03-11 13:46:07.736336 soap_transport_http:设置标头User-Agent:NuSOAP / 0.9.5(1.123)2014-03- 11 13:46:07.736359 soap_transport_http:setCredentials用户名= webservicetestuser authtype =基本gestureRequest = array(0){} 2014-03-11 13:46:07.736378 soap_transport_http:certRequest = array(0){} 2014-03-11 13: 46:07.736402 soap_transport_http:设置标头授权:基本bWlqbnNlaF9uZXRieXRlczojbjN0Ynl0MzU = 2014-03-11 13:46:07.736423 soap_transport_http:设置标头Accept-Encoding:gzip,deflate 2014-03-11 13:46:07.736439 set_transport 2014-03-11 13:46:07.736457 soap_transport_http:输入的send()的数据长度为0 2014-03-11 13:46 :07.736476 soap_transport_http:连接connection_timeout 0,response_timeout 30,方案https,host service.mycompany.com,端口443 2014-03-11 13:46:07.736507 soap_transport_http:使用cURL连接2014-03-11 13:46:07.736597 soap_transport_http: setCurlOption选项= 10002,值=字符串(58)“ https://service.mycompany.com:443/SecurityService.svc?wsdl ” 2014-03-11 13:46:07.736641 soap_transport_http:setCurlOption选项= 52,值=整数(1)2014-03-11 13:46:07.736662 soap_transport_http:setCurlOption option = 42,value = int(1)2014-03-11 13:46:07.736680 soap_transport_http:setCurlOption option = 19913,value = int(1)2014 -03-11 13:46:07.736700 soap_transport_http:setCurlOption选项= 13,值= int(30)2014-03-11 13:46:07.736718 soap_transport_http:设置cURL SSL验证选项2014-03-11 13:46:07.736731 soap_transport_http :setCurlOption选项= 64,值= int(0)2014-03-11 13:46:07.736749 soap_transport_http:setCurlOption选项= 81,值= int(0)2014-03-11 13:46:07.736768 soap_transpor t_http:设置cURL用户名/密码2014-03-11 13:46:07.736783 soap_transport_http:setCurlOption选项= 10005,值=字符串(26)“ webservicetestuser:webservicetestpassword” 2014-03-11 13:46:07.736802 soap_transport_http:设置cURL用于基本身份验证2014-03-11 13:46:07.736818 soap_transport_http:setCurlOption选项= 107,值= int(1)2014-03-11 13:46:07.736841 soap_transport_http:cURL连接设置2014-03-11 13:46: 07.736865 soap_transport_http:HTTP请求:GET /SecurityService.svc?wsdl HTTP / 1.1 2014-03-11 13:46:07.736882 soap_transport_http:HTTP标头:主机:service.mycompany.com 2014-03-11 13:46:07.736898 soap_transport_http: HTTP标头:User-Agent:NuSOAP / 0.9.5(1.123)2014-03-11 13:46:07.736912 soap_transport_http:HTTP标头:授权:基本bWlqbnNlaF9uZXRieXRlczojbjN0Ynl0MzU = 2014-03-11 13:46:07.736926 soap_transport_http:HTTP标头: Accept-Encoding:gzip,deflate 2014-03-11 13:46:07.736939 soap_transport_http:HTTP标头:连接:关闭2014-03-11 1 3:46:07.736959 soap_transport_http:跳过cURL标头主机:service.mycompany.com 2014-03-11 13:46:07.736976 soap_transport_http:跳过cURL标头授权:基本bWlqbnNlaF9uZXRieXRlczojbjN0Ynl0MzU = 2014-03-11 13:46:07.736 cURL标头连接:关闭2014-03-11 13:46:07.737006 soap_transport_http:setCurlOption选项= 10023,值= array(2){[0] =>字符串(32)“ User-Agent:NuSOAP / 0.9.5(1.123 )“ [1] =>字符串(30)” Accept-Encoding:gzip,deflate“} 2014-03-11 13:46:07.737033 soap_transport_http:set cURL HTTP标头2014-03-11 13:46:07.737048 soap_transport_http:set cURL有效负载2014-03-11 13:46:07.737068 soap_transport_http:使用cURL发送和接收2014-03-11 13:46:08.384096 soap_transport_http:cURL错误:35:连接到service.mycompany.com:443的未知SSL协议错误
网址: https ://service.mycompany.com: 443 / SecurityService.svc ?wsdl
内容类型:
http_code:0
header_size:0
request_size:0
档案时间:-1
ssl_verify_result:0
redirect_count:0
总计时间:0.004144
namelookup_time:0.001897
connect_time:0.00416
pretransfer_time:0
大小上限:0
大小下载:0
speed_download:0
speed_upload:0
download_content_length:-1
upload_content_length:-1
starttransfer_time:0
redirect_time:0
certinfo:数组
redirect_url:
2014-03-11 13:46:08.384176 soap_transport_http:send()的结尾2014-03-11 13:46:08.384212 wsdl:获取https://service.mycompany.com/SecurityService.svc?wsdl-HTTP错误:cURL错误:35:连接到service.mycompany.com的未知SSL协议错误:443
网址: https ://service.mycompany.com: 443 / SecurityService.svc ?wsdl
内容类型:
http_code:0
header_size:0
request_size:0
档案时间:-1
ssl_verify_result:0
redirect_count:0
总计时间:0.004144
namelookup_time:0.001897
connect_time:0.00416
pretransfer_time:0
大小上限:0
大小下载:0
speed_download:0
speed_upload:0
download_content_length:-1
upload_content_length:-1
starttransfer_time:0
redirect_time:0< br> certinfo:数组
redirect_url:
2014-03-11 13:46:08.384270 nusoap_client:checkWSDL 2014-03-11 13:46:08.384291 nusoap_client:wsdl错误:正在获取https://service.mycompany.com/SecurityService.svc?wsdl-HTTP错误:cURL错误:35:连接到service.mycompany.com的未知SSL协议错误:443
网址: https ://service.mycompany.com: 443 / SecurityService.svc ?wsdl
内容类型:
http_code:0
header_size:0
request_size:0
档案时间:-1
ssl_verify_result:0
redirect_count:0
总计时间:0.004144
namelookup_time:0.001897
connect_time:0.00416
pretransfer_time:0
大小上限:0
大小下载:0
speed_download:0
speed_upload:0
download_content_length:-1
upload_content_length:-1
starttransfer_time:0&l t; br> redirect_time:0
certinfo:数组
redirect_url:

我猜这是Curl中的错误,因为在结果中您有以下内容:

ssl_verify_result:0

http://grokbase.com/t/php/php-bugs/07azn3bj39/43158-new-ssl-verify-result-0

尝试分别更改您的Curl版本和php版本。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM