title: cURL error 60: SSL certificate problem: self signed certificate (see http://curl.haxx.se/libcurl/c/libcurl-errors.html)
body: <p>I use Guzzle in my Laravel 5.8 project</p>
  
  <p>I'm trying to make a GET to a URL (signed cert) serve on <code>https</code></p>
  
  <p>"<a href="https://172.1.1.1:443/accounts" rel="nofollow noreferrer">https://172.1.1.1:443/accounts</a>" </p>
  
  <pre><code>public static function get($url) {
  
      // dd($url);
  
      try {
          $client = new Client();
          $options = [
              'http_errors'     =&gt; true,
              'connect_timeout' =&gt; 3.14,
              'read_timeout'    =&gt; 3.14,
              'timeout'         =&gt; 3.14,
              'curl'            =&gt; array(
                  CURLOPT_SSL_VERIFYHOST =&gt; false,
                  CURLOPT_SSL_VERIFYPEER =&gt; false
              )
  
          ];
  
          $headers = [
              'headers' =&gt; [
                  'Keep-Alive' =&gt; 'timeout=300'
              ]
          ];
  
          $result = $client-&gt;request('GET', $url, $headers, $options);
  
  
          // dd($result);
  
  
  
      } catch (ConnectException $e) {
  
          //Logging::error($e);
  
          return null;
      }
  
      return json_decode($result-&gt;getBody(), true);
  }
  </code></pre>
  
  <p>I used these 2 flags already </p>
  
  <pre><code>CURLOPT_SSL_VERIFYHOST =&gt; false,
  URLOPT_SSL_VERIFYPEER =&gt; false
  </code></pre>
  
  <p>I'm not sure why I kept getting, </p>
  
  <p><img src="https://i.imgur.com/rzkqsUE.png" alt=""></p>