【问题标题】:curl error 35, possible reasons?curl错误35,可能的原因?
【发布时间】:2011-05-22 23:52:00
【问题描述】:

昨天问题出现了——从 curl 获得以下答案(由 curl_exec 在 php 脚本中调用):

$<errno>35</errno>
$<error>Unknown SSL protocol error in connection to w3s.webmoney.ru:443 </error>

该错误仅有时会发生,大约 4-5 个有效响应对一个无效的 35 个错误的响应。昨天之前,应用程序在很长一段时间内都正确处理了这些请求。

希望有人能提示我该错误的可能原因。

附:我们最近遇到了互联网连接问题,它可以以某种方式连接到那个错误吗?

更新: 将详细输出设置为 true 使 curl 写入以下日志:

* About to connect() to w3s.webmoney.ru port 443 (#0)
*   Trying 82.198.171.158... * connected
* Connected to w3s.webmoney.ru (82.198.171.158) port 443 (#0)
* successfully set certificate verify locations:
*   CAfile: ${path}/WebMoneyCA.crt
  CApath: /etc/ssl/certs
* SSL connection using RC4-MD5
* Server certificate:
*        subject: C=RU; O=WebMoney Transfer; OU=WebMoney Web Service; CN=w3s.webmoney.ru
*        start date: 2010-06-07 10:03:43 GMT
*        expire date: 2012-06-07 10:13:43 GMT
*        common name: w3s.webmoney.ru (matched)
*        issuer: OU=WM Transfer Certification Services; O=WM Transfer Ltd; CN=WebMoney Transfer Root CA
*        SSL certificate verify ok.
> POST /asp/XMLPurses.asp HTTP/1.1
Host: w3s.webmoney.ru
Accept: */*
Content-Length: 281
Content-Type: application/x-www-form-urlencoded

< HTTP/1.1 200 OK
< Date: Fri, 10 Dec 2010 13:00:04 GMT
< Server: Microsoft-IIS/6.0
< X-Powered-By: ASP.NET
< Content-Length: 4423
< Content-Type: text/xml; Charset=windows-1251
< Expires: Fri, 10 Dec 2010 13:00:04 GMT
< Set-Cookie: ASPSESSIONIDQADQDTAQ=FJMNECHBENFFAADHEHPFOKAE; path=/
< Cache-control: private
<
* Connection #0 to host w3s.webmoney.ru left intact
* Closing connection #0
* About to connect() to w3s.webmoney.ru port 443 (#0)
*   Trying 212.158.173.158... * connected
* Connected to w3s.webmoney.ru (212.158.173.158) port 443 (#0)
* successfully set certificate verify locations:
*   CAfile: ${path}/WebMoneyCA.crt
  CApath: /etc/ssl/certs
* Unknown SSL protocol error in connection to w3s.webmoney.ru:443
* Closing connection #0

更新: 麻烦不在我们这边。问题隐藏在 w3s.webmoney.ru 的某个地方,在 212.158.173.158 服务器中。如果有信息,我将添加有关该错误的更多详细信息。

【问题讨论】:

  • 尝试将 CURLOPT_VERBOSE 设置为 true 并将日志添加到此问题中。错误 35 表示 SSL/TLS 握手期间出现问题,可能是由很多事情引起的。

标签: php ssl curl https


【解决方案1】:

从 WM 支持人员那里得到以下回复:

“主机名 w3s.webmoney.ru 上有四个 IP 地址。当请求结束于 212.158.173.158 时,SSL 被提供商的一块反 DDoS 硬件杀死。问题已本地化,他们”现在正在尝试修复它。”

【讨论】:

  • 我得到的信息比你的要少:支持人员只是说他们知道这个问题,并建议将请求发送到任何其他 IP 地址。
  • @n0weak: 有一段时间没看到这个错误了。猜猜他们终于修好了。
猜你喜欢
  • 1970-01-01
  • 2016-08-15
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2019-02-13
  • 2018-06-16
  • 2012-10-10
  • 1970-01-01
相关资源
最近更新 更多