标签:key func als ejs function read fun ica %s
var privateKey = fs.readFileSync(‘./key/214278976170532.key‘, ‘utf8‘);
var certificate = fs.readFileSync(‘./key/214278976170532.pem‘, ‘utf8‘);
var credentials = {key: privateKey, cert: certificate};
var SSLPORT = 443;
var privateKey = fs.readFileSync(‘./key/214278976170532.key‘, ‘utf8‘);
var certificate = fs.readFileSync(‘./key/214278976170532.pem‘, ‘utf8‘);
var credentials = {key: privateKey, cert: certificate};
https.createServer(credentials, server).listen(SSLPORT, function () {
console.log(‘HTTPS Server is running on: https://localhost:%s‘, SSLPORT);
});
标签:key func als ejs function read fun ica %s
原文地址:https://www.cnblogs.com/adjk/p/9395015.html