To fix the SSL certificate error message "SSL certificate error: unable to get local issuer certificate" try this:
- Download the cert to the PHP instalation folder.
- Manualy:
- Download: http://curl.haxx.se/ca/cacert.pem
- Copy the file
cacert.pem
into the directory: C:\xampp\php\extras\ssl\
- With wget:
wget http://curl.haxx.se/ca/cacert.pem -P C:\xampp\php\extras\ssl\
- Manualy:
- Open
c:\xampp\php\php.ini
with Notepad++ - Search for the
[curl]
section - Add the following lines:
[curl]
; A default value for the CURLOPT_CAINFO option. This is required to be an
; absolute path.
curl.cainfo="C:\xampp\php\extras\ssl\cacert.pem"
openssl.cafile="C:\xampp\php\extras\ssl\cacert.pem"
- Stop / start Apache