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:
parent
d11d9ea5a4
commit
5eea1bac6c
1 changed files with 3 additions and 1 deletions
|
@ -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}')
|
||||||
|
|
Loading…
Add table
Reference in a new issue