Tweak openssl command

This commit is contained in:
Anthony Rose 2022-07-11 15:55:00 +01:00
parent 55bf0a3c45
commit fea3238a04

View file

@ -256,7 +256,7 @@ tlscheck () {
then then
echo "Usage: tlscheck hostname:port" >&2 echo "Usage: tlscheck hostname:port" >&2
else else
echo | openssl s_client -connect $1 | openssl x509 -text openssl s_client -connect $1 </dev/null | openssl x509 -text
fi fi
} }