简体   繁体   English

SSL证书错误:在我的Laravel网站上使用Twilio时证书链中的自签名证书

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

I am testing my codes on my localhost and I tried dtisgodsson/laravel4-twilio to apply on my current website but I got this error 我在我的localhost上测试我的代码,我尝试在我当前的网站上申请dtisgodsson / laravel4-twilio,但是我收到了这个错误

SSL certificate problem: self signed certificate in certificate chain

right after I put this code inside my index.blade.php: 在我将此代码放入index.blade.php之后:

Twilio::to('119061539155')->message('This is so, damn, easy!');

What do I need to do to get rid of this error? 我该怎么做才能摆脱这个错误?

Twilio Developer Evangelist here. Twilio开发者传播者在这里。

This error is caused by not having an up-to-date bundle of CA root certificates with your PHP installation. 此错误是由于您的PHP安装没有最新的CA根证书捆绑包引起的。 You need to download the latest CA root certificate bundle and update your php.ini to use this bundle. 您需要下载最新的CA根证书包并更新您的php.ini以使用此捆绑包。 This blog post shows you how to accomplish both of those things. 这篇博客文章向您展示了如何完成这两件事。

Let me know if that gets you all fixed up! 让我知道,如果这一切让你解决了!

If solution selected as answer to this question did not work, and you continue to have SSL authentication problems try this: 如果选择作为此问题的答案的解决方案不起作用,并且您继续遇到SSL身份验证问题,请尝试以下操作:

Change the setting twilio_use_certificate from false to true. 将设置twilio_use_certificate从false更改为true。

Find file OpenVBX/config/config.php and search for "twilio_use_certificate" 找到文件OpenVBX / config / config.php并搜索“twilio_use_certificate”

Then change FROM: 然后改变FROM:

$config['twilio_use_certificate'] = false;

TO: 至:

$config['twilio_use_certificate'] = true;

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM