Skip to content

Commit

Permalink
Update log message for skipped certificate renewal
Browse files Browse the repository at this point in the history
Users kept asking about it, still it is just an "information"
that this isn't needed yet.
  • Loading branch information
Michael Friedrich authored and Crunsher committed May 23, 2018
1 parent 4a68ed9 commit 4a6320d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/remote/jsonrpcconnection-pki.cpp
Expand Up @@ -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;
}
}
Expand Down

0 comments on commit 4a6320d

Please sign in to comment.