Python requests SSL version

Posted by Aaron Schif on Ask Ubuntu See other posts from Ask Ubuntu or by Aaron Schif
Published on 2013-07-01T22:04:03Z Indexed on 2013/07/01 23:15 UTC
Read the original article Hit count: 1176

Filed under:
|
|

I am using the python requests module on Ubuntu 13.04. I keep getting the error:

requests.exceptions.SSLError: [Errno 1] _ssl.c:504: error:14077410:SSL routines:SSL23_GET_SERVER_HELLO:sslv3 alert handshake failure

When I use curl, it fails by default but succeeds with the -3 option.

curl https://username:Password@helloworldurl -3

This leads me to believe that it is the SSL version, which I found may be badly supported on ubuntu while searching the error.

Sooo. How do I change or check the SSL version using python preferably with requests.

Note: the url is private and cannot be given out. Sorry.

© Ask Ubuntu or respective owner

Related posts about python

Related posts about ssl