|
|
|
@ -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) |
|
|
|
|