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

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/28535911/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-14 10:56:22  来源:igfitidea点击:

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

phplaravelssllaravel-4twilio

提问by TheBlurr

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

我正在我的本地主机上测试我的代码,并尝试将 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?

我需要做什么才能摆脱这个错误?

回答by rickyrobinett

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. You need to download the latest CA root certificate bundle and update your php.ini to use this bundle. This blog postshows you how to accomplish both of those things.

此错误是由于您的 PHP 安装没有最新的 CA 根证书捆绑包引起的。您需要下载最新的 CA 根证书包并更新您的 php.ini 以使用此包。这篇博文向您展示了如何完成这两件事。

Let me know if that gets you all fixed up!

让我知道这是否让你们都搞定了!

回答by IberoMedia

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:

然后更改从:

$config['twilio_use_certificate'] = false;

TO:

到:

$config['twilio_use_certificate'] = true;