elazarl / goproxy

An HTTP proxy library for Go
BSD 3-Clause "New" or "Revised" License
6.06k stars 1.1k forks source link

Proxy does not work with https://sh.rustup.rs #296

Open anidotnet opened 6 years ago

anidotnet commented 6 years ago

I was trying to download rust using this proxy and could not able to due to SSL handshake error while connecting to https://sh.rustup.rs

Here is the detail:

$ curl https://sh.rustup.rs -sSf | sh
curl: (35) error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol

Client system:

Distributor ID: Ubuntu
Description:    Ubuntu 14.04.5 LTS
Release:        14.04
Codename:    trusty
$ curl --version
curl 7.60.0 (x86_64-pc-linux-gnu) libcurl/7.60.0 OpenSSL/1.0.2o zlib/1.2.11
Release-Date: 2018-05-16
Protocols: dict file ftp ftps gopher http https imap imaps pop3 pop3s rtsp smb smbs smtp smtps telnet tftp 
Features: AsynchDNS IPv6 Largefile NTLM NTLM_WB SSL libz TLS-SRP UnixSockets HTTPS-proxy
$ openssl version  
OpenSSL 1.0.2o  27 Mar 2018

Any pointer how to deal with this SSL error? Without proxy it works fine.

elazarl commented 6 years ago

I'd try to use wireshark to sniff the traffic, think what I expected to receive, and compare with what was actually received

On Wed, Jun 27, 2018 at 6:22 PM Anindya Chatterjee notifications@github.com wrote:

I was trying to download rust using this proxy and could not able to due to SSL handshake error while connecting to https://sh.rustup.rs

Here is the detail:

$ curl https://sh.rustup.rs -sSf | sh curl: (35) error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol

Client system:

Distributor ID: Ubuntu Description: Ubuntu 14.04.5 LTS Release: 14.04 Codename: trusty

$ curl --version curl 7.60.0 (x86_64-pc-linux-gnu) libcurl/7.60.0 OpenSSL/1.0.2o zlib/1.2.11 Release-Date: 2018-05-16 Protocols: dict file ftp ftps gopher http https imap imaps pop3 pop3s rtsp smb smbs smtp smtps telnet tftp Features: AsynchDNS IPv6 Largefile NTLM NTLM_WB SSL libz TLS-SRP UnixSockets HTTPS-proxy

$ openssl version OpenSSL 1.0.2o 27 Mar 2018

Any pointer how to deal with this SSL error? Without proxy it works fine.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/elazarl/goproxy/issues/296, or mute the thread https://github.com/notifications/unsubscribe-auth/AAP4okK8OfIkhJWISsTmYLcI_X5YSWVfks5uA6MxgaJpZM4U56l7 .