mirror of https://github.com/Icinga/icinga2.git
Fix that pki sign-csr is not logging the certificate file location
fixes #12422
This commit is contained in:
parent
ed53366490
commit
a83d81a71d
|
@ -96,17 +96,7 @@ int PkiUtility::SignCsr(const String& csrfile, const String& certfile)
|
|||
|
||||
X509_REQ_free(req);
|
||||
|
||||
std::ofstream fpcert;
|
||||
fpcert.open(certfile.CStr());
|
||||
|
||||
if (!fpcert) {
|
||||
Log(LogCritical, "cli")
|
||||
<< "Failed to open certificate file '" << certfile << "' for output";
|
||||
return 1;
|
||||
}
|
||||
|
||||
fpcert << CertificateToString(cert);
|
||||
fpcert.close();
|
||||
WriteCert(cert, certfile);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue