Problem/Motivation

Since update drupal core version 8.0.2, the update module displays : Recovering update available failed.

Error message in "Recent log entries":

GuzzleHttp\Exception\RequestException : cURL error 60: SSL certificate problem: unable to get local issuer certificate (see http://curl.haxx.se/libcurl/c/libcurl-errors.html) dans GuzzleHttp\Handler\CurlFactory::createRejection() (ligne 187 de D:\wamp\www\vendor\guzzlehttp\guzzle\src\Handler\CurlFactory.php).

Local environement:
Wampserver 3.0.0
Apache 2.4.17
PHP 5.6.15
MySQL 5.7.9

Solution

The reason is a PHP configuration issue. Read https://www.drupal.org/node/2481341 for the solution. I have suggested this to be added to the system requirements.

Issue fork drupal-2654474

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Thib created an issue. See original summary.

cilefen’s picture

Priority: Major » Normal

Support requests are normal priority. Can you check if this issue is a duplicate?

Thib’s picture

I didn't find similar issue.

I have this log entrie when I check any updates:

GuzzleHttp\Exception\RequestException : cURL error 60: SSL certificate problem: unable to get local issuer certificate (see http://curl.haxx.se/libcurl/c/libcurl-errors.html) dans GuzzleHttp\Handler\CurlFactory::createRejection() (ligne 187 de D:\wamp\www\vendor\guzzlehttp\guzzle\src\Handler\CurlFactory.php).

cilefen’s picture

Please add the error in #3 to the issue summary. Also, please describe your environment: platform, PHP version, etc, in the issue summary.

cilefen’s picture

cilefen’s picture

Title: Impossible to verify the modules updates information » Getting update info results in RequestException : cURL error 60: SSL certificate problem: unable to get local issuer certificate
Thib’s picture

Issue summary: View changes
FileSize
12.32 KB
65.39 KB
22.1 KB
cilefen’s picture

Are you behind a proxy server at your site?

Thib’s picture

Issue summary: View changes
cilefen’s picture

Thib’s picture

No, there is no proxy server

Thib’s picture

Issue summary: View changes
hass’s picture

cilefen’s picture

Status: Active » Closed (fixed)

The answer is clear. Reopen this if the community documentation page does not help.

Thib’s picture

Thanks, all is now ok

ykarthikvarma’s picture

Still facing the same issue even after following the procedure mentioned

-> Download latest cacert.pem (As txt file) from http://curl.haxx.se/docs/caextract.html
-> Add curl.cainfo = [enter your path]\cacert.pem to your php.ini
-> Restart Apache service

I am using Drupal 8.1.0 on XAMP but the below error keeps on coming

GuzzleHttp\Exception\RequestException: cURL error 60: SSL certificate problem: self signed certificate (see http://curl.haxx.se/libcurl/c/libcurl-errors.html) in GuzzleHttp\Handler\CurlFactory::createRejection() (line 187 of D:\xampp\htdocs\services_display\vendor\guzzlehttp\guzzle\src\Handler\CurlFactory.php).

cilefen’s picture

This is an XAMPP problem. Seek help in that project's issue queue.

ykarthikvarma’s picture

Thanks for a quick response. Will try XAMPP forums :)

hass’s picture

Put your self signed cert into the allowed list

samstamport’s picture

I am running UwAmp 3.1.0 with PHP 5.6.18 and MySQL 5.7.11 on Win 10. I was getting "Failed to fetch file due to error "cURL error 60: SSL certificate problem: unable to get local issuer certificate (see http://curl.haxx.se/libcurl/c/libcurl-errors.html)" error message when I try to install a module in Drupal 8.1.8.

In my case I had to add a "certs" folder to C:\UwAmp\bin\apache\conf\ then download the cacert.pem to that certs folder. I also had to add "curl.cainfo = C:\UwAmp\bin\apache\conf\certs\cacert.pem" to my php.ini file using the UwAmp GUI.

For the benefit of those of us who are newbies please explain what's happening here and why the solution fixed the problem. Please also explain why there is not some kind of fix to Drupal 8 to prevent this problem from happening.

Thanks!

cilefen’s picture

Indeed this is documented.

cilefen’s picture

The document I referenced in #20 should perhaps be generalized and the suggestions from #21 added to it.

cilefen’s picture

Issue summary: View changes
cilefen’s picture

Issue summary: View changes
rwilson0429’s picture

I was experiencing the same issue running on Windows 10, Apache 2.4, Php 7.1, Drupal 8.2.

Following the solution at https://www.drupal.org/node/2481341 (which #16 outlined) worked for me.

  • Download latest cacert.pem from http://curl.haxx.se/docs/caextract.html into my php folder (c:\php in my case)
  • Under the Curl section of my php.ini file, I added curl.cainfo = c:\php\cacert.pem.
  • Restarted Apache service.
selinav’s picture

What should we do if this solution (#25) doesn't work ?

subramani.msc2011’s picture

Replace google.com to recaptcha.net. Here is patch file. Try this it might work

3CWebDev made their first commit to this issue’s fork.

elzahaby’s picture

if this error is happening locally and the recommended solution isn't working you can ignore ssl certification errors by putting this line into the settings.local.php

$settings['http_client_config']['verify'] = FALSE;