Twilio PHP - SSL certificate: self signed certificate in certificate chain Twilio PHP - SSL certificate: self signed certificate in certificate chain curl curl

Twilio PHP - SSL certificate: self signed certificate in certificate chain


I had the exact same issue

Follow these steps:

Download the following file - cacert.pem

Then download the following file - thawte_Premium_Server_CA.pem

Open the second file in a text editor and copy its contents into the first file (cacert.pem at the bottom/end).

Save cacert.pem and add the following lines to your php.ini :

[curl]curl.cainfo=c:/xampp/php/cacert.pem

Obviously change the directory to the one where your pem is located. Restart the php local server (xampp/wamp). Then it will work flawlessly.

thanks.


Edit TinyHttp.php

and add CURLOPT_SSL_VERIFYPEER => FALSE, at $opts array


I'm not using Twilio, but I am on Windows and was having the exact problems described in the OP. I resolved this by downloading the ca-bundle.crt file from this page and pointing my php.ini to it:http://curl.haxx.se/docs/caextract.html