diff --git a/templates/assets/js/index.js b/templates/assets/js/index.js index c957bbc..6194bcb 100644 --- a/templates/assets/js/index.js +++ b/templates/assets/js/index.js @@ -36,8 +36,8 @@ function getSSL() {
  • Nameserver TLSA: ${data.tlsa.nameserver} ${data.tlsa.match ? 'Match' : 'No Match'}
  • -
  • Certificate Names: ${data.cert.domains.join(", ")}
  • -
  • Expiry Date: ${data.cert.expiry_date} UTC
  • +
  • Certificate Names: ${data.cert.domains.join(", ")} ${data.cert.domain ? 'Match' : 'No Match'}
  • +
  • Expiry Date: ${data.cert.expiry_date} UTC ${data.cert.expired ? 'Expired' : 'Valid'}
  • Valid: ${data.valid ? 'Yes' : 'No'}
  • diff --git a/tools.py b/tools.py index 61b8bc1..ad3e8be 100644 --- a/tools.py +++ b/tools.py @@ -108,6 +108,7 @@ def check_ssl(domain: str): domain_check = True returns["cert"]["domains"] = cert_domains + returns["cert"]["domain"] = domain_check expiry_date = cert_obj.not_valid_after_utc # Check if expiry date is past