always assign csr_sans to name
This commit is contained in:
parent
cc4fc66c93
commit
f83e3f764e
|
@ -147,8 +147,7 @@ class CertificateInputSchema(CertificateCreationSchema):
|
|||
elif not data["extensions"]["subAltNames"].get("names"):
|
||||
data["extensions"]["subAltNames"]["names"] = []
|
||||
|
||||
if not data["extensions"]["subAltNames"]["names"]:
|
||||
data["extensions"]["subAltNames"]["names"] += csr_sans
|
||||
data["extensions"]["subAltNames"]["names"] = csr_sans
|
||||
return missing.convert_validity_years(data)
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue