Browse Source

strip possible whitespaces in domain list when reading from file

pull/5/head
fbatschi 10 years ago
parent
commit
4be2691364
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      checkssl

+ 1
- 0
checkssl View File

@ -274,6 +274,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:]]')"
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