Refactor SSL certificate creation

Rewrite the generateSSLcert lib to be async, use the sslCert and
sslPrivKey config entries and invoke it only if needed during master
server startup instead of in the post install script.  Also add note to
the changelog covering both this and the fix in c645fac.
This commit is contained in:
Hornwitser committed 2019-08-23 17:24:39 +02:00
1 parent cc87654742
commit 44b7d0aa19
5 files changed
+58 -52

No files matched your search

-10
View File
@@ -123,13 +123,3 @@ function processDownloadRecursive(callback){
}
});
}
// generate SSL certificates if they are missing
if(!fs.existsSync("database/certificates") || !fs.existsSync("database/certificates/cert.crt") || !fs.existsSync("database/certificates/cert.key")){
var generateSSLcert = require("./generateSSLcert.js");
generateSSLcert({
certificatePath: "database/certificates",
doLogging: true,
});
}