簡體   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