python - SSL错误 : sslv3 alert handshake failure

标签 python ssl openssl branch.io

我正在对 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 .我做了以下工作:

  1. easy_install pyOpenSSL
  2. easy_install ndg-httpsclient
  3. easy_install pyasn1

如果您在使用 urllib2 时遇到此错误,您还需要升级到 python 2.7.9 或更高版本。

关于python - SSL错误 : sslv3 alert handshake failure,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35405092/

相关文章:

ruby - SSL 连接错误

mysql ssl连接挂起

python - 使用 JS + Python 延迟查找 facebook cookie

python - 如何在电报机器人对话处理程序的对话中保存数据

apache - 启用 https 到 Xampp localhost

c - 使用具有不同 key 的 AES 得到相同的短加密结果

c++ - 有没有办法用静态 OpenSSL 构建静态 Qt?

python - 角上的小部件 QTabBar 不在角上

python - 如何在从 PySimpleGUI 库创建的窗口对象中制作可调整大小的元素?

java - Spring Boot Api 休息 SSL