Twilio SMS PHP API


Twilio SMS PHP API

Fatal error: Uncaught exception 'Services_Twilio_TinyHttpException' with     message 'SSL certificate problem: self signed certificate in certificate chain'
in C:'a_testsms'Services'Twilio'TinyHttp.php:119 
Stack trace: #0    
C:'a_testsms'Services'Twilio.php(179): Services_Twilio_TinyHttp->__call('post', Array) #1 
C:'a_testsms'Services'Twilio.php(179): Services_Twilio_TinyHttp->post('/2010-04-01/Acc...', Array, 'From=%2B1201419...') #2 
C:'a_testsms'Services'Twilio'ListResource.php(92): Base_Services_Twilio->createData('/2010-04-01/Acc...', Array) #3 
C:'a_testsms'Services'Twilio'Rest'Messages.php(24): Services_Twilio_ListResource->_create(Array) #4
C:'a_testsms'Services'Twilio'Rest'Messages.php(71): Services_Twilio_Rest_Messages->create(Array) #5
C:'a_testsms'sendnotifications.php(49): Services_Twilio_Rest_Messages->sendMessage('+12014196393', '+67573852595', 'Hellow Test, Te...') #6
{main} thrown in C:'a_testsms'Services'Twilio'TinyHttp.php on line 119

我希望是否有人可以帮助我解决上述我遇到的Twilio API(PHP)错误。我的 Web 应用程序需要在客户完成注册过程后发送短信。我下载了 Twilio PHP 助手库,并为$id和$token变量创建了 PHP 脚本。我也有启用Twilio短信的电话号码。我似乎无法再自己解决这个问题了。

请查看此 github 对您的问题的回复

https://github.com/twilio/twilio-php/issues/203

DR版本是...

我们已从库中删除了固定的证书链,因为在替换 API 服务器中的过期证书时,它会导致问题。您需要确保您的 PHP 安装可以访问最新的 CA 证书捆绑包,以便它可以验证服务器证书。以下是简要说明: http://snippets.webaware.com.au/howto/stop-turning-off-curlopt_ssl_verifypeer-and-fix-your-php-config/