Created
August 15, 2017 21:42
-
-
Save bvanderlugt/8ac344926ffd8386b79261c341d6594b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const https = require('https'); | |
const fs = require('fs'); | |
const options = { | |
key: fs.readFileSync('privkey.pem'), | |
cert: fs.readFileSync('cert.pem'), | |
ca: fs.readFileSync('fullchain.pem'), | |
requestCert: true, | |
} | |
https.createServer(options, (req, res) => { | |
res.writeHead(200); | |
res.end('crusader online'); | |
}).listen(8080); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment