summaryrefslogtreecommitdiffstats
path: root/bin/hostcert
diff options
context:
space:
mode:
Diffstat (limited to 'bin/hostcert')
-rwxr-xr-xbin/hostcert2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/hostcert b/bin/hostcert
index 545167a..61f519d 100755
--- a/bin/hostcert
+++ b/bin/hostcert
@@ -5,4 +5,4 @@ set -o pipefail
host="$1"
port="${2:-443}"
-openssl s_client -connect "$host:$port" < /dev/null 2>/dev/null | perl -nle 'print if /BEGIN CERTIFICATE/../END CERTIFICATE/' | openssl x509 -text | perl -nle 'print unless /BEGIN CERTIFICATE/../END CERTIFICATE/'
+openssl s_client -connect "$host:$port" </dev/null 2>/dev/null | perl -nle 'print if /BEGIN CERTIFICATE/../END CERTIFICATE/' | openssl x509 -text | perl -nle 'print unless /BEGIN CERTIFICATE/../END CERTIFICATE/'