I'm trying to enable zendcoder for HTML5 support and get this error:

cURL connection error (60): SSL certificate problem, verify that the CA cert is OK. Details: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed

Please advise

Comments

heshanlk’s picture

Status:Active» Fixed

It seems you have SSL varification fail on CURL. Go to video/plugin/video_zencoder/includes/ and open the Zencoder.php and go to line 204 and change

curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, true);

to

curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);

Status:Fixed» Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

hcabalic’s picture

Status:Closed (fixed)» Active

Re-opening this because I am having the same problem, however I'm unable to fix this using the solution above.

The error I'm getting:

cURL connection error (60): SSL certificate problem, verify that the CA cert is OK. Details: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed

Seems like I have a different version of the Zencoder.php file, here are lines 199-220:

    // Initialize session
    $ch = curl_init($url);

    // Set transfer options
    curl_setopt_array($ch, $this->options);

    // Execute session and store returned results
    $this->results = curl_exec($ch);

    // Store the HTTP status code given (201, 404, etc.)
    $this->status_code = curl_getinfo($ch, CURLINFO_HTTP_CODE);

    // Check for cURL error
    if (curl_errno($ch)) {
      $this->error = 'cURL connection error ('.curl_errno($ch).'): '.htmlspecialchars(curl_error($ch)).' <a href="http://www.google.com/search?q='.urlencode("curl error ".curl_error($ch)).'">Search</a>';
      $this->connected = false;
    } else {
      $this->connected = true;
    }

    // Close session
    curl_close($ch);

heshanlk’s picture

Status:Active» Fixed

Please search for

curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, true)

and change TRUE to FLASE

hcabalic’s picture

that does not exist in this file, the closest thing to it is at line 203, which is:

   // Set transfer options
   curl_setopt_array($ch, $this->options);
leeyuiwah’s picture

I had the same problem. I have to ADD the line (as the line was not there originally; my files are from 6.x-4.2-beta released on Jan 27, 2011) and then the problem went away.

This fix, however, is not secured. C.f. a discussion about this type or error and its fix on http://bit.ly/fWd8QC

Status:Fixed» Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

revu’s picture

Change 1 to 0 on line 181:5

CURLOPT_SSL_VERIFYPEER => 0,

kalani96746’s picture

Thanks Revu.

Just a note for others this file located at /modules/video/libraries/zencoder-php/Zencoder.php...its still line 181. CURLOPT_SSL_VERIFYPEER => 0

alexymik’s picture

If anyone is having this issue still, in the new versions the fix is the same but in a different place:

sites/all/libraries/zencoder/Services/Http.php:64
  CURLOPT_SSL_VERIFYPEER    => 0,