diff options
author | Andre Klärner <kandre@ak-online.be> | 2025-03-17 16:13:46 +0100 |
---|---|---|
committer | Andre Klärner <kandre@ak-online.be> | 2025-03-17 20:17:28 +0100 |
commit | ef3045b97eea23a4dec3197277e5ff4e5afc5c71 (patch) | |
tree | 9ceb9b62999afb54edde2f4d01847164500c4eb5 /plugins/sslutils.c | |
parent | d99cd375fcade0ec6afb3b3d3e96a39dce49760e (diff) | |
download | monitoring-plugins-ef3045b97eea23a4dec3197277e5ff4e5afc5c71.tar.gz |
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.
Diffstat (limited to 'plugins/sslutils.c')
-rw-r--r-- | plugins/sslutils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/sslutils.c b/plugins/sslutils.c index 719de575..96740b3a 100644 --- a/plugins/sslutils.c +++ b/plugins/sslutils.c | |||
@@ -201,7 +201,7 @@ int np_net_ssl_check_certificate(X509 *certificate, int days_till_exp_warn, int | |||
201 | time_t tm_t; | 201 | time_t tm_t; |
202 | 202 | ||
203 | if (!certificate) { | 203 | if (!certificate) { |
204 | printf("%s\n", _("CRITICAL - Cannot retrieve server certificate.")); | 204 | printf("%s\n", _("CRITICAL - No server certificate present to inspect.")); |
205 | return STATE_CRITICAL; | 205 | return STATE_CRITICAL; |
206 | } | 206 | } |
207 | 207 | ||