From: Sergey Matveev <stargrave@stargrave.org>
Date: Tue, 3 May 2022 11:55:54 +0000 (+0300)
Subject: CN place can be everywhere
X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=02e55077fb0ce00d8c6d98d052bcd843e04b7723;p=sgmon.git

CN place can be everywhere
---

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