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

lemmon's avatar
Level 28

GuzzleHttp\Exception\RequestException cURL error 60: SSL certificate problem

Following along with Laravel 8 From Scratch lesson 58. Mailchimp api Tinkering.

I got this error:

GuzzleHttp\Exception\RequestException

cURL error 60: SSL certificate problem: self signed certificate in certificate chain (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for https://us6.api.mailchimp.com/3.0/ping

Here is the code I ran:

Route::get('/ping', function () {
    /*ddd(config('services.mailchimp.key'));*/

    $mailchimp = new \MailchimpMarketing\ApiClient();

    $mailchimp->setConfig([
        'apiKey' => config('services.mailchimp.key'),
        'server' => 'us6'
    ]);


    $response = $mailchimp->ping->get();
    ddd($response);
});

I am using wamp server.

0 likes
10 replies
lemmon's avatar
Level 28

I have a local development server and it works there, so maybe it is a wampserver thing or a windows thing. Help will be appreciated. :)

frankielee's avatar

Check this line in php.ini. You might need to install cacert.pem file and assign the path.

curl.cainfo = "G:\laragon\etc\ssl\cacert.pem"
2 likes

Please or to participate in this conversation.