use fullchain.pem instead of chain.pem
This commit is contained in:
parent
9d01c544d1
commit
d475407061
2
app.js
2
app.js
|
@ -49,7 +49,7 @@ let https = null;
|
||||||
if (config.https_enabled) {
|
if (config.https_enabled) {
|
||||||
const privateKey = fs.readFileSync(`${config.cert_dir}/privkey.pem`, 'utf8');
|
const privateKey = fs.readFileSync(`${config.cert_dir}/privkey.pem`, 'utf8');
|
||||||
const certificate = fs.readFileSync(`${config.cert_dir}/cert.pem`, 'utf8');
|
const certificate = fs.readFileSync(`${config.cert_dir}/cert.pem`, 'utf8');
|
||||||
const ca = fs.readFileSync(`${config.cert_dir}/chain.pem`, 'utf8');
|
const ca = fs.readFileSync(`${config.cert_dir}/fullchain.pem`, 'utf8');
|
||||||
const credentials = {
|
const credentials = {
|
||||||
key: privateKey,
|
key: privateKey,
|
||||||
cert: certificate,
|
cert: certificate,
|
||||||
|
|
Loading…
Reference in New Issue