XAMPP - CURL SSL Setup

30 Mar 2017

To fix the SSL certificate error message “SSL certificate error: unable to get local issuer certificate” try this:

[curl]
; A default value for the CURLOPT_CAINFO option.
; This must be an absolute path.
curl.cainfo="C:\xampp\php\extras\ssl\cacert.pem"
openssl.cafile="C:\xampp\php\extras\ssl\cacert.pem"

Keywords: PHP, CURL, SSL, Twitter, CURLOPT_SSL_VERIFYPEER