Refactor acme validation
This commit is contained in:
@@ -30,12 +30,10 @@ class WOAcme:
|
|||||||
|
|
||||||
Log.info(self, "Validation mode : {0}".format(validation_mode))
|
Log.info(self, "Validation mode : {0}".format(validation_mode))
|
||||||
Log.wait(self, "Issuing SSL cert with acme.sh")
|
Log.wait(self, "Issuing SSL cert with acme.sh")
|
||||||
try:
|
if not WOShellExec.cmd_exec(
|
||||||
WOShellExec.cmd_exec(
|
|
||||||
self, "{0} ".format(wo_acme_exec) +
|
self, "{0} ".format(wo_acme_exec) +
|
||||||
"--issue -d '{0}' {1} -k {2} -f"
|
"--issue -d '{0}' {1} -k {2} -f"
|
||||||
.format(all_domains, acme_mode, keylenght))
|
.format(all_domains, acme_mode, keylenght)):
|
||||||
except Exception as e:
|
|
||||||
Log.failed(self, "Issuing SSL cert with acme.sh")
|
Log.failed(self, "Issuing SSL cert with acme.sh")
|
||||||
Log.debug(self, str(e))
|
Log.debug(self, str(e))
|
||||||
if acmedata['dns'] is True:
|
if acmedata['dns'] is True:
|
||||||
|
|||||||
Reference in New Issue
Block a user