Merge pull request #2112 from klaernie/patch-1

change error message for missing certificate
This commit is contained in:
Lorenz Kästle 2025-03-17 20:27:26 +01:00 committed by GitHub
commit 922d16ab2e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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;
}