diff --git a/support/aphlict/server/aphlict_server.js b/support/aphlict/server/aphlict_server.js index f162e4937c..34bddf4fa9 100644 --- a/support/aphlict/server/aphlict_server.js +++ b/support/aphlict/server/aphlict_server.js @@ -103,10 +103,9 @@ for (ii = 0; ii < config.servers.length; ii++) { if (spec['ssl.cert']){ spec['ssl.cert'] = fs.readFileSync(spec['ssl.cert']); - } - - if (spec['ssl.chain']){ - spec['ssl.chain'] = fs.readFileSync(spec['ssl.chain']); + if (spec['ssl.chain']){ + spec['ssl.cert'] += "\n" + fs.readFileSync(spec['ssl.chain']); + } } servers.push(spec); @@ -140,10 +139,6 @@ for (ii = 0; ii < servers.length; ii++) { cert: server['ssl.cert'], }; - if (server['ssl.chain']) { - https_config.ca = server['ssl.chain']; - } - http_server = https.createServer(https_config); } else { http_server = http.createServer();