From f262c93912e2b117a295b2c3227be12dab3c8ef3 Mon Sep 17 00:00:00 2001 From: Curtis Date: Wed, 17 Jan 2018 09:17:03 -0800 Subject: [PATCH] Option to suppress SSL errors (#1044) --- lemur/common/defaults.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lemur/common/defaults.py b/lemur/common/defaults.py index ea8541d9..bb49c5b7 100644 --- a/lemur/common/defaults.py +++ b/lemur/common/defaults.py @@ -162,6 +162,9 @@ def domains(cert): entries = ext.value.get_values_for_type(x509.DNSName) for entry in entries: domains.append(entry) + except x509.ExtensionNotFound: + if current_app.config.get("LOG_SSL_SUBJ_ALT_NAME_ERRORS", True): + sentry.captureException() except Exception as e: sentry.captureException()