SSLError:sslv3警报握手失败 [英] SSLError: sslv3 alert handshake failure
问题描述
我正在对branch.io进行以下调用
I'm making the following call to branch.io
import requests
req = requests.get('https://bnc.lt/m/H3XKyKB3Tq', verify=False)
它在我的本地计算机上工作正常,但在服务器上失败.
It works fine in my local machine but fails in the server.
SSLError: [Errno 1] _ssl.c:504: error:14077410:SSL routines:SSL23_GET_SERVER_HELLO:sslv3 alert handshake failure
Openssl版本:
本地:OpenSSL 0.9.8zg,2015年7月14日
local: OpenSSL 0.9.8zg 14 July 2015
服务器:OpenSSL 0.9.8e-fips-rhel5 2008年7月1日
server: OpenSSL 0.9.8e-fips-rhel5 01 Jul 2008
Python :
本地:2.7.10 服务器:2.7.6
local: 2.7.10 server: 2.7.6
分支io服务器连接:
Chrome浏览器确认DigiCert SHA2 Secure Server CA已颁发此网站的证书.服务器未提供任何证书透明性信息.
Chrome verified that DigiCert SHA2 Secure Server CA issued this website's certificate. The server did not supply any Certificate Transparency information.
我尝试了urllib2,但是结果是相同的.有帮助吗?
I tried urllib2, but the result was same. Any help?
推荐答案
Jyo de Lys 已确定问题. 这里,解决方案是这里一个>.我做了以下工作才能使它正常工作:
Jyo de Lys has identified the problem. The problem is described here and the solution is here. I did the following to get this working:
- easy_install pyOpenSSL
- easy_install ndg-httpsclient
- easy_install pyasn1
如果在使用urllib2时遇到此错误,则也需要升级到python 2.7.9或更高版本.
If you're getting this error while using urllib2, you'll need to upgrade to python 2.7.9 or later too.
这篇关于SSLError:sslv3警报握手失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!