[From] https://segmentfault.com/q/1010000004705326
var options = { key: fs.readFileSync('../ssl/private.key','utf8'), cert: fs.readFileSync('../ssl/certificate.crt','utf8'), ca: fs.readFileSync('../ssl/ca_bundle.crt','utf8') }; http.createServer(app).listen(3000); https.createServer(options, app).listen(3001);