From 02e55077fb0ce00d8c6d98d052bcd843e04b7723 Mon Sep 17 00:00:00 2001 From: Sergey Matveev Date: Tue, 3 May 2022 14:55:54 +0300 Subject: [PATCH] CN place can be everywhere --- helper/https-cert | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helper/https-cert b/helper/https-cert index 3053837..2f3a0b8 100755 --- a/helper/https-cert +++ b/helper/https-cert @@ -2,7 +2,7 @@ bad=0 curl --max-time 60 --verbose "$1" >/dev/null 2>state/curl-out || bad=1 -grep -q "subject: CN=$2" state/curl-out || bad=1 +grep -q "subject:.*CN=$2" state/curl-out || bad=1 if [ "$bad" -eq 1 ] ; then cat state/curl-out exit 1 -- 2.44.0