Improve acme

This commit is contained in:
VirtuBox
2019-10-01 15:22:03 +02:00
parent 715497d3b1
commit 15b3b5d55c
3 changed files with 43 additions and 18 deletions

View File

@@ -735,8 +735,7 @@ class WOSiteCreateController(CementBaseController):
self, wo_domain)
data['letsencrypt'] = True
letsencrypt = True
if os.path.isfile('/etc/letsencrypt/live/{0}/fullchain.pem'
.format(wo_domain)):
if WOAcme.cert_check(self, wo_domain):
archivedCertificateHandle(self, wo_domain)
else:
Log.debug(self, "Going to issue Let's Encrypt certificate")