Gracefuly handle IP when both renewing cert and keeping SAN from the old cert
Signed-off-by: Xavier Bachelot <xavier@bachelot.org>
This commit is contained in:
parent
8374fcb4da
commit
a41ce243c3
@ -1081,7 +1081,7 @@ Renewal not allowed."
|
||||
{
|
||||
san=$(
|
||||
easyrsa_openssl x509 -in "$crt_in" -noout -text |
|
||||
sed -n "/X509v3 Subject Alternative Name:/{n;s/ //g;p;}"
|
||||
sed -n "/X509v3 Subject Alternative Name:/{n;s/IP Address:/IP:/;s/ //g;p;}"
|
||||
)
|
||||
[ -n "$san" ] && export EASYRSA_EXTRA_EXTS="\
|
||||
$EASYRSA_EXTRA_EXTS
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user