summaryrefslogtreecommitdiffstats
path: root/bin/hostcert
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2021-07-10 16:00:59 -0400
committerJesse Luehrs <doy@tozt.net>2021-07-10 16:00:59 -0400
commit5120b108ca2dcd78db519226516e071aca7b81d0 (patch)
treebd2d471d4e16b757b0dac2a7fc470b5caacfb5eb /bin/hostcert
parent7946924e237e059bb1b8ca311824042f69396e66 (diff)
downloadconf-5120b108ca2dcd78db519226516e071aca7b81d0.tar.gz
conf-5120b108ca2dcd78db519226516e071aca7b81d0.zip
shfmt everything
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/'