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

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

问题描述

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



在上午1点我的时间(我在CET时区)一切工作完美,我打磨了代码,功能和它正在工作,因为它应该。我在睡觉前进行了三重检查,一切都正常工作。



我早上醒来,与Paypal没有什么关系。一点点解释我在使用之前,我显示你的实际代码和错误。我使用Express Checkout和 Paypal自适应Payments SDK



我有一些虚拟帐户,我在developer.paypal.com上,为了模拟促进者(所有者)和买方交互,因为我有场景,当所有者给钱给用户,反之亦然。无论如何,他们都工作完美,现在他们都抛出这个错误(在Adaptive Payments SDK,它告诉我在哪一行代码是一个错误,在Express Checkout,因为那是通过文档做的代码,它不会显示在哪个文件错误:但是它是相同的错误):


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


现在看到这则讯息后, https://devblog.paypal.com/poodle-ssl-3-0-vulnerability/ 你完全禁用了SSL,我意识到问题出在实际上。您希望您的用户现在使用TLS,这是完全正常。我三次检查我的服务器已启用TLS,它做了,我改变了(超过一百万次)我的配置设置使用cURL中的TLS(因为我使用PHP)通过做以下操作:



curl_setopt($ ch,CURLOPT_SSLVERSION,1); (这是它在Express Checkout和自适应Payments中的样子关联数组,但它是真的相同的事情在两个)



我也发现在某处和你的建议,实际更新我的api凭据。我做到了。我去paypal.com - > API,然后点击更新工作,但后来我注意到,在我的developer.paypal.com帐户,我有几个虚拟帐户没有什么改变。我应该手动更新这些或什么?



编辑:



这是发送到Paypal支持,我真的很急,整个事情再次,所以很抱歉!问题是固定,感谢任何实际花时间阅读它的人。



问题已修复,添加 CURLOPT_SSL_CIPHER_LIST => 'TLSv1'到我的PPHttpConfig.php文件! :)

解决方案

尝试添加

  CURLOPT_SSL_CIPHER_LIST => '         文件。我有同样的问题,你和花了几个小时来找到解决方案。这对我有用。


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.

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.

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.

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):

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

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); (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)

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?

Edit:

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.

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

解决方案

Try add

CURLOPT_SSL_CIPHER_LIST => 'TLSv1'

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天全站免登陆