Cachia
Cachia

Reputation: 43

Failed to fetch file due to error "cURL error 60: SSL certificate problem: unable to get local issuer certificate"

I am trying to add install modules to a test Drupal site however I keep getting the following error: 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)" Unable to retrieve Drupal project from https://www.drupal.org/project/ctools/releases/8.x-3.4.

Things I have tried so far:

Upvotes: 1

Views: 3979

Answers (3)

Thirsty Six
Thirsty Six

Reputation: 489

WAMP local server. Solved! with 3 simple steps

Upvotes: 0

Cachia
Cachia

Reputation: 43

We figured it out, turns out wamp has multiple php.ini files and I was updating the wrong one >.<

For reference, it should be: C:\wamp64\bin\apache\apache2.4.41\bin\php.ini

Upvotes: 1

user9453520
user9453520

Reputation:

  • download this file: cacert.pem.
  • in your php.ini, put this line:
;;;;;;;;;;;;;;;;;;;;
; php.ini Options  ;
;;;;;;;;;;;;;;;;;;;;

curl.cainfo = "/path/to/cacert.pem"
  • remember, if you can't find the location of your php.ini file, use this command (assuming that php is installed at /etc/php/:

sudo find /etc/php/ -name php.ini

  • restart your server... the problem should be solved

Upvotes: 3

Related Questions