From a41ce243c3496389eccf80ce56f16e9742c2481c Mon Sep 17 00:00:00 2001 From: Xavier Bachelot Date: Fri, 7 Jun 2019 11:26:35 +0200 Subject: [PATCH] Gracefuly handle IP when both renewing cert and keeping SAN from the old cert Signed-off-by: Xavier Bachelot --- easyrsa3/easyrsa | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/easyrsa3/easyrsa b/easyrsa3/easyrsa index e9fbb21..14a38f4 100755 --- a/easyrsa3/easyrsa +++ b/easyrsa3/easyrsa @@ -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