Twilio PHP - Ssl Certificate: Self Signed Certificate in Certificate Chain

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.

SSL certificate error: self signed certificate in certificate chain in using Twilio on my Laravel Website

Twilio Developer Evangelist here.

This error is caused by not having an up-to-date bundle of CA root certificates with your PHP installation. You need to download the latest CA root certificate bundle and update your php.ini to use this bundle. This blog post shows you how to accomplish both of those things.

Let me know if that gets you all fixed up!

Requiring self signed certificate when referencing the Twilio dll

If you want to reference the library directly (not through another proxy/wrapper) the easiest fix in this scenario would be to download the source code and compile a signed version yourself.

However, I stumbled upon this interesting article: .NET-Fu: Zero Delay Signing Of An Unsigned Assembly, and contrary to my initial comment, it seems you can actually sign an already compiled DLL by first decompiling it into IL and then recompiling it, signing it in the process. Microsoft even provides you with tools that can be used to do so, namely ildasm for decompilation and ilasm for re-compilation.



Related Topics



Leave a reply



Submit