X-Git-Url: https://code.wpia.club/?p=cassiopeia.git;a=blobdiff_plain;f=src%2Fapps%2Fclient.cpp;fp=src%2Fapps%2Fclient.cpp;h=4f2d81af6ec81f0747b7f5822fa783188e60d4d7;hp=e26ebbb83d4b875bb00d64a0c32a0533701e6402;hb=3e192fd092ecbc8725a02afc9b6fb90934b258fb;hpb=b006693d959071489d641ce3f111f4ce76299d0e diff --git a/src/apps/client.cpp b/src/apps/client.cpp index e26ebbb..4f2d81a 100644 --- a/src/apps/client.cpp +++ b/src/apps/client.cpp @@ -245,8 +245,6 @@ int main( int argc, const char *argv[] ) { logger::notef( "INFO: AVA %s: %s", AVA->name, AVA->value ); } - logger::notef( "FINE: Found the CSR at '%s'", cert->csr ); - cert->csr_content = readFile( keyDir + "/../" + cert->csr ); logger::note( "FINE: CSR content:\n", cert->csr_content ); std::shared_ptr res = sign->sign( cert ); @@ -260,15 +258,6 @@ int main( int argc, const char *argv[] ) { logger::note( "FINE: CERTIFICATE LOG:\n", res->log, "FINE: CERTIFICATE:\n", res->certificate ); - std::string fn = writeBackFile( job->target.c_str(), res->certificate, keyDir ); - - if( fn.empty() ) { - logger::error( "ERROR: Writeback of the certificate failed." ); - jp->failJob( job ); - continue; - } - - res->crt_name = fn; jp->writeBack( job, res ); //! \FIXME: Check return value logger::note( "FINE: signing done." );