Answer the question
In order to leave comments, you need to log in
Why doesn't https work on nodejs?
var fs = require('fs');
var options = {
key: fs.readFileSync(__dirname + "/1.pem"),
cert: fs.readFileSync(__dirname + "/3.crt"),
};
var server = https.createServer({}, express)
server.listen(80, () => {
console.log(arguments)
});
var server = express.listen(80);
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question