Browse Source

remove spaces from domain names

pull/7/head
srvrco 9 years ago
parent
commit
0160e94841
1 changed files with 3 additions and 2 deletions
  1. +3
    -2
      checkssl

+ 3
- 2
checkssl View File

@ -29,10 +29,11 @@
# 2016-05-30 Added auto-upgrade option on the command line (1.00)
# 2016-05-30 Correcting typo (1.01)
# 2016-07-20 adding -p option to list possible issues (1.02)
# 2016-08-02 remove spaces from domain names (1.03)
# ---------------------------------------------------------------------------
PROGNAME=${0##*/}
VERSION="1.02"
VERSION="1.03"
ORIGCMD="$0 $*"
UPDATE_LOCATION="https://raw.githubusercontent.com/srvrco/checkssl/master/checkssl"
@ -274,7 +275,7 @@ debug "completed creating list of domains"
# read domains from file
while IFS= read -r DOMAIN; do
if [ ! -z "$DOMAIN" ]; then
DOMAIN="$(echo -e "${DOMAIN}" | tr -d '[[:space:]]')"
DOMAIN=${DOMAIN// /}
PROBLEMS=""
debug " --------------- domain ${DOMAIN} ---------------------"
CERTINFO=$(echo | openssl s_client -servername "${DOMAIN}" -connect "${DOMAIN}:443" 2>/dev/null | openssl x509 2>/dev/null)


Loading…
Cancel
Save