Fix SSL check on wildcard
This commit is contained in:
@@ -1420,15 +1420,24 @@ class WOSiteUpdateController(CementBaseController):
|
|||||||
Log.info(self, "Congratulations! Successfully "
|
Log.info(self, "Congratulations! Successfully "
|
||||||
"Configured SSl for Site "
|
"Configured SSl for Site "
|
||||||
" https://{0}".format(wo_domain))
|
" https://{0}".format(wo_domain))
|
||||||
|
if wo_subdomain:
|
||||||
if (SSL.getExpirationDays(self, wo_domain) > 0):
|
if (SSL.getExpirationDays(self, wo_root_domain) > 0):
|
||||||
Log.info(self, "Your cert will expire within " +
|
Log.info(self, "Your cert will expire within " +
|
||||||
str(SSL.getExpirationDays(self, wo_domain)) +
|
str(SSL.getExpirationDays(self, wo_domain)) +
|
||||||
" days.")
|
" days.")
|
||||||
|
else:
|
||||||
|
Log.warn(
|
||||||
|
self, "Your cert already EXPIRED ! "
|
||||||
|
".PLEASE renew soon . ")
|
||||||
else:
|
else:
|
||||||
Log.warn(
|
if (SSL.getExpirationDays(self, wo_domain) > 0):
|
||||||
self, "Your cert already EXPIRED ! "
|
Log.info(self, "Your cert will expire within " +
|
||||||
".PLEASE renew soon . ")
|
str(SSL.getExpirationDays(self, wo_domain)) +
|
||||||
|
" days.")
|
||||||
|
else:
|
||||||
|
Log.warn(
|
||||||
|
self, "Your cert already EXPIRED ! "
|
||||||
|
".PLEASE renew soon . ")
|
||||||
|
|
||||||
elif data['letsencrypt'] is False:
|
elif data['letsencrypt'] is False:
|
||||||
if pargs.letsencrypt == "off":
|
if pargs.letsencrypt == "off":
|
||||||
|
|||||||
Reference in New Issue
Block a user