Skip to content

Commit dede94a

Browse files
committed
Merge pull request #2 from anarh/master
ADDED intermediate ssl certificate option rlidwka#379
2 parents 9215058 + 092ceee commit dede94a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/cli.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,8 @@ function afterConfigLoad() {
131131
secureProtocol: 'SSLv23_method', // disable insecure SSLv2 and SSLv3
132132
secureOptions: constants.SSL_OP_NO_SSLv2 | constants.SSL_OP_NO_SSLv3,
133133
key: fs.readFileSync(config.https.key),
134-
cert: fs.readFileSync(config.https.cert)
134+
cert: fs.readFileSync(config.https.cert),
135+
ca: fs.readFileSync(config.https.ca)
135136
}, app)
136137
} catch (err) { // catch errors related to certificate loading
137138
logger.logger.fatal({ err: err }, 'cannot create server: @{err.message}')

0 commit comments

Comments
 (0)