我正在对 branch.io 进行以下调用
import requests
req = requests.get('https://bnc.lt/m/H3XKyKB3Tq', verify=False)
它在我的本地机器上运行良好,但在服务器上却失败了。
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 日
服务器:OpenSSL 0.9.8e-fips-rhel5 2008 年 7 月 1 日
Python:
本地:2.7.10 服务器:2.7.6
分支 io 服务器连接:
Chrome 验证了 DigiCert SHA2 Secure Server CA 颁发了此网站的证书。服务器未提供任何证书透明度信息。
我尝试了 urllib2,但结果是一样的。有什么帮助吗?
最佳答案
Jyo de Lys已确定问题。问题描述here解决方案是here .我做了以下工作:
- easy_install pyOpenSSL
- easy_install ndg-httpsclient
- easy_install pyasn1
如果您在使用 urllib2 时遇到此错误,您还需要升级到 python 2.7.9 或更高版本。
关于python - SSL错误 : sslv3 alert handshake failure,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35405092/