title: Verifying SSL certificate failing with Kohana
body: <p>I'm trying to use HTTPS on my localhost environment with Kohana but it keeps throwing the following error, does anyone know how to fix this?</p>
  
  <pre><code>Request_Exception [ 0 ]: Error fetching remote /protected/someFunctionCall.json [ status 0 ] SSL certificate problem, verify that the CA cert is OK. Details: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed
  </code></pre>
  
  <p>I'm building by post requests like so:</p>
  
  <pre><code>$url = "https://www.foobar.com:18443";          
  $data = http_build_query($params);
  
  // This uses POST - http://kohanaframework.org/3.2/guide/kohana/requests#external-requests
  $request = Request::factory($url)
          -&gt;method(Request::POST)
          -&gt;body($data)
          -&gt;headers('Content-Type','application/x-www-form-urlencoded; charset=UTF-8');
  
  $response = $request-&gt;execute();
  </code></pre>
  
  <p>I have generated my self signed certificates with OpenSSL following this guide:</p>
  
  <p>(Simon's answer): <a href="https://stackoverflow.com/questions/4221874/how-do-i-create-https-for-localhost-apache">How do I allow HTTPS for Apache on localhost?</a></p>