Closed thomaswpp closed 6 years ago
With modern OpenSSL defaults it turns out that this server shuts the connection down. Likely this is because the remote server is getting confused by us advertising support for TLSv1.1 and 1.2. You could try changing your context = create_urllib3_context(ciphers=CIPHERS)
line to:
context =create_urllib3_context(ciphers=CIPHERS)
context.options |= ssl.OP_NO_TLSv1_2 | ssl.OP_NO_TLSv1_1
that might help.
I tried, but it's the same mistake. I've tried everything, but my knowledge is limited and I do not know what I can try more.
It's very hard to know what's going on here: this server's configuration is so bad that it may simply not be possible to communicate with it using your copy of OpenSSL.
Thanks for everything, you're right, the server is really bad.
I got the same error message (SSLError(SSLError("bad handshake: SysCallError(-1, 'Unexpected EOF')",)
), but after doing pip install ndg-httpsclient
my troubles went away.
@epleterte how just installing a module can help? You do not import it at some point?
@amirouche Requests detects the presence of certain modules and uses them to enhance security on old and insecure versions of Python.
Summary. I'm on Mint 18.01 and I try requests in site https://www.sifge.caixa.gov.br/Cidadao/Crf/FgeCfSCriteriosPesquisa.asp, but not function.. I did download certificate in the firefox and then I add certificate in /etc/ssl/cert with comand
And then I add the variable at the end of the file ~/.bashrc
And I executed command
Actual Result
Reproduction Steps
System Information