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. :)
Jul 27, 2021
10
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.
Level 29
https://curl.se/docs/caextract.html
Guide: https://docs.bolt.cm/4.0/howto/curl-ca-certificates
@lemmon Download the file, copy and paste the full path. Restart your terminal and try again.
4 likes
Please or to participate in this conversation.