matteocorti / check_ssl_cert

A shell script (that can be used as a Nagios/Icinga plugin) to check an SSL/TLS connection.
GNU General Public License v3.0
371 stars 132 forks source link

MQTTS check crashes on macOS #487

Closed matteocorti closed 12 months ago

matteocorti commented 1 year ago
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:  
matteocorti commented 12 months ago
[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