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.
Comment | File | Size | Author |
---|---|---|---|
#27 | recaptchaSiteVerifyUrl-2654474-1.patch | 656 bytes | subramani.msc2011 |
#7 | Recentlogmessage_page.png | 22.1 KB | Thib |
#7 | Availableupdates_page.png | 65.39 KB | Thib |
#7 | Extend_page.png | 12.32 KB | Thib |
Issue fork drupal-2654474
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:
Comments
Comment #2
cilefen CreditAttribution: cilefen commentedSupport requests are normal priority. Can you check if this issue is a duplicate?
Comment #3
ThibI didn't find similar issue.
I have this log entrie when I check any updates:
Comment #4
cilefen CreditAttribution: cilefen commentedPlease add the error in #3 to the issue summary. Also, please describe your environment: platform, PHP version, etc, in the issue summary.
Comment #5
cilefen CreditAttribution: cilefen commentedAre you on 8.0.x HEAD? It could be this change #1538118: Update status does not verify the identity or authenticity of the release history URL
Comment #6
cilefen CreditAttribution: cilefen commentedComment #7
ThibComment #8
cilefen CreditAttribution: cilefen commentedAre you behind a proxy server at your site?
Comment #9
ThibComment #10
cilefen CreditAttribution: cilefen commentedWAMP may have outdated curl certificates.
Comment #11
ThibNo, there is no proxy server
Comment #12
ThibComment #13
hass CreditAttribution: hass commentedSounds like https://www.drupal.org/node/2481341
Comment #14
cilefen CreditAttribution: cilefen commentedThe answer is clear. Reopen this if the community documentation page does not help.
Comment #15
ThibThanks, all is now ok
Comment #16
ykarthikvarma CreditAttribution: ykarthikvarma commentedStill 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).
Comment #17
cilefen CreditAttribution: cilefen commentedThis is an XAMPP problem. Seek help in that project's issue queue.
Comment #18
ykarthikvarma CreditAttribution: ykarthikvarma commentedThanks for a quick response. Will try XAMPP forums :)
Comment #19
hass CreditAttribution: hass commentedPut your self signed cert into the allowed list
Comment #20
samstamport CreditAttribution: samstamport commentedI 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!
Comment #21
cilefen CreditAttribution: cilefen commentedIndeed this is documented.
Comment #22
cilefen CreditAttribution: cilefen commentedThe document I referenced in #20 should perhaps be generalized and the suggestions from #21 added to it.
Comment #23
cilefen CreditAttribution: cilefen commentedComment #24
cilefen CreditAttribution: cilefen commentedComment #25
rwilson0429 CreditAttribution: rwilson0429 commentedI 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.
Comment #26
selinav CreditAttribution: selinav commentedWhat should we do if this solution (#25) doesn't work ?
Comment #27
subramani.msc2011 CreditAttribution: subramani.msc2011 commentedReplace google.com to recaptcha.net. Here is patch file. Try this it might work
Comment #29
elzahaby CreditAttribution: elzahaby as a volunteer commentedif 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;