Set CURLOPT_SSL_VERIFYHOST to false.