Socket.io-client with WSS and SNI

386 views
Skip to first unread message

Gustavo Machado

unread,
Sep 17, 2013, 11:18:00 AM9/17/13
to sock...@googlegroups.com
Hello,

We used node.js to build a web service that supports SSL with SNI. We are using self-signed SSL certs for testing. We can access HTTPS with no problems from browsers and node.js clients.

We have a problem trying to connect a node.js client using socket.io-client v0.9.16 using WSS (it works perfectly without SSL):

Socket.IO Error: "Error: socket hang up
    at SecurePair.error (tls.js:948:15)
    at EncryptedStream.CryptoStream._done (tls.js:432:17)
    at EncryptedStream.CryptoStream._pull (tls.js:577:12)
    at SecurePair.cycle (tls.js:866:20)
    at EncryptedStream.CryptoStream.end (tls.js:405:13)
    at Socket.onend (stream.js:66:10)
    at Socket.EventEmitter.emit (events.js:126:20)\n    at TCP.onread (net.js:417:51)"

On the node.js client and server we are using the same version of node.js v0.8.14

Any thoughts?

Does anybody know for a fact that socket.io-client can be used with SSL and SNI ?

Thanks!

Gustavo Machado

unread,
Sep 18, 2013, 3:32:59 PM9/18/13
to sock...@googlegroups.com
FYI it worked perfectly after some further testing.

Thanks,
Reply all
Reply to author
Forward
0 new messages