Allow multiple 'SAN: IP Address' entries

Closes: #564

Signed-off-by: Richard T Bonhomme <tincantech@protonmail.com>
This commit is contained in:
Richard T Bonhomme 2022-05-13 23:56:56 +01:00
parent ad804cdd65
commit 3e218efda3
No known key found for this signature in database
GPG Key ID: 2D767DB92FB6C246

View File

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