0
votes

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:

  • Installing Different modules
  • Downloading the latest cacert.pem file and putting it in the following folder: C:\wamp64\bin\php
  • Updating the php.ini file with: curl.cainfo = "c:/wamp64/bin/php/cacert.pem"
2

2 Answers

0
votes
  • 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
0
votes

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