Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

whatjob's avatar

Curl erro (code 77) in windows 10 and xampp

Initially, my project in laravel start to show this erro:

"Curl erro (code 60) SSL CERTIFICATE: unable to get local issuer certificate"

Then I try to fix downloading the cacert.pem from https://curl.haxx.se/docs/caextract.html and uncomment the line "curl.cacinfo=C:\cacert\cacert.pem" in my php.ini

But now I have this erro:

"Curl erro (code 77): error setting certificate verify locations"

Even if I try something with artisan I have this erro

This is the erro when I try to run php artisan serve or any command

at C:\xampp\htdocs\wjplatform\vendor\monolog\monolog\src\Monolog\Handler\Curl\Util.php:53 49| if ($closeAfterDone) { 50| curl_close($ch); 51| } 52|

53| throw new \RuntimeException(sprintf('Curl error (code %d): %s', $curlErrno, $curlError)); 54| } 55| 56| continue; 57| }

1 C:\xampp\htdocs\wjplatform\vendor\monolog\monolog\src\Monolog\Handler\SlackWebhookHandler.php:112 Monolog\Handler\Curl\Util::execute()

2 C:\xampp\htdocs\wjplatform\vendor\monolog\monolog\src\Monolog\Handler\AbstractProcessingHandler.php:42 Monolog\Handler\SlackWebhookHandler::write()

How can I fix this?

I'm using xampp

0 likes
2 replies
whatjob's avatar

Thank you Michal, but I tried this solution but it didn't work

Please or to participate in this conversation.