I'm building a web chat using socket.io
In order to communicate on port 3000 through https I need to pass my ssl key and cert files.
Socket.io is an open source and I don't know how trustworthy it is to allow it to access such secured files as my cert and key files.
Here is the code from socket.io that runs on the server side by nodeJS:
var fs = require('fs');
var https = require('https');
var express = require('express');
var app = express();
var options = {
key: fs.readFileSync('../chat/file.pem'),
cert: fs.readFileSync('../chat/file.crt')
};
var server = https.createServer(options, app);
var io = require('socket.io')(server);