Commit 3f502e53 authored by Xueshan Feng's avatar Xueshan Feng
Browse files

Test to make sure host is fqdn.

parent 4c637b8a
......@@ -2,5 +2,5 @@
fqdn=$1
port=${2:-443}
[ -x $fqdn ] && echo "FQDN of the site is required." && exit 1
! host $fqdn > /dev/null && echo "$fqdn is not a vaild host." && exit 1
#! host $fqdn > /dev/null && echo "$fqdn is not a vaild host." && exit 1
echo "" | openssl s_client -servername $fqdn -connect $fqdn:$port 2>/dev/null | openssl x509 -text
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment