always assign csr_sans to name

This commit is contained in:
e11it 2020-05-22 21:52:43 +03:00 committed by GitHub
parent cc4fc66c93
commit f83e3f764e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)