Solve Laravel/XAMPP/GuzzleHTTP cURL error 60: No SLL certificate

I you get following error, when trying to cURL with Laravel or using GuzzleHTTP on an XAMPP server:

cURL error 60: SSL certificate problem: unable to get local issuer certific
ate (see http://curl.haxx.se/libcurl/c/libcurl-errors.html)

You can solve it by installing a certificate.

  1. Download https://gist.github.com/VersatilityWerks/5719158/download
  2. Extract it an place it in C:\xampp\php\ext
  3. Open the file C:\xampp\php\php.ini
  4. Insert following line in the bottom curl.cainfo="C:\xampp\php\ext\cacert.pem" of the file, if curl.cainfo does not exists already (then you should replace the line)

Now it should work.

Inspiration taken from:

ms@morningtrain.dk'

Martin Schadegg Rasch Jensen