When parsing SAN's, ignore unknown san_types, because in some cases they can contain unparsable/serializable values, resulting in a TypeError(repr(o) + " is not JSON serializable")

This commit is contained in:
Ronald Moesbergen 2018-12-06 16:47:53 +01:00
parent f944e6aa32
commit e0ac749734
1 changed files with 1 additions and 0 deletions

View File

@ -350,6 +350,7 @@ class SubjectAlternativeNameExtension(Field):
value = value.dotted_string
else:
current_app.logger.warning('Unknown SubAltName type: {name}'.format(name=name))
continue
general_names.append({'nameType': name_type, 'value': value})