matteocorti/check_ssl_cert

MQTTS check crashes on macOS

matteocorti opened this issue · 1 comments

corti@macbookpro check_ssl_cert> ./check_ssl_cert --host test.mosquitto.org --protocol mqtts
missing close-brace
    while executing
"spawn -noecho sh -c { /bin/sh -c "echo -en '
expect {
  timeout { exit 42 }
  eof
}

# Get the return value
# https://stackoverflow.com/questions/23..."
SSL_CERT CRITICAL test.mosquitto.org:8883: SSL error:  
[DBG] test.mosquitto.org is not an IP address
[DBG] fetch_certificate: PROTOCOL = mqtts
[DBG 0s] exec_with_timeout: TIMEOUT=120, CURRENT_TIMEOUT=120, ELAPSED=0
MQTTa' | /opt/homebrew/bin/openssl s_client     -showcerts -connect test.mosquitto.org:8883 -servername test.mosquitto.org   -verify 6        2> /var/folders/ky/kv1ztfnn6sl9bh5w_0s633pc0000gn/T//3q1kR2 1> /var/folders/ky/kv1ztfnn6sl9bh5w_0s633pc0000gn/T//bVpiQc