mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-11-11 07:46:10 +01:00
bug fix: fetch child-domains ssl status
This commit is contained in:
@@ -856,7 +856,7 @@ class WebsiteManager:
|
|||||||
try:
|
try:
|
||||||
import OpenSSL
|
import OpenSSL
|
||||||
from datetime import datetime
|
from datetime import datetime
|
||||||
filePath = '/etc/letsencrypt/live/%s/fullchain.pem' % (self.domain)
|
filePath = '/etc/letsencrypt/live/%s/fullchain.pem' % (self.childDomain)
|
||||||
x509 = OpenSSL.crypto.load_certificate(OpenSSL.crypto.FILETYPE_PEM,
|
x509 = OpenSSL.crypto.load_certificate(OpenSSL.crypto.FILETYPE_PEM,
|
||||||
open(filePath, 'r').read())
|
open(filePath, 'r').read())
|
||||||
expireData = x509.get_notAfter().decode('ascii')
|
expireData = x509.get_notAfter().decode('ascii')
|
||||||
@@ -869,7 +869,7 @@ class WebsiteManager:
|
|||||||
Data['authority'] = x509.get_issuer().get_components()[1][1]
|
Data['authority'] = x509.get_issuer().get_components()[1][1]
|
||||||
|
|
||||||
if Data['authority'] == 'Denial':
|
if Data['authority'] == 'Denial':
|
||||||
Data['authority'] = '%s has SELF-SIGNED SSL.' % (self.domain)
|
Data['authority'] = '%s has SELF-SIGNED SSL.' % (self.childDomain)
|
||||||
else:
|
else:
|
||||||
Data['authority'] = '%s has SSL from %s.' % (self.domain, Data['authority'])
|
Data['authority'] = '%s has SSL from %s.' % (self.domain, Data['authority'])
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user