mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-28 16:14:09 +02:00
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);
|
X509_REQ_free(req);
|
||||||
|
|
||||||
std::ofstream fpcert;
|
WriteCert(cert, certfile);
|
||||||
fpcert.open(certfile.CStr());
|
|
||||||
|
|
||||||
if (!fpcert) {
|
|
||||||
Log(LogCritical, "cli")
|
|
||||||
<< "Failed to open certificate file '" << certfile << "' for output";
|
|
||||||
return 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
fpcert << CertificateToString(cert);
|
|
||||||
fpcert.close();
|
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user