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:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user