Change cert CN from 'localhost' to 'cloudron'

Apparently localhost is special and triggerd a strange behavior in
firefox. Fixes #224
This commit is contained in:
Johannes Zellner
2017-02-17 14:05:16 +01:00
parent 639744e9cb
commit eb4ab8defd

View File

@@ -242,7 +242,7 @@ function configureDefaultServer(callback) {
if (!fs.existsSync(certFilePath) || !fs.existsSync(keyFilePath)) {
debug('configureDefaultServer: create new cert');
var certCommand = util.format('openssl req -x509 -newkey rsa:2048 -keyout %s -out %s -days 3650 -subj /CN=%s -nodes', keyFilePath, certFilePath, 'localhost');
var certCommand = util.format('openssl req -x509 -newkey rsa:2048 -keyout %s -out %s -days 3650 -subj /CN=%s -nodes', keyFilePath, certFilePath, 'cloudron');
safe.child_process.execSync(certCommand);
}