title: How to enable CURLOPT_SSL_VERIFYHOST = 2 support on my OS/PHP
body: <p>I have been developing a site locally that authenticates against a centrailzed signon.  One of the steps is requiring me to make a curl request to an https resource to get an access token.</p>
  
  <p>Part of the curl config is:</p>
  
  <pre><code>    curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);                                         
      //curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 2);
      curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FALSE);
  </code></pre>
  
  <p>As you can see I commented out the CURLOPT_SSL_VERIFYHOST option.  I have read on php.net and on various blogs/stackoverflow (<a href="https://stackoverflow.com/questions/13740933/security-consequences-of-disabling-curlopt-ssl-verifyhost-libcurl-openssl">Security consequences of disabling CURLOPT_SSL_VERIFYHOST (libcurl/openssl)</a>) posts WHAT these options mean. </p>
  
  <p>On my development machine <code>CURLOPT_SSL_VERIFYHOST 2</code> has been working fine.  I am just using the vanilla php install provided in ubuntu 12.04 php5 package, and php5-curl.  </p>
  
  <p>On production (rackspace cloudsites) the <code>CURLOPT_SSL_VERIFYHOST 2</code> is not working, which is why I changed it to false to verify this was the issue. Seeing as i didn't explicitly do anything to enable this on my localhost I do not know what directives/config options controls this.  </p>
  
  <p>What I mean by it is "not working" is that on production the curl call is returning an <code>http_code</code> of <code>0</code> when the <code>VERIFYHOST</code> is set to <code>2</code>.  When I set it to <code>FALSE</code> it is returning a status code of <code>200</code></p>
  
  <p>My question is:</p>
  
  <p><strong>How can i enable <code>SSL_VERIFYHOST</code> on a linux box?</strong></p>
  
  <p>Any help would be greatly appreciated.  Thank you.</p>