how can i integrate ssl in express:
var credentials = {key: privateKey, cert: certificate};
in this code to enable https?:
var express = require('express');
var app = express();
app.use(express.static('webcontent', {'index': ['client.html']}));
var server = app.listen(8000, function () {
var host = server.address().address;
var port = server.address().port;
console.log('Webserver app listening at http://%s:%s', host, port);
});
the problem is, that i use express.static. and I dont find any sulution how to use it with https.