From 4a6320d7f7152b05d2d350700e73dc0449996ab7 Mon Sep 17 00:00:00 2001 From: Michael Friedrich Date: Fri, 18 May 2018 17:04:03 +0200 Subject: [PATCH] Update log message for skipped certificate renewal Users kept asking about it, still it is just an "information" that this isn't needed yet. --- lib/remote/jsonrpcconnection-pki.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/remote/jsonrpcconnection-pki.cpp b/lib/remote/jsonrpcconnection-pki.cpp index ce9994023..6c867400c 100644 --- a/lib/remote/jsonrpcconnection-pki.cpp +++ b/lib/remote/jsonrpcconnection-pki.cpp @@ -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; } }