PHP Paypal 错误 : 14077410:SSL routines:SSL23_GET_SERVER_HELLO:sslv3 alert handshake failure

标签 php paypal

今天一个运行良好的 PHP 5.5 网站开始抛出此错误:

error:14077410:SSL routines:SSL23_GET_SERVER_HELLO:sslv3 alert handshake failure

我尝试了许多不同问题的解决方案,但找不到错误。

MAMP SSL error: "error:14077410:SSL routines:SSL23_GET_SERVER_HELLO:sslv3 alert handshake failure"

这里说将 CURLOPT_SSL_VERIFYPEER 更改为 false,但不起作用。

我已经尝试过很多 sslversions 和 cipher_list,但也没有用。

正如我所说,这个问题几天前还没有出现,可能是与 1.6.4 版本有关的新问题。

有什么想法吗?

最佳答案

如果您指向沙盒服务器,则最近进行了一些更新会导致该特定错误。
以下是来自 PayPal 商家技术支持微型网站的关于 SHA-256 升级的信息和链接:

Support SHA-256. PayPal is upgrading SSL certificates on all Live and Sandbox endpoints from SHA-1 to the stronger and more robust SHA-256 algorithm. You will need to update your integration to support certificates using SHA-256.
Discontinue use of the VeriSign G2 Root Certificate. In accordance with industry standards, PayPal will no longer honor secure connections that require the VeriSign G2 Root Certificate for trust validation. Only secure connection requests that are expecting our certificate/trust chain to be signed by the G5 Root Certificate will result in successful secure connections.

直接来自 PayPal 微型网站: SSL Certificate Upgrade

On January 19-20, 2016 The Sandbox endpoints will be upgraded to new SHA-256, 2048-bit certificates:

api.sandbox.paypal.com
api-3t.sandbox.paypal.com
api-aa.sandbox.paypal.com
api-aa-3t.sandbox.paypal.com
svcs.sandbox.paypal.com
pointofsale.sandbox.paypal.com
ipnpb.sandbox.paypal.com
www.sandbox.paypal.com (for IPN)

这里是 PayPal User Guide 的链接包含有关将证书更改为 G5 根证书的详细说明。

关于PHP Paypal 错误 : 14077410:SSL routines:SSL23_GET_SERVER_HELLO:sslv3 alert handshake failure,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34926940/

相关文章:

PayPal NVP API SetExpressCheckout ALLOWNOTE 不工作

PHP 套接字服务器

javascript - Node js paypal rest sdk 401错误

php - 调用未定义的方法 PayPal\Api\Payer::setPayment_method()

c# - Paypal 定期付款交易错误 : 11502 : Token is invalid

paypal - Paypal 中的 notify_url 问题

php - 通过电子邮件回复评论并直接发布在网站评论系统上

php - Symfony cron 作业,奇怪的错误

php - 在 SQL 中创建类(class)表

php - 当浏览器显然自动执行时,rawurldecode() 和 urldecode() 有什么意义?