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
C:\xampp\php\ext
- Open the file
C:\xampp\php\php.ini
- Insert following line in the bottom
curl.cainfo="C:\xampp\php\ext\cacert.pem"
of the file, ifcurl.cainfo
does not exists already (then you should replace the line)
Now it should work.
Inspiration taken from:
- https://www.developergarden.com/apis/documentation/bundle/telekom-sdk-php/doc/html/basicusage_certificate.html
- https://laracasts.com/discuss/channels/general-discussion/curl-error-60-ssl-certificate-problem-unable-to-get-local-issuer-certificate/replies/52954
- https://laracasts.com/discuss/channels/general-discussion/curl-error-60-ssl-certificate-problem-unable-to-get-local-issuer-certificate/?page=1