Skip to content

Commit

Permalink
Added intermediate ssl certificate option -> rlidwka#379
Browse files Browse the repository at this point in the history
  • Loading branch information
Gaël Reyrol committed May 31, 2016
1 parent d977c5a commit 6992594
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion conf/full.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ packages:
#https:
# key: path/to/server.key
# cert: path/to/server.crt
# ca: path/to/ca.crt

# type: file | stdout | stderr
# level: trace | debug | info | http (default) | warn | error | fatal
Expand Down Expand Up @@ -124,4 +125,3 @@ logs:
# it to be turned off in future versions. If `true`, latest tag is ignored,
# and the highest semver is placed instead.
#ignore_latest_tag: false

3 changes: 2 additions & 1 deletion lib/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,8 @@ function afterConfigLoad() {
secureProtocol: 'SSLv23_method', // disable insecure SSLv2 and SSLv3
secureOptions: constants.SSL_OP_NO_SSLv2 | constants.SSL_OP_NO_SSLv3,
key: fs.readFileSync(config.https.key),
cert: fs.readFileSync(config.https.cert)
cert: fs.readFileSync(config.https.cert),
ca: fs.readFileSync(config.https.ca)
}, app)
} catch (err) { // catch errors related to certificate loading
logger.logger.fatal({ err: err }, 'cannot create server: @{err.message}')
Expand Down

0 comments on commit 6992594

Please sign in to comment.