From: Alexander A. Klimov Date: Fri, 1 Mar 2019 13:37:45 +0000 (+0100) Subject: PkiUtility::NewCa(): just warn if the CA files already exist X-Git-Tag: v2.11.0-rc1~210^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=37b044ecdad796c8ba1309de764525c15b8b115d;p=icinga2 PkiUtility::NewCa(): just warn if the CA files already exist --- diff --git a/lib/remote/pkiutility.cpp b/lib/remote/pkiutility.cpp index 56a7ed257..e1e785288 100644 --- a/lib/remote/pkiutility.cpp +++ b/lib/remote/pkiutility.cpp @@ -24,7 +24,7 @@ int PkiUtility::NewCa() String caKeyFile = caDir + "/ca.key"; if (Utility::PathExists(caCertFile) && Utility::PathExists(caKeyFile)) { - Log(LogCritical, "cli") + Log(LogWarning, "cli") << "CA files '" << caCertFile << "' and '" << caKeyFile << "' already exist."; return 1; }