title: Laravel 8/Mailchimp: cURL error 60: SSL certificate problem: unable to get local issuer certificate
body: <p><strong>Problem</strong></p>
  <p>Following <a href="https://laracasts.com/series/laravel-8-from-scratch" rel="nofollow noreferrer">Laracasts tutorial for Laravel 8</a> (and to be specific: <a href="https://laracasts.com/series/laravel-8-from-scratch/episodes/58" rel="nofollow noreferrer">Chapter 58 - Mailchimp API Tinkering, Section 11 - Newsletters and APIs</a>), I ran into an issue which seemed to be pretty common.</p>
  <p>After creating a Mailchimp account and using a newly generated API key in Laravel 8, you would test it by <a href="https://mailchimp.com/developer/marketing/guides/quick-start/#make-your-first-api-call" rel="nofollow noreferrer">Making your first API call</a>, through your <code>web.php</code> file:</p>
  <pre><code>Route::get('ping', function (){
      $mailchimp = new \MailchimpMarketing\ApiClient();
  
      $mailchimp-&gt;setConfig([
          'apiKey' =&gt; config('services.mailchimp.key'),
          'server' =&gt; 'us19'
      ]);
  
      $response = $mailchimp-&gt;ping-&gt;get();
      ddd($response);
  });
  </code></pre>
  <p>Unfortunately, when dumping the <code>$response</code>, the following error would show up:</p>
  <pre><code>GuzzleHttp\Exception\RequestException
  cURL error 60: SSL certificate problem: unable to get local issuer certificate (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) 
  for https://us20.api.mailchimp.com/3.0/ping 
  </code></pre>
  <p><strong>My Stack</strong></p>
  <p>I'm using Laravel 8.79.0 and WampServer 3.2.6
  (with Apache 2.4.51, MySQL 8.0.27, PHP 8.0.13, PHPMyAdmin 5.1.1).</p>