From c2096f5205d05c8495bac5d9d9e08160260ec8e0 Mon Sep 17 00:00:00 2001 From: Pavel Muhortov Date: Sun, 27 Aug 2023 13:03:14 +0300 Subject: [PATCH] added openssl 1.0 connect compatible option --- cert-info.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cert-info.sh b/cert-info.sh index 78481bf..172cb63 100644 --- a/cert-info.sh +++ b/cert-info.sh @@ -43,7 +43,8 @@ if [ -n "${certdest}" ]; then certport=443 fi certdata=$( \ - openssl s_client "${certpath}:${certport}" < /dev/null 2>/dev/null \ + openssl s_client -connect "${certpath}:${certport}" \ + < /dev/null 2>/dev/null \ ) fi