mirror of
https://github.com/monitoring-plugins/monitoring-plugins.git
synced 2026-03-22 18:33:43 -04:00
change error message for missing certificate
The old error message is quite similar to the openssl `failed to retrieve issuer certificate` and can mislead users to troubleshooting certificate stores. The new message should be distinct enough to make it clear to users that this is not a problem raised by the underlying SSL implementation, but a problem inside monitoring-plugins.
This commit is contained in:
parent
d99cd375fc
commit
ef3045b97e
1 changed files with 1 additions and 1 deletions
|
|
@ -201,7 +201,7 @@ int np_net_ssl_check_certificate(X509 *certificate, int days_till_exp_warn, int
|
|||
time_t tm_t;
|
||||
|
||||
if (!certificate) {
|
||||
printf("%s\n", _("CRITICAL - Cannot retrieve server certificate."));
|
||||
printf("%s\n", _("CRITICAL - No server certificate present to inspect."));
|
||||
return STATE_CRITICAL;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue