use letsencrypt naming convention, and more recent localhost.daplie.com

This commit is contained in:
AJ ONeal 2016-06-27 18:02:18 -06:00 committed by GitHub
parent 05ee6c66ce
commit 4ca103e26a
1 changed files with 3 additions and 3 deletions

View File

@ -15,10 +15,10 @@ require('ssl-root-cas')
; ;
options = { options = {
key: fs.readFileSync(path.join(__dirname, 'certs', 'server', 'my-server.key.pem')) key: fs.readFileSync(path.join(__dirname, 'certs', 'server', 'privkey.pem'))
// You don't need to specify `ca`, it's done by `ssl-root-cas` // You don't need to specify `ca`, it's done by `ssl-root-cas`
//, ca: [ fs.readFileSync(path.join(__dirname, 'certs', 'server', 'my-root-ca.crt.pem'))] //, ca: [ fs.readFileSync(path.join(__dirname, 'certs', 'server', 'my-root-ca.crt.pem'))]
, cert: fs.readFileSync(path.join(__dirname, 'certs', 'server', 'my-server.crt.pem')) , cert: fs.readFileSync(path.join(__dirname, 'certs', 'server', 'fullchain.pem'))
}; };
@ -31,5 +31,5 @@ server = https.createServer(options, app).listen(port, function () {
port = server.address().port; port = server.address().port;
console.log('Listening on https://127.0.0.1:' + port); console.log('Listening on https://127.0.0.1:' + port);
console.log('Listening on https://' + server.address().address + ':' + port); console.log('Listening on https://' + server.address().address + ':' + port);
console.log('Listening on https://local.ldsconnect.org:' + port); console.log('Listening on https://localhost.daplie.com:' + port);
}); });