mirror of
https://github.com/Icinga/icinga2.git
synced 2025-04-08 17:05:25 +02:00
Update log message for skipped certificate renewal
Users kept asking about it, still it is just an "information" that this isn't needed yet.
This commit is contained in:
parent
5be3a20e88
commit
f788878f79
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user