Merge pull request #6991 from Icinga/bugfix/already-exist-critical

PkiUtility::NewCa(): just warn if the CA files already exist
This commit is contained in:
Michael Friedrich 2019-03-11 10:57:44 +01:00 committed by GitHub
commit 69f073f903
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -24,7 +24,7 @@ int PkiUtility::NewCa()
String caKeyFile = caDir + "/ca.key"; String caKeyFile = caDir + "/ca.key";
if (Utility::PathExists(caCertFile) && Utility::PathExists(caKeyFile)) { if (Utility::PathExists(caCertFile) && Utility::PathExists(caKeyFile)) {
Log(LogCritical, "cli") Log(LogWarning, "cli")
<< "CA files '" << caCertFile << "' and '" << caKeyFile << "' already exist."; << "CA files '" << caCertFile << "' and '" << caKeyFile << "' already exist.";
return 1; return 1;
} }