From 230c98ba0d10a0841bbb530209add07560e7cdb8 Mon Sep 17 00:00:00 2001 From: Narbeh Arakil Date: Mon, 20 Jul 2020 18:03:14 +0430 Subject: [PATCH] Update README.md --- README.md | 2 ++ ssl_checker.py | 1 + 2 files changed, 3 insertions(+) diff --git a/README.md b/README.md index 546a162..0639a7a 100644 --- a/README.md +++ b/README.md @@ -125,6 +125,8 @@ narbeh@narbeh-laptop:~/ssl-checker$ ./ssl_checker.py -H time.com github.com:443 +-------------------------------------------------------------------------------------------+ ``` +NOTE: Keep in mind that if the certificate has less than 15 days validity, the script will consider it as a warning in the summary. + ## Censored? diff --git a/ssl_checker.py b/ssl_checker.py index ba5f35b..bfa6903 100755 --- a/ssl_checker.py +++ b/ssl_checker.py @@ -178,6 +178,7 @@ class SSLChecker: else: self.total_valid += 1 + # If the certificate has less than 15 days validity if context['valid_days_to_expire'] <= 15: self.total_warning += 1