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:
parent
f944e6aa32
commit
e0ac749734
|
@ -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})
|
||||
|
||||
|
|
Loading…
Reference in New Issue