From: Sergey Matveev Date: Wed, 30 Nov 2022 14:17:19 +0000 (+0300) Subject: tlsc has modern TLS implementation X-Git-Url: http://www.git.stargrave.org/?p=sgmon.git;a=commitdiff_plain;h=352141b0a2febd22b4af3740ccc1959822375d28 tlsc has modern TLS implementation --- diff --git a/helper/https-cert b/helper/https-cert deleted file mode 100755 index 573b617..0000000 --- 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 0000000..3215386 --- /dev/null +++ b/helper/tls-cert @@ -0,0 +1,3 @@ +#!/bin/sh -e + +tcpclient -DHR $1 ${2:-443} tlsc -name $1 -show :