X-Git-Url: http://www.git.stargrave.org/?a=blobdiff_plain;f=helper%2Fhttps-cert;fp=helper%2Fhttps-cert;h=573b6179d5cfaeccf2066f651e53fa016748e6ac;hb=b76a3a8fac0eb87d7d14ab1b9eaa77247284ad57;hp=2f3a0b82d1114982b3d727142ded5e056c30583d;hpb=09e090bcb797c1cf0bb213a2dffc717b1399abcf;p=sgmon.git diff --git a/helper/https-cert b/helper/https-cert index 2f3a0b8..573b617 100755 --- a/helper/https-cert +++ b/helper/https-cert @@ -1,7 +1,7 @@ #!/bin/sh -e bad=0 -curl --max-time 60 --verbose "$1" >/dev/null 2>state/curl-out || bad=1 +curl --range 0-100 --max-time 60 --verbose "$1" >/dev/null 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