we’ve modify socket.io config in erizoClient to works through https
connections. Note that you have to modify basic server including https
support (you need to create ssl key and cert previously):
var fs = require(“fs”),
var https = require(“https”);
var options = {
key: fs.readFileSync(‘key.pem’).toString(),
cert: fs.readFileSync(‘cert.pem’).toString()
};
var server = https.createServer(options, app);
server.listen(443);
I’m going to publish this thread in our developers list ( lynckia@googlegroups.com) in order to help people with the same problem!
the cert key is used to access your web server. The connection to erizo
controller (using the URL in the token) is made using websockets so I think
that is not a problem.
I remember the nuve token contains a server IP address instead of a domain
name, so the browser will still complain that the cert key is not valid.
Please correct me if I am wrong.
-w
On Wednesday, June 12, 2013 5:49:25 AM UTC-4, Álvaro Alonso wrote:
Hi,
we’ve modify socket.io config in erizoClient to works through https
connections. Note that you have to modify basic server including https
support (you need to create ssl key and cert previously):
var fs = require(“fs”),
var https = require(“https”);
var options = {
key: fs.readFileSync(‘key.pem’).**toString(),
cert: fs.readFileSync(‘cert.pem’).**toString()
};
var server = https.createServer(options, app);
server.listen(443);
I’m going to publish this thread in our developers list ( lyn...@googlegroups.com) in order to help people with the same problem!
I remember the nuve token contains a server IP address instead of a domain
name, so the browser will still complain that the cert key is not valid.
Please correct me if I am wrong.
-wOn Wednesday, June 12, 2013 5:49:25 AM UTC-4, Álvaro Alonso wrote:
Hi,
we’ve modify socket.io config in erizoClient to works through https
connections. Note that you have to modify basic server including https
support (you need to create ssl key and cert previously):
var fs = require(“fs”),
var https = require(“https”);
var options = {
key: fs.readFileSync(‘key.pem’).toString(),
cert: fs.readFileSync(‘cert.pem’).toString()
};
var server = https.createServer(options, app);
server.listen(443);
I’m going to publish this thread in our developers list ( lyn...@googlegroups.com <javascript:>) in order to help people with the
same problem!