Php 用Iron IO Laravel 4发送邮件

Php 用Iron IO Laravel 4发送邮件,php,laravel,laravel-4,Php,Laravel,Laravel 4,我使用命令: php artisan queue:subscribe laravel http://your-site-url/queue/push 和获取错误: [Http_例外] http错误:0 | SSL证书问题。验证CA证书是否正常。详情: 错误:14090086:SSL例程:SSL3\u获取\u服务器\u证书:证书验证失败。 失败 队列:订阅[--type[=“..”]]队列url 我在iron.io注册,并在app/config/queue.php中将项目id、令牌和默认密钥驱动

我使用命令:

php artisan queue:subscribe laravel http://your-site-url/queue/push
和获取错误:

[Http_例外] http错误:0 | SSL证书问题。验证CA证书是否正常。详情:

错误:14090086:SSL例程:SSL3\u获取\u服务器\u证书:证书验证失败。 失败 队列:订阅[--type[=“..”]]队列url


我在iron.io注册,并在app/config/queue.php中将项目id、令牌和默认密钥驱动程序添加到iron中这是一个具有讽刺意味的问题,要在Laravel上解决这个问题,您可以将其添加到您的
app/start/global.php
文件中:

Queue::connection()->getIron()->ssl_verifypeer = false;
查看供应商\iron io\iron_mq自述文件:

Troubleshooting

http error: 0

If you see  `Uncaught exception 'Http_Exception' with message 'http error: 0 | '`
it most likely caused by misconfigured cURL https sertificates.
There are two ways to fix this error:

1. Disable SSL sertificate verification - add this line after IronMQ initialization: `$ironmq->ssl_verifypeer = false;`
2. Switch to http protocol - add this to configuration options: `protocol = http` and `port = 80`
此外,您还可以直接在IronMQ web管理页面中手动订阅url:

1. Go to https://hud.iron.io/dashboard

2. On your projects, click in tue MQ button of your project

3. Select the "Queues" tab

4. Click on your queue name, this must be the same you subscribed to using the command "artisan queue:subscribe"

5. In the "PUSH INFORMATION" box, check if your queue push type is set to "multicast".

6. Add a your url in the "SUBSCRIBERS" box.

1.禁用SSL证书验证-在IronMQ初始化后添加此行:
$IronMQ->SSL\u verifypeer=falseIronMQ初始化在哪里?2.切换到http协议-将此添加到配置选项:
protocol=http
port=80
。意思是:将
protocol=http
port=80
添加到iron_mq/sample_config.ini中?我从IronMQ中获取了这些行,而不是Laravel,这些不是解决问题的步骤,但我只是编辑添加了一种Laravel方法来禁用IronMQ SSL。请让我知道它是否适合您。我正在添加line Queue::connection()->getIron()->ssl\u verifypeer=false;进入底部文件app/start/global.php,问题就解决了。我的应用程序在localhost中,我使用ngrok提供的host。谢谢,酷!我很高兴它成功了。所以我只是编辑了答案,让它对Laravel用户来说更客观一点。