标签:private file files utf8 color http als creates code
let fs = require(‘fs‘); let https = require(‘https‘); let privateKey = fs.readFileSync(‘cert/214123970110593.key‘, ‘utf8‘); let certificate = fs.readFileSync(‘cert/214123970110593.pem‘, ‘utf8‘); let credentials = {key: privateKey, cert: certificate}; https.createServer(credentials,app);
标签:private file files utf8 color http als creates code
原文地址:https://www.cnblogs.com/l8l8/p/9373749.html