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.
- Download https://gist.github.com/VersatilityWerks/5719158/download
- Extract it an place it in
- Open the file
- Insert following line in the bottom
curl.cainfo="C:\xampp\php\ext\cacert.pem"of the file, if
curl.cainfodoes not exists already (then you should replace the line)
Now it should work.
Inspiration taken from: