Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/sh
- #
- default=443
- if [ -z "$1" ]
- then
- echo "Usage: `basename $0` hostname [hostname]..."
- exit $E_NOARGS
- fi
- until [ -z "$1" ]
- do
- host=$1
- if [[ $host != *:* ]]
- then
- host="$host:$default"
- fi
- echo |\
- openssl s_client -connect $host 2>/dev/null |\
- openssl x509 -noout -fingerprint
- # - date:
- # openssl x509 -noout -dates
- shift
- done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement