Hello,
I'm trying to transform the hello-world node.js tutorial in KMS6, from http to https, in order to try screen sharing.
I've uncommented the config file as follow:
"websocket": {
"port": 8888,
"secure": {
"port": 8433,
"certificate": "myCert.pem",
"password": ""
In the index.js, instead of the Websocket:
var ws = new WebSocket('wss://<KMS_IP>/helloworld');
And in the server.js:
as_uri: 'https://<KMS_IP>:443/',
ws_uri: 'wss://<KMS_IP>:8433/kurento'
var options = {
key: fs.readFileSync('./server.key'),
cert: fs.readFileSync('./server.crt'),
requestCert: true,
passphrase: ""
};
var server = https.createServer(options, app).listen(port, function() {
console.log('Kurento Tutorial started');
console.log('Open ' + url.format(asUrl) + ' with a WebRTC capable browser');
});
I can launch the node.js app, and browse to the hello-world index.html page (so the self-signed certificate is good).
When I click on the start button, it throw me this error:
Received message: {"id":"error","message":"Could not find media server at addresswss://<KMS_IP>:8433/kurento. Exiting with error Error: Connection error"}
So it seems that my node.js can't communicate with the kurento media server, I guess.
Did I do something wrong ?
Thanks