0
Fork 0
mirror of https://github.com/verdaccio/verdaccio.git synced 2025-01-27 22:59:51 -05:00

ADDED intermediate ssl certificate option

The https module allows for an intermediate certificate in the options.
It was somehow missed. Adding it back since I had a certificate that
included an intermediate certificate.
This commit is contained in:
Emmanuel Narh 2016-03-05 13:44:32 -06:00 committed by Meeeeow
parent d11d9ea5a4
commit 5eea1bac6c

View file

@ -132,7 +132,9 @@ function afterConfigLoad() {
secureProtocol: 'SSLv23_method', // disable insecure SSLv2 and SSLv3 secureProtocol: 'SSLv23_method', // disable insecure SSLv2 and SSLv3
secureOptions: constants.SSL_OP_NO_SSLv2 | constants.SSL_OP_NO_SSLv3, secureOptions: constants.SSL_OP_NO_SSLv2 | constants.SSL_OP_NO_SSLv3,
key: fs.readFileSync(config.https.key), 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) }, app)
} catch (err) { // catch errors related to certificate loading } catch (err) { // catch errors related to certificate loading
logger.logger.fatal({ err: err }, 'cannot create server: @{err.message}') logger.logger.fatal({ err: err }, 'cannot create server: @{err.message}')