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) r)
remote=1 remote=1
host=$OPTARG host=$OPTARG
hostname=echo $host|cut -d: -f1
;; ;;
h|*) help=1 h|*) help=1
;; ;;
@ -36,7 +37,7 @@ if [ $remote -eq 0 ]; then
return 0 return 0
fi fi
else 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 fi
# vim: set ts=2 sw=2 tw=0 ft=sh : # vim: set ts=2 sw=2 tw=0 ft=sh :

Binary file not shown.