Christianus's avatar

cURL error 60: SSL certificate problem: unable to get local issuer certificate

Please help me sove this, i've browse but still have the same error

I've look at this and try http://stackoverflow.com/questions/28858351/php-ssl-certificate-error-unable-to-get-local-issuer-certificate

but still have the same error, what should i do ? set mail ? i've use guzzle/http version 6.2 too

0 likes
7 replies
Christianus's avatar

Cmon someone please help me, i really cant handle this problem anyomore, please

tehwave's avatar

I've fixed this issue by specfically requiring guzzle 4.0 as directed by several posts I found on Google.

Christianus's avatar
Christianus
OP
Best Answer
Level 1

So because i using guzzle with ^6.2 Version i must do this :

In xampp\htdocs\simmb\vendor\guzzlehttp\guzzle\src\Client.php

 $defaults = [
            'allow_redirects' => RedirectMiddleware::$defaultSettings,
            'http_errors'     => true,
            'decode_content'  => true,
            'verify'          => false,               //Change true into false
            'cookies'         => false
        ];
2 likes
GeoffGordon's avatar

Changing the ......vendor\guzzlehttp\guzzle\src\Client.php file to change verify to "false" works. Thanks.

But does not feel like a great solution.

My system was working fine until recently and then stopped working when used from browsers on PC's (not sure about Macs). Interestingly it still worked from my linux servers of scheduled events. Presumably this is because the server has a functioning SSL certificate whereas users don't have one on their desktops. (Changing above code presumably also removes the certificate checking on my servers)

Does anyone have a better solution? (I am using laravel 5.1 and guzzle ~6.2.0)

sektonic's avatar

You can use withoutVerifying() example below:

use Illuminate\Support\Facades\Http;

$response = Http::withoutVerifying()->get('http://example.com');

2 likes

Please or to participate in this conversation.