mirror of https://github.com/Icinga/icinga2.git
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:
commit
69f073f903
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue