do not overwrite existing cert
This commit is contained in:
parent
1041e6b152
commit
b58321b42a
@ -272,8 +272,8 @@ public class DomainProcessorFactory implements EntityProcessorFactory {
|
||||
new ShellProcessor("export PEMS_DIR=/etc/apache2/pems-enabled/" + dom.getUser().getName() + " && "
|
||||
+ "mkdir -p $PEMS_DIR/ && "
|
||||
+ "cd $PEMS_DIR && "
|
||||
+ "echo \"\" > " + domName + ".chain && "
|
||||
+ "openssl req -x509 -newkey rsa:2048 -keyout " + domName + ".key -out " + domName + ".crt -days 1100 -nodes -sha256 -subj '/CN=" + domName + "' &&"
|
||||
+ "( ls " + domName + ".crt || ( echo \"\" > " + domName + ".chain && "
|
||||
+ "openssl req -x509 -newkey rsa:2048 -keyout " + domName + ".key -out " + domName + ".crt -days 1100 -nodes -sha256 -subj '/CN=" + domName + "' ) ) &&"
|
||||
+ "chmod 400 " + domName + "*"),
|
||||
new CreateFileProcessor("/de/hsadmin/mods/dom/apache-vhost.vm", templateVars, dom, "/etc/apache2/sites-available/" + domName + ".tmp", "root", "root", "644", true),
|
||||
new ShellProcessor(
|
||||
|
Loading…
Reference in New Issue
Block a user