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
Secure and Flexible Cross-Domain Sessions
Downloading a Folder Through with Ftp Using PHP
Targeting Specific Email with the Email Id in Woocommerce
How to? Form Post to Multiple Locations
How to Fetch All the Row of the Result in PHP MySQL
Tablegateway with Multiple from Tables
Eloquent Many-To-Many-To-Many - How to Load Distant Relation Easily
Php: Regular Expression to Get a Url from a String
How to Use Authentication for Multiple Tables in Laravel 5
How to Consume a Wcf Web Service That Uses Custom Username Validation with a PHP Page
Customize Addresses Fields on Woocommerce My Account and Checkout
Prevent PHP Script from Being Flooded
How to Use Curl and PHP Simple HTML Dom Parser with Object
How to Select Rows in MySQL Starting at a Given Row Number
Error 405 (Method Not Allowed) Laravel 5
Use PHP Namespace Inside Function
File_Get_Contents() How to Fix Error "Failed to Open Stream", "No Such File"