title: error setting certificate verify locations
body: <pre><code>OS: Ubuntu 16.01
  PHP: 7/0
  </code></pre>
  
  <p>Based on some googling, and input from questions on StackOverflow, I am setting the following Curl options:</p>
  
  <pre><code>CURLOPT_SSL_VERIFYPEER =&gt; true,
  CURLOPT_SSL_VERIFYHOST =&gt; 2,   
  CURLOPT_CAINFO  = '/etc/ssl/certs',
  </code></pre>
  
  <p>I verified that /etc/ssl/certs directory exists, and that it is current.</p>
  
  <p>I also modified the file /etc/php/7.0/cli/php/ini:</p>
  
  <pre><code>openssl.capath='/etc/ssl/certs'
  </code></pre>
  
  <p>When I try to make the Curl call, I get the following error:</p>
  
  <pre><code>[error] =&gt; error setting certificate verify locations:
      CAfile: /etc/ssl/certs
      CApath: /etc/ssl/certs
  </code></pre>
  
  <p>I edited the permissions in the /etc/ssl/certs to:</p>
  
  <pre><code>rwxr-xr-x
  </code></pre>
  
  <p>But I am getting the same error.</p>
  
  <p>Any ideas?</p>