ECONNRESET using https to TLSv1.2 site
I'm trying to use a module that connects to a TLSv1.2 server. I can't set https options, so I can't control how the connection is established.
Here's what I've observed, with reproducible, condensed tests:
I have these two tests:
_CONTROL:_
```
require('https').get('https://google.com', function(res) {
res.pipe(process.stdout);
});
```
_SLACK:_
```
require('https').get('https://ms136.slack-msgs.com', function(res) {
res.pipe(process.stdout);
});
```
_CURL:_
`curl <url> for both cases.`
On my local computer:
Control: Works.
Slack: Works.
Curl: Works
On a cloud instance of Ubuntu:
Control: Works.
Slack: Fails (ECONNRESET)
Curl: Control –works, Slack –`Unknown SSL Protoco`l (Exit code #35)
_Extra notes on cloud ubuntu_:
Node: 0.12.7
OpenSSL: 1.0.1f (I tried upgrading to 1.0.1p but that also fails)
I was able to connect manually via `openssl s_client –connect <url>` So this isn't firewall related
Local has curl v.7.43, Ubuntu has curl v7.35
Two questions:
1) Does node use any underlying system libraries like openSSL or libcurl, or does it ship with its own?
2) Any pointers on what I could check to resolve this?
关闭于 2023-04-22 0 条评论