Fix that pki sign-csr is not logging the certificate file location

fixes #12422
This commit is contained in:
Michael Friedrich 2016-08-14 09:21:52 +02:00
parent ed53366490
commit a83d81a71d
1 changed files with 1 additions and 11 deletions

View File

@ -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;
}