-
Notifications
You must be signed in to change notification settings - Fork 7.3k
https.get via proxy generates SSL3_GET_RECORD wrong version number error #6779
Comments
Thanks for filling this! May I ask you to redo your test case without any external (non-core) modules? |
Also, do you know what software runs on that server? |
Hi @indutny, I have reduced the test case as requested and edited my original post. The error I get is still the same. In terms of what software the server uses, when I do a curl I get the following: > curl -v -o /dev/null https://codeload.github.com/n1k0/casperjs/zip/1.0.3
* About to connect() to proxy my__proxy_IP port my__proxy_port (#0)
* Trying my__proxy_IP...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0* connected
* Connected to my__proxy_IP (my__proxy_IP) port my__proxy_port (#0)
* Establish HTTP proxy tunnel to codeload.github.com:443
* Proxy auth using Basic with user 'my_username'
> CONNECT codeload.github.com:443 HTTP/1.1
> Host: codeload.github.com:443
> Proxy-Authorization: Basic my_password_base64encoded
> User-Agent: curl/7.24.0 (x86_64-apple-darwin12.0) libcurl/7.24.0 OpenSSL/0.9.8y zlib/1.2.5
> Proxy-Connection: Keep-Alive
>
< HTTP/1.0 200 Connection established
<
* Proxy replied OK to CONNECT request
* SSLv3, TLS handshake, Client hello (1):
} [data not shown]
* SSLv3, TLS handshake, Server hello (2):
{ [data not shown]
* SSLv3, TLS handshake, CERT (11):
{ [data not shown]
* SSLv3, TLS handshake, Server finished (14):
{ [data not shown]
* SSLv3, TLS handshake, Client key exchange (16):
} [data not shown]
* SSLv3, TLS change cipher, Client hello (1):
} [data not shown]
* SSLv3, TLS handshake, Finished (20):
} [data not shown]
* SSLv3, TLS change cipher, Client hello (1):
{ [data not shown]
* SSLv3, TLS handshake, Finished (20):
{ [data not shown]
* SSL connection using RC4-SHA
|
Actually, I meant your proxy. Sorry for wrong wording. |
We're running Squid http://www.squid-cache.org/ |
@foiseworth hey man, sorry for a delay. Do you have resources to spawn a proxy with a public ip to simplify testing for us? If you wish to - please contact me privately ( fedor@indutny.com ). |
NP @indutny - I'll see what I can do. I have found at least two other incidents of the same error and the same proxy though: yeoman/generator-generator#36 (comment) and npm/npm#1332 |
@foiseworth as another alternative you can try running tcpdump and send me it privately, so I could use wireshark on it. Please let me know if you need any help with this. |
I'm seeing the same problem (node Originally we were getting NetworkingError: 139755984586560:error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol:../deps/openssl/openssl/ssl/s23_clnt.c:766 ..so I set the https.Agent to agent.options.secureProtocol = 'TLSv1_method'; which gave me 140654019671872:error:1408F10B:SSL routines:SSL3_GET_RECORD:wrong version number:../deps/openssl/openssl/ssl/s3_pkt.c:337 Unfortunately I can't provide a tcpdump but I'll be more than willing to share the code if you can setup an AWS keypair with SQS. |
Are you sure that your squid server supports It seems that it fails just because you're connecting to the port that expects HTTP request. |
@indutny |
I get the following error when attempting to download a zip file from github using https.request via my company proxy:
An error occured whilst trying to download Casper.JS 140735122252160:error:1408F10B:SSL routines:SSL3_GET_RECORD:wrong version number:../deps/openssl/openssl/ssl/s3_pkt.c:337:
I'm attempting to edit the grunt-casperjs install script to allow myself and my colleagues to install behind our proxy. The script fetches Casper from Github and downloads it. Originally the script didn't support a proxy so I copied the grunt-phantomjs proxy support. Phantomjs is downloaded via a http connection and this works fine via our proxy (if I change it to a https URL it fails with the same error).
I have attempted the following:
The text was updated successfully, but these errors were encountered: