From 352141b0a2febd22b4af3740ccc1959822375d28 Mon Sep 17 00:00:00 2001 From: Sergey Matveev Date: Wed, 30 Nov 2022 17:17:19 +0300 Subject: [PATCH] tlsc has modern TLS implementation --- helper/https-cert | 9 --------- helper/tls-cert | 3 +++ 2 files changed, 3 insertions(+), 9 deletions(-) delete mode 100755 helper/https-cert create mode 100755 helper/tls-cert 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 : -- 2.48.1