Curl error 60: SSL Certificate problem: self Signed Certificate in Certificate chain (see http://curl.haxx.se/libcurl/c/libcurl-errors.html)

Asked

Viewed 651 times

1

I’m trying to accomplish a WebScraping, however I am getting the following error as return:

Curl error 60: SSL Certificate problem: self Signed Certificate in Certificate chain (see http://curl.haxx.se/libcurl/c/libcurl-errors.html)

My controller has the following code:

$client = new Client();
$crawler = $client->request('GET', 'https://esaj.tjsp.jus.br/cpopg/show.do?processo.codigo=XXXXXXXXX&processo.numero=XXXXXXXX');
$crawler->filter('h2 > a')->each(function ($node) {
    dd($node->text()."\n");
});

In my php.ini I already made the certificate configuration but to:

curl.cainfo = "D:\Trabalho\backendresolveaqui\cacert.pem"
openssl.cafile= "D:\Trabalho\backendresolveaqui\cacert.pem"

But I did not succeed, someone would know how to solve this problem?

Observing: I am using version 5.8 of Laravel and PHP version 7.3.5.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.