KoolReport's Forum

Official Support Area, Q&As, Discussions, Suggestions and Bug reports.
Forum's Guidelines

SSL3_GET_SERVER_CERTIFICATE in laravel cloudexport #1495

Open Javier Heras opened this topic on on Jun 19, 2020 - 1 comments

Javier Heras commented on Jun 19, 2020

I have been using cloudexport to generate a pdf report in laravel. And suddenly (at least, i think we have not made any changes in the code), we are getting this error when trying to generate a pdf file.

file_get_contents(): SSL operation failed with code 1. OpenSSL Error messages: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed

This is the code.

$report->run()
            ->cloudExport("MyReportPDF")
            ->chromeHeadlessio("XXXX-here my api key-XXXXX")
            ->pdf([
                "format"=>"A4",
                'printBackground' => true,
                "margin-top"=>"400px",
                "margin-right"=>"400px",
                "margin-bottom"=>"400px",
                "margin-left"=>"400px",
            ])
            ->saveAs("../storage/app/tmp/pdfs/".$incidencia->created_at." ".$incidencia->id."-report.pdf");
David Winterburn commented on Jun 22, 2020

Hi Javier,

Would you please put a css or js file on your web server's public folder and run a simple file_get_contents($path_to_the_file); php script to see if it works? Thanks!

Build Your Excellent Data Report

Let KoolReport help you to make great reports. It's free & open-source released under MIT license.

Download KoolReport View demo
None yet

None