Open eavdmeer opened 4 years ago
Is the proxy a HTTPS endpoint or plain HTTP?
I'm not sure. The proxy URL is http, not https. Is there any way to find out?
You can use opessl's s_client:
openssl s_client -connect server.com:443 (or whatever port it's listening on)
CONNECTED(00000003) 140655881995944:error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol:s23_clnt.c:797: --- no peer certificate available --- No client certificate CA names sent --- SSL handshake has read 7 bytes and written 305 bytes --- New, (NONE), Cipher is (NONE) Secure Renegotiation IS NOT supported Compression: NONE Expansion: NONE No ALPN negotiated SSL-Session: Protocol : TLSv1.2 Cipher : 0000 Session-ID: Session-ID-ctx: Master-Key: Key-Arg : None PSK identity: None PSK identity hint: None SRP username: None Start Time: 1591373184 Timeout : 300 (sec) Verify return code: 0 (ok) ---
Looks like the endpoint isn't HTTPS. Does the proxy url start with https://
? That might be causing the issue.
The proxy URL is in the logs I included. It starts with http://
Just to be clear. In this command:
openssl s_client -connect server.com:443 (or whatever port it's listening on)
Do you want me to connect to the actual endpoint or the proxy itself?
openssl will not connect to the endpoint, because I'm on an Intranet that does not provide DNS for external websites like the host I'm connecting to:
mapbox-node-binary.s3.amazonaws.com
The installed openssl version is 1.0.x, so it does not support the -proxy option
I ran into an error installing the sqlite3 node module where on one account it would install fine, while on another it doesn't. The difference turned out to be one using request, while the other, failing one, used needle. All use the same http_proxy URL from the environment.
The account where it works shows this;
I built a simple code example, using needle, request and https/https-proxy-agent.
The resulting HTTP codes are:
The same URL works fine in curl and wget, which both use the same http_proxy variable.
The proxy responds with the following:
Basically, this issue is preventing me from upgrading to node v10 as I need the binary part of the sqlite3 lib. Without that, I'm stuck on v6. The build fallback fails as this is an older version of the C-compiler that cannot be upgraded.