Prevent using an empty SAN

Signed-off-by: Xavier Bachelot <xavier@bachelot.org>
This commit is contained in:
Xavier Bachelot 2019-01-28 21:39:00 +01:00
parent c961210bda
commit 332ec2d38b
Failed to extract signature

View File

@ -1040,7 +1040,7 @@ Renewal not allowed."
"$EASYRSA_OPENSSL" x509 -in "$crt_in" -noout -text |
sed -n "/X509v3 Subject Alternative Name:/{n;s/ //g;p;}"
)
export EASYRSA_EXTRA_EXTS="\
[ -n "$san" ] && export EASYRSA_EXTRA_EXTS="\
$EASYRSA_EXTRA_EXTS
subjectAltName = $san"
}