mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-23 00:46:16 -04:00
Adding support for providing intermediate CA certificates when running etherpad-lite with ssl through Node/expressjs
This commit is contained in:
parent
d31523aa08
commit
ec7b3fc787
2 changed files with 8 additions and 0 deletions
|
@ -46,6 +46,13 @@ exports.restartServer = function () {
|
|||
key: fs.readFileSync( settings.ssl.key ),
|
||||
cert: fs.readFileSync( settings.ssl.cert )
|
||||
};
|
||||
if (settings.ssl.ca) {
|
||||
options.ca = [];
|
||||
for(var i = 0; i < settings.ssl.ca.length; i++) {
|
||||
var caFileName = settings.ssl.ca[i];
|
||||
options.ca.push(fs.readFileSync(caFileName));
|
||||
}
|
||||
}
|
||||
|
||||
var https = require('https');
|
||||
server = https.createServer(options, app);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue