This commit is contained in:
Josh Harvey 2016-10-21 17:46:11 +03:00
parent 03edd9c7e0
commit 6422c36644
6 changed files with 71 additions and 10 deletions

View file

@ -16,7 +16,8 @@ if (!httpOnly) {
try {
options.https = {
key: fs.readFileSync(options.certKeyPath),
cert: fs.readFileSync(options.certPath)
cert: fs.readFileSync(options.certPath),
requestCert: true
}
} catch (err) {
console.log('Please configure your certificate.')