matteocorti/check_ssl_cert

No port is displayed if check fails

mmdevl opened this issue · 0 comments

mmdevl commented

When a check fails (ex. certificate has expired), the port number is missing in the output.

Example:

check_ssl_cert -H xxxxxxxxxx -p 5003
==>
SSL_CERT CRITICAL xxxxxxxxxx: x509 certificate ...

expected output:

SSL_CERT CRITICAL xxxxxxxxxx:5003 x509 certificate ...
                             ^^^^
                             port number

Tested with:

  • CentOS Linux release 7.9.2009
  • check_ssl_cert version:2.70.0
  • OpenSSL 1.0.2k-fips 26 Jan 2017