Setting up rosbridge websocket ssl for internal network access to webvis.io

asked 2020-12-09 12:23:59 -0500

biaspoint gravatar image

I used the same setup for openssl from here: https://answers.ros.org/question/1986...

Key:
openssl genrsa -out server_key.pem 2048

Certificate Signing Request:
openssl req -new -key server_key.pem -out server_csr.pem

Certificate:
openssl x509 -req -days 1825 -in server_csr.pem -signkey server_key.pem -out server_cert.pem

My launch-file-arguments:

  <arg name="port" default="9090" />  
  <arg name="address" default="" />
  <arg name="ssl" default="true" />
  <arg name="certfile" default="/home/user/ssl/server_cert.pem" />
  <arg name="keyfile" default="/home/user/ssl/server_key.pem" />
  <arg name="authenticate" default="false" />

and can get to the websocket endpoint by going to https://xxx.xxx.x.xxx:9090/

I would like to now be able to connect with the endpoint using webviz.io.
I try to do this be going here: https://webviz.io/app/?rosbridge-webs...

however it never connects... I just get the spinning circle. If I'm on a separate computer (same network) I get the warning about an untrusted certificate and I "agree" to using it, on the same computer I don't get that notice, but still no connection.

edit retag flag offensive close merge delete