Option to suppress SSL errors (#1044)

This commit is contained in:
Curtis 2018-01-17 09:17:03 -08:00 committed by kevgliss
parent 763c5e8356
commit f262c93912

View File

@ -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()