Skip to content

Instantly share code, notes, and snippets.

@Lukas238
Last active March 12, 2018 19:48
Show Gist options
  • Save Lukas238/a7fe617275992b781f95415f1828b83a to your computer and use it in GitHub Desktop.
Save Lukas238/a7fe617275992b781f95415f1828b83a to your computer and use it in GitHub Desktop.
XAMPP - SSL certificate error

XAMPP - CURL SSL Setup

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:
    • With wget: wget http://curl.haxx.se/ca/cacert.pem -P C:\xampp\php\extras\ssl\
  • 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment