Websocket transport with SSL connection problem

2,567 views
Skip to first unread message

Saravanan R

unread,
Jun 4, 2016, 10:26:17 AM6/4/16
to meetecho-janus
Hi,

   I installed SSL[not self signed] to Janus server , REST transport is working fine. But When i connect using websocket transport socket is not get connecting. i get following error

WebSocket connection to 'wss://www.hexodetech.com:8989/' failed: Error in connection establishment: net::ERR_SSL_PROTOCOL_ERROR

janus.js:499   Error connecting to the Janus WebSockets server... wss://www.hexodetech.com:8989error @ janus.js:499

screenShare.js:117   Error connecting to the Janus WebSockets server: Is the gateway down?

here is the example link. 


view the console logs for details. 

I installed same SSL only for node and Janus

Lorenzo Miniero

unread,
Jun 4, 2016, 4:55:53 PM6/4/16
to meetecho-janus
Not sure as I never used the secure WebSockets support myself. You may have to add the certificate authority to the certificate file as well, but that's only a guess. If all of that fails, an easy workaround is to proxy WebSockets requests in a server like httpd/ngingx/haproxy or something like that towards the unprotected version in Janus, and let them worry about security: https://janus.conf.meetecho.com/docs/deploy

L.

Olga Khylkouskaya

unread,
Nov 8, 2016, 8:39:34 PM11/8/16
to meetecho-janus
Hello, 

I proxy wss through hitch, but decided to configure wss only through Janus. I use libwebsocket 2.0 and boring ssl.
Have the same error in the latest Chrome as described above: ERR_SSL_PROTOCOL_ERROR. This happens on connection from browser to Janus wss.
Any idea how to enable the most detailed logging in Janus and see what library is used for ssl, version...?

Mirko Brankovic

unread,
Nov 9, 2016, 3:13:58 AM11/9/16
to meetecho-janus
Hey I had a same problem with libwebsocket 2.1, but when I reverted back to 1.5 connection was ok, so they must of changed a lot in 2.0 version :)

Lorenzo Miniero

unread,
Nov 9, 2016, 11:26:47 AM11/9/16
to meetecho-janus
2.0 definitely works, it's what I have. I guess 2.1 changed.

L.

Olga Khylkouskaya

unread,
Nov 9, 2016, 7:47:45 PM11/9/16
to meetecho-janus
Thank you Mirko, 

I remember I was getting connection for wss when using <1.6 libwebsockets. 2.0 doesn't work for wss.
Lorenzo, do you see any issues using libwebsockets 1.5 or 1.6? I don't want to discovery that after a while. Better to stick with hitch for now.
Please specify if you know the problems with old libwebsockets, just from top of your mind.

Mirko Brankovic

unread,
Nov 10, 2016, 4:25:12 AM11/10/16
to meetecho-janus
Yes 2.0 was ok, sorry and thanks Lorenzo.
Reply all
Reply to author
Forward
0 new messages