changes 4

This commit is contained in:
Andrea Mistrali 2021-11-23 17:56:32 +01:00
parent ec0eab3b21
commit ddcda3ad7c
No known key found for this signature in database
GPG Key ID: 6FB0A77F6D5DA9B2
2 changed files with 2 additions and 1 deletions

View File

@ -16,6 +16,7 @@ while getopts ":hr:" arg; do
r)
remote=1
host=$OPTARG
hostname=echo $host|cut -d: -f1
;;
h|*) help=1
;;
@ -36,7 +37,7 @@ if [ $remote -eq 0 ]; then
return 0
fi
else
openssl s_client -connect $host < /dev/null | openssl x509 -noout -text
openssl s_client -connect $host -servername $hostname < /dev/null | openssl x509 -noout -text
fi
# vim: set ts=2 sw=2 tw=0 ft=sh :

Binary file not shown.