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 versions:
local: OpenSSL 0.9.8zg 14 July 2015
server: OpenSSL 0.9.8e-fips-rhel5 01 Jul 2008
Python:
local: 2.7.10 server: 2.7.6
Branch io server connection:
Chrome verified that DigiCert SHA2 Secure Server CA issued this website's certificate. The server did not supply any Certificate Transparency information.
I tried urllib2, but the result was same. Any help?
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
If you're getting this error while using urllib2, you'll need to upgrade to python 2.7.9 or later too.
来源:https://stackoverflow.com/questions/35405092/sslerror-sslv3-alert-handshake-failure