requests: SSLV3_ALERT_HANDSHAKE_FAILURE in 2.6.2

raise SSLError(e, request=request)
requests.exceptions.SSLError: [SSL: SSLV3_ALERT_HANDSHAKE_FAILURE] sslv3 alert handshake failure (_ssl.c:600)

Started happening consistently after upgrading to Requests 2.6.2. Tested in both Yosemite and Ubuntu 14.04. Python 3.4.3.

Downgrading to Requests 2.6.0 solves the issue.

About this issue

  • Original URL
  • State: closed
  • Created 9 years ago
  • Reactions: 1
  • Comments: 18 (11 by maintainers)

Most upvoted comments

Same problem here with versions 2.12.1 and 2.13.0.

Hotfixed with this:

import requests
requests.packages.urllib3.util.ssl_.DEFAULT_CIPHERS = \
        requests.packages.urllib3.contrib.pyopenssl.ssl._DEFAULT_CIPHERS
response = requests.get(...)