Fix errors in x509remote

This commit is contained in:
Andrea Mistrali 2021-11-23 15:48:26 +01:00
parent 6bd3e4b627
commit 115a35d1ae
No known key found for this signature in database
GPG Key ID: 6FB0A77F6D5DA9B2
2 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
if [ -r "$1" ]; then
if [ ! -z "$1" ]; then
openssl s_client -connect $1 < /dev/null | \
openssl x509 -noout -text | less
openssl x509 -noout -text
else
echo "x509remote <host:port>"
fi

Binary file not shown.