diff --git a/ssl_checker.py b/ssl_checker.py index c37c11d..07e16b9 100755 --- a/ssl_checker.py +++ b/ssl_checker.py @@ -136,6 +136,10 @@ def get_cert_info(host, cert): # Validity days context['validity_days'] = (valid_till - valid_from).days + # Validity in days from now + now = datetime.now() + context['days_left'] = (valid_till - now).days + return context