SSL 错误无法更改为 TLS [英] SSL error can not change to TLS

查看:44
本文介绍了SSL 错误无法更改为 TLS的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在一个高度依赖 Paypal 正常工作的网站上工作了很长时间.没有它,真的没用.

I have been working for quite some time on a website that highly depends on Paypal working properly on it. Without it, it is really useless.

大约凌晨 1 点我的时间(我在 CET 时区)一切正常,我完善了代码和功能,它按预期工作.我在睡觉前做了三重检查,一切正常.

Around 1 in the morning my time (I am at CET timezone) everything working perfectly, I polished up the code, functions and it was working as it should. I made triple checks before I went to sleep that everything works as it should.

我早上醒来,发现与 Paypal 无关的任何东西都有效.在向您展示实际代码和错误之前,先解释一下我正在使用的内容.我正在使用 Express Checkout 和 Paypal Adaptive Payments SDK.

I wake up in the morning and nothing that has to do with Paypal actually works. A little bit of an explanation of what I am using before I show you the actual code and error. I am using Express Checkout and Paypal Adaptive Payments SDK.

我在 developer.paypal.com 上创建了一些虚拟"帐户,以模拟服务商(所有者)和买家之间的互动,因为我遇到过所有者向用户付款,反之亦然的情况.无论如何,它们都运行良好,现在它们都抛出了这个错误(在 Adaptive Payments SDK 中,它告诉我哪一行代码是错误的,而在 Express Checkout 中,因为这是通过文档完成的代码,它没有显示在哪个文件中错误是但它是相同的错误):

I have a few "virtual" accounts that I made on developer.paypal.com in order to simulate facilitator (owner) and buyer interaction since I have scenario when owner gives money to ther user and visa versa. Anyhow they both worked perfectly and now they both throw this error (in Adaptive Payments SDK, it tells me in which line of code is a mistake and in Express Checkout since that is code that is done via documentation it does not show in which file the error is but it is the same error):

'错误:14077410:SSL 例程:SSL23_GET_SERVER_HELLO:sslv3 警报握手失败'

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

现在我看到这篇文章后https://devblog.paypal.com/poodle-ssl-3-0-vulnerability/ 你刚刚完全禁用了 SSL,我意识到问题实际上出在那里.您希望您的用户现在使用 TLS,这完全没问题.我三次检查我的服务器是否启用了 TLS 并且它启用了并且我通过执行以下操作更改了(已经超过一百万次)我的配置设置以在 cURL 中使用该 TLS(因为我使用的是 PHP):

Now after I saw this post https://devblog.paypal.com/poodle-ssl-3-0-vulnerability/ that you just disabled SSL totally, I realized that the problem is in that actually. You want your users to use TLS now which is totally fine. I triple checked that my server has TLS enabled and it does and I changed (for over a million times already) my config settings to use that TLS in cURL (since I am using PHP) by doing something like:

curl_setopt($ch, CURLOPT_SSLVERSION, 1);(这是在 Express Checkout 和 Adaptive Payments 中的样子,它只是一个关联数组,但在两者中实际上是一回事)

curl_setopt($ch, CURLOPT_SSLVERSION, 1); (this is how it looks like in Express Checkout and in Adaptive Payments it is just an associative array , but it is really the same thing in both)

我还在某处和您的建议中找到了实际更新我的 api 凭据的信息.我就是这么做的.我去了 paypal.com -> API,然后单击了有效的更新,但后来我注意到在我的 developer.paypal.com 帐户上,我有几个虚拟帐户没有任何变化.我应该手动更新那些还是什么?

I also found somewhere and in your advices to actually update my api credentials. I did that. I went to paypal.com -> API and then clicked update which worked, but then I noticed that on my developer.paypal.com account where I have a few of virtual accounts nothing has changed. Should I update those manually or what?

这已发送给 Paypal 支持,我真的很着急,无法再次写下整个内容,对此深表歉意!问题已修复,感谢任何真正花时间阅读它的人.

This was sent to Paypal support and I was really in a hurry and could not write the entire thing again, so sorry about that! Issue is fixed thanks to anyone who actually took time to read it.

问题已通过添加 CURLOPT_SSL_CIPHER_LIST => 解决.'TLSv1' 到我的 PPHttpConfig.php 文件!:)

The issue was fixed with the adding CURLOPT_SSL_CIPHER_LIST => 'TLSv1' to my PPHttpConfig.php file! :)

推荐答案

尝试添加

CURLOPT_SSL_CIPHER_LIST => 'TLSv1'

到您的 PPHttpConfig.php 文件.我和你有同样的问题,花了几个小时来找到解决方案.这对我有用.

to your PPHttpConfig.php file. I had the same issue with you and spent hours to find the solution. This worked for me.

这篇关于SSL 错误无法更改为 TLS的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆