My old socket.io
var ssl = { key: fs.readFileSync(config.key), cert: fs.readFileSync(config.cert), }; var httpsServer = https.createServer(ssl).listen