Janus websocket secure wss

77 views
Skip to first unread message

ahmed hussein

unread,
Dec 16, 2022, 9:09:31 AM12/16/22
to meetech...@googlegroups.com
I have created an android client for janus audio bridge, everything works fine so far. But now I have activated wss in the websocket configuration using a self signed certificate, and I am unable to connect to the wss server, only able to access from ws://
I searched for similar cases but couldn't find a similar case. 

Lorenzo Miniero

unread,
Dec 16, 2022, 9:42:36 AM12/16/22
to meetecho-janus
Better to use a proxy like nginx or apache httpd in front of Janus to do wss:

L.

ahmed hussein

unread,
Dec 17, 2022, 4:23:57 AM12/17/22
to meetecho-janus
I use nginx already following this tutorial 
but the connection always refused to be made I don't know if that related to self signed certificate or I mess something

Lorenzo Miniero

unread,
Dec 17, 2022, 6:11:40 AM12/17/22
to meetecho-janus
If it's a self signed certificate you didn't accept manually before then yes, it's normal. The browser will refuse to connect since it doesn't trust the certificate. Try opening the HTTPS version of the websocket address in a tab, accept the self signed certificate, and then it should work. Of course that's only an option for testing purposes, not really viable in a production environment. Ideally, though, you'll want to serve the web pages through the same nginx that's proxying websockets: in that case, when the user accepts the self signed certificate to open the page, websockets are automatically accepted too.

L.
Reply all
Reply to author
Forward
0 new messages