Requests failing to connect to a TLS server

Viewed 2134

I'm having an issue tracking down why requests fails to connect to a specific host.

The following works just fine via curl, or browser:

curl https://banking4.anz.com

However if I use requests:

requests.get('https://banking4.anz.com')

I get:

SSLError: ("bad handshake: SysCallError(-1, 'Unexpected EOF')",)

On the wire, I see only the client hello and the server disconnects immediately, so it doesn't seem like any ssl or cipher incompatibility. (I'd expect an SSL-layer error for those) What else could be an issue in this case?

I'm on python 3.6.1 with requests 2.14.2 (with security extras).

1 Answers
Related