Socket.io not able to connect over TLS with old node version. #4780
Unanswered
WinstonPais
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Using socket.io-client version
1.7.2
When I use node version
5.10.1
I am not able to connect to the server.With node version
10.19.0
It is able to connect.Note this is happening only for HTTPS.
client side snippet
When i add this paramter it works even for the old node version
rejectUnauthorized: false
So It has to do something with TLS.
I used sslscan and can see all these enabled

When I ran with debug
DEBUG=* node <file.js>
Could see
engine.io-client:socket socket error {"type":"TransportError","description":{"code":"CERT_HAS_EXPIRED","type":"error","target":{"domain":null,"_events":{},"_eventsCount":4,"_socket":null,"_ultron":null,"_closeReceived":false,"bytesReceived":0,"readyState":0,"supports":{"binary":true},"extensions":{},"_binaryType":"nodebuffer","_isServer":false,"url":"wss://<domain>.com/socket.io/?EIO=3&transport=websocket","protocolVersion":13}}} +857ms
This looks to be some issue with the ssl cert itself. Any help here is appreciated.
Beta Was this translation helpful? Give feedback.
All reactions