]> granicus.if.org Git - icinga2/commitdiff
Update log message for skipped certificate renewal 6321/head
authorMichael Friedrich <michael.friedrich@icinga.com>
Fri, 18 May 2018 15:04:03 +0000 (17:04 +0200)
committerMichael Friedrich <michael.friedrich@icinga.com>
Fri, 18 May 2018 15:04:03 +0000 (17:04 +0200)
Users kept asking about it, still it is just an "information"
that this isn't needed yet.

lib/remote/jsonrpcconnection-pki.cpp

index ce999402358c35859eb8ef213c8d541c9d998610..6c867400c33ec5df835d4b546cd81e795e24f02c 100644 (file)
@@ -76,9 +76,9 @@ Value RequestCertificateHandler(const MessageOrigin::Ptr& origin, const Dictiona
                if (X509_cmp_time(X509_get_notBefore(cert.get()), &forceRenewalEnd) != -1 && X509_cmp_time(X509_get_notAfter(cert.get()), &renewalStart) != -1) {
 
                        Log(LogInformation, "JsonRpcConnection")
-                               << "The certificate for CN '" << cn << "' cannot be renewed yet.";
+                               << "The certificate for CN '" << cn << "' is valid and uptodate. Skipping automated renewal.";
                        result->Set("status_code", 1);
-                       result->Set("error", "The certificate for CN '" + cn + "' cannot be renewed yet.");
+                       result->Set("error", "The certificate for CN '" + cn + "' is valid and uptodate. Skipping automated renewal.");
                        return result;
                }
        }