TlsException("SSL handshake error: SysCallError(-1, \'Unexpected EOF\')",)',)
See original GitHub issueHey, I am running mitmproxy in my own python script. I am facing this issue when accessing few websites from Safari. For instance, https://www.pec.it
The complete error provided by the browser is:
502 Bad Gateway
TlsProtocolException('Cannot establish TLS with www.pec.it:443 (sni: www.pec.it): TlsException("SSL handshake error: SysCallError(-1, \'Unexpected EOF\')",)',)
Steps to reproduce the problem:
- Visit https://www.pec.it from Safari, with mitmproxy in the middle.
Any other comments? What have you tried so far?
Everything works good using Chrome or Firefox. Apparently, tested websites do not support TLSv1.2. It happens that as soon as the mitmproxy sends the CHELO message, the server sends back a FIN message and interrupts the connection.
System information
Happens on MacOS Sierra Version 10.12.3, Safari Version 10.0.3 (12602.4.8) and mitmproxy (commit 337b1c9399e525a23dc188ef5df1667f109b108e)
$ mitmproxy --version
Mitmproxy version: 2.0.0 (release version)
Python version: 3.5.2
Platform: Darwin-16.4.0-x86_64-i386-64bit
SSL version: OpenSSL 1.0.2j 26 Sep 2016
Mac version: 10.12.3 ('', '', '') x86_64
Thanks,
Stefano
Issue Analytics
- State:
- Created 7 years ago
- Reactions:2
- Comments:11 (6 by maintainers)
Top Results From Across the Web
TlsException("SSL handshake error: SysCallError(-1 ... - GitHub
Problem Description I'm running mitmproxy on my mac and on an iPhone I've loaded the certificate, trusted. and enabled.
Read more >TLS problem. SSL Handshake error SysCallError - mitmproxy
I'm using mitmdump and I am getting this error CONNECT ... TLS problem. SSL Handshake error SysCallError(-1, 'Unexpected EOF').
Read more >Python: SSLError, bad handshake, Unexpected EOF
I have an issue with connecting to a specific site using Python requests and get this error: HTTPSConnectionPool( ...
Read more >TlsException("SSL handshake error: SysCallError
I am running mitmproxy in my own python script. I am facing this issue when accessing few websites from Safari. For instance, https://www.pec.it....
Read more >IP blocked? "Unexpected EOF" - Help
This is possibly related to New "bad handshake" & similar errors. An IP address is needed to confirm.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@mhils - yes for all domains. No corporate proxy
EDIT:
@mhils if there’s any thing I can provide e.g logs/info please let me know. I’d like to figure why this is happening 🙂 Thank you!
EDIT 2:
Adding some more verbose logs using
$ mitmdump -v --flow-detail 3
. Trying on my own blog:Trying on nomadlist.com:
SOLVED!
I figured that I missed the instructions at the bottom of mitm.it and that on iOS 10.2 and above I had to go to general->about->certs and allow mitmproxy’s certificate.
Sorry for bothering.
@Shaked: For all domains? That shouldn’t be the case. Any corporate proxy?