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