From f81d43a41a32fac92bdd4e93a51b179cc51a808e Mon Sep 17 00:00:00 2001 From: Richard T Bonhomme Date: Sat, 2 Nov 2024 18:21:58 +0000 Subject: [PATCH 1/2] easyrsa-tls.lib: renew, make sed regex for 'IP Address' greedy Signed-off-by: Richard T Bonhomme --- dev/easyrsa-tools.lib | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dev/easyrsa-tools.lib b/dev/easyrsa-tools.lib index ed1a0fdf..f6f36c69 100644 --- a/dev/easyrsa-tools.lib +++ b/dev/easyrsa-tools.lib @@ -776,7 +776,7 @@ Cannot renew this certificate, a conflicting file exists: grep -A 1 'X509v3 Subject Alternative Name' | \ sed -e s/'^\ *'// \ -e /'X509v3 Subject Alternative Name'/d \ - -e s/'IP Address'/IP/ + -e s/'IP Address'/IP/g )" || die "renew - EASYRSA_SAN: easyrsa_openssl subshell" verbose "renew: EASYRSA_SAN: ${EASYRSA_SAN}" From 880e0303851dc7c401a731ee0191eba7ad2c68fa Mon Sep 17 00:00:00 2001 From: Richard T Bonhomme Date: Sat, 2 Nov 2024 18:27:45 +0000 Subject: [PATCH 2/2] easyrsa-tools.lib: renew, pin regex to expected colon Signed-off-by: Richard T Bonhomme --- dev/easyrsa-tools.lib | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dev/easyrsa-tools.lib b/dev/easyrsa-tools.lib index f6f36c69..53d59155 100644 --- a/dev/easyrsa-tools.lib +++ b/dev/easyrsa-tools.lib @@ -776,7 +776,7 @@ Cannot renew this certificate, a conflicting file exists: grep -A 1 'X509v3 Subject Alternative Name' | \ sed -e s/'^\ *'// \ -e /'X509v3 Subject Alternative Name'/d \ - -e s/'IP Address'/IP/g + -e s/'IP Address:'/'IP:'/g )" || die "renew - EASYRSA_SAN: easyrsa_openssl subshell" verbose "renew: EASYRSA_SAN: ${EASYRSA_SAN}"