I am trying to run the Javascript recording example of Kurento WebRTC as seen in:
http://doc-kurento.readthedocs.org/en/stable/tutorials/js/tutorial-recorder.html
I have setup Kurento on a Ubuntu machine and it is running OK. The service has started as well. Furthermore I tested the Java based example and it was running without any issues.
The js recording example failed with the following error:
Mixed Content: The page at 'https://ABCDEF' was loaded over HTTPS, but attempted to connect to the insecure WebSocket endpoint 'ws://XYZ:8433/'. This request has been blocked; this endpoint must be available over WSS
I changed the ws_uri variable to point to a secure web socket:
ws_uri: 'wss://XYZ:8433',
However, I get the following error now:
WebSocket connection to 'wss://XYZ:8433/' failed: Error in connection establishment: net::ERR_CONNECTION_REFUSED
The kurento server is secured to run over HTTPS using letsencrypt. I used the following instructions to secure the server:
https://doc-kurento.readthedocs.org/en/latest/mastering/securing-kurento-applications.html
However, on the above example it asks to concatenate the following crt files:
cat signing-ca.crt subordinate-ca.crt server.crt > server.pem
I am confused here though, since I could not find the above files. Letsencrypt generates the following .pem files for me:
cert.pem, chain.pem, fullchain.pem, privkey.pem
Should one of the above files be used in the kurento.json.conf file?