Additional check for existant SSL certificates
This commit is contained in:
@@ -11,6 +11,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|||||||
#### Added
|
#### Added
|
||||||
|
|
||||||
- Backported Nano editor package for Debian/Ubuntu/Raspbian (which support syntax highlighting with `--nanorc`)
|
- Backported Nano editor package for Debian/Ubuntu/Raspbian (which support syntax highlighting with `--nanorc`)
|
||||||
|
- Protect Easy Digital Download files from being accessed directly (PR [#222](https://github.com/WordOps/WordOps/pull/222))
|
||||||
|
|
||||||
#### Changed
|
#### Changed
|
||||||
|
|
||||||
|
|||||||
@@ -216,8 +216,13 @@ class WOAcme:
|
|||||||
if wo_domain_name == row[0]:
|
if wo_domain_name == row[0]:
|
||||||
# check if cert expiration exist
|
# check if cert expiration exist
|
||||||
if not row[3] == '':
|
if not row[3] == '':
|
||||||
return True
|
acme_cert = True
|
||||||
certfile.close()
|
certfile.close()
|
||||||
|
if acme_cert is True:
|
||||||
|
if os.path.exists(
|
||||||
|
'/etc/letsencrypt/live/{0}/fullchain.pem'
|
||||||
|
.format(wo_domain_name)):
|
||||||
|
return True
|
||||||
return False
|
return False
|
||||||
|
|
||||||
def removeconf(self, domain):
|
def removeconf(self, domain):
|
||||||
|
|||||||
Reference in New Issue
Block a user