helper/https-cert | 9 --------- helper/tls-cert | 3 +++ diff --git a/helper/https-cert b/helper/https-cert deleted file mode 100755 index 573b6179d5cfaeccf2066f651e53fa016748e6ac..0000000000000000000000000000000000000000 --- a/helper/https-cert +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/sh -e - -bad=0 -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 - exit 1 -fi diff --git a/helper/tls-cert b/helper/tls-cert new file mode 100755 index 0000000000000000000000000000000000000000..321538652ed2474ce95e3b4895b77fd9d18ee602 --- /dev/null +++ b/helper/tls-cert @@ -0,0 +1,3 @@ +#!/bin/sh -e + +tcpclient -DHR $1 ${2:-443} tlsc -name $1 -show :