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
1 changed files with 3 additions and 0 deletions

View File

@ -162,6 +162,9 @@ def domains(cert):
entries = ext.value.get_values_for_type(x509.DNSName) entries = ext.value.get_values_for_type(x509.DNSName)
for entry in entries: for entry in entries:
domains.append(entry) domains.append(entry)
except x509.ExtensionNotFound:
if current_app.config.get("LOG_SSL_SUBJ_ALT_NAME_ERRORS", True):
sentry.captureException()
except Exception as e: except Exception as e:
sentry.captureException() sentry.captureException()