【发布时间】:2014-02-17 14:29:54
【问题描述】:
我正在使用 SOAP 与 Web 服务进行通信。我在一个有问题的服务器上运行它,但它运行良好。现在我在更好的服务器上运行它,但配置不同。
在新服务器上,我遇到了身份验证错误,我认为问题是 curl 的 SSL 版本。我认为应该是 OpenSSL 的某个地方。在两台服务器上执行phpinfo() 会给我带来不同。
工作服务器:SSL Version OpenSSL/0.9.8b.
服务器不工作:SSL Version NSS/3.13.1.0
服务器是带有 CentOS v6 和 Parallels Plesk Panel 11.5 的 VPS
编辑
Web 服务需要 NTLM 身份验证,因此我正在使用此类,它在旧服务器上运行良好。 http://tcsoftware.net/blog/2011/08/php-soapclient-authentication/
【问题讨论】:
-
您遇到了哪些身份验证错误?
-
401 错误:完成错误
Error Code: 401 Unauthorized. The server requires authorization to fulfill the request. Access to the Web server is denied. Contact the server administrator. (12209). -
我遇到了与 PHP curl 类似的问题,但我收到了这个错误:“SSL 连接错误。”为了解决这个问题(也许它也可以帮助你)我设置了这个 curl 选项:
curl_setopt($ch, CURLOPT_SSL_CIPHER_LIST, "rsa_rc4_128_sha");