]> Sergey Matveev's repositories - sgmon.git/commitdiff
CN place can be everywhere
authorSergey Matveev <stargrave@stargrave.org>
Tue, 3 May 2022 11:55:54 +0000 (14:55 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Tue, 3 May 2022 11:55:58 +0000 (14:55 +0300)
helper/https-cert

index 3053837481dfcde07c9a56106cc241dbcfe580d2..2f3a0b82d1114982b3d727142ded5e056c30583d 100755 (executable)
@@ -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