I had a problem updating modules in my new Drupal 8 install. This error appeared each time Drupal wanted to do a full update check. It couldn’t even find new version available.
Failed to get available update data.
In Drupal recent log entries I found there was an error with curl and ssl verification:
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) in GuzzleHttp\Handler\CurlFactory::createRejection() (line 187of C:\www\drupal8\vendor\guzzlehttp\guzzle\src\Handler\CurlFactory.php).
It seems curl doesn’t have valid certificate authorities for SSL Validation. So I downloaded this cacert.pem I put in C:\Windows\ and added a php.ini setting:
1 |
curl.cainfo = "C:\Windows\cacert.pem" |
Then restart your web server and try again a manual update check in Drupal.
It should be fixed !
And people say the second page of google search results is useless ;)
Thanks man!
No problem, it’s here to help
Thanks for the solution, works like a charm!
It’s difficult to find knowledgeable people in this particular topic, but you seem like you know what
you’re talking about! Thanks