Merge pull request #2 from e11it/fix_san_duplicate
Fix: San values #2921
This commit is contained in:
commit
6ed70eb9eb
|
@ -146,7 +146,9 @@ class CertificateInputSchema(CertificateCreationSchema):
|
|||
data["extensions"]["subAltNames"] = {"names": []}
|
||||
elif not data["extensions"]["subAltNames"].get("names"):
|
||||
data["extensions"]["subAltNames"]["names"] = []
|
||||
data["extensions"]["subAltNames"]["names"] += csr_sans
|
||||
|
||||
if not data["extensions"]["subAltNames"]["names"]:
|
||||
data["extensions"]["subAltNames"]["names"] += csr_sans
|
||||
return missing.convert_validity_years(data)
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue