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");