Browse Source

Add some debug statements to CHECK_REMOTE

pull/578/head
Tim Kimber 5 years ago
parent
commit
e6336b9c8b
No known key found for this signature in database GPG Key ID: 3E1804964E76BD18
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      getssl

+ 2
- 0
getssl View File

@ -2842,6 +2842,8 @@ if [[ ${CHECK_REMOTE} == "true" ]]; then
| openssl s_client -servername "${DOMAIN}" -connect "${DOMAIN}:${REMOTE_PORT}" ${REMOTE_EXTRA} ${PARAMS[i]} 2>/dev/null \
| openssl x509 -noout -fingerprint 2>/dev/null)
CERT_LOCAL=$(openssl x509 -noout -fingerprint < "${CERTS[i]}" 2>/dev/null)
debug CERT_LOCAL="${CERT_LOCAL}"
debug CERT_REMOTE="${CERT_REMOTE}"
if [[ "$CERT_LOCAL" == "$CERT_REMOTE" ]]; then
info "${DOMAIN} - ${TYPES[i]} certificate installed OK on server"
else


Loading…
Cancel
Save