Opencart-instamojo:Curl错误消息:SSL证书问题:证书链中的自签名证书

时间:2016-04-05 06:00:43

标签: php ssl curl opencart2.x instamojo

我在 opencart 中使用 instamojo 作为支付网关。

Opencart版本为:2.0.3.1

我从https://github.com/Instamojo/Instamojo-OpenCart-2.0下载 instamojo ,然后按照此处说明的说明操作。

成功全面实施后,我使用 instamojo 付款。但付款后我会重定向到购物车页面,而不是成功页面。管理员面板中没有订单,也没有收到电子邮件。

我检查system/logs/imojo.log

中的错误日志

它显示:

2016-04-04 14:35:13 - Curl error no: 60 || Curl error message: SSL certificate problem: self signed certificate in certificate chain
2016-04-04 14:35:13 - Payment for this ID(xxxxxxx) was not successful: null
2016-04-04 14:35:13 - Response from server is null.
2016-04-04 14:35:13 - Payment for xxxxxxx was not credited.

我按照http://unitstep.net/blog/2009/05/05/using-curl-in-php-to-access-https-ssltls-protected-sites/链接创建CA证书并将文件放入C:/wamp/www/MyCACertificate.crt

并添加

curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, true);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 2);
curl_setopt($ch, CURLOPT_CAINFO, getcwd() . "/MyCACertificate.crt");
_getcurlInfo函数中的

catalog/controller/payment/instamojo.php

php.ini 文件更改为curl.cainfo = "c:/wamp/www/MyCACertificate.crt"

但是在日志中显示相同的错误卷曲错误消息:SSL证书问题:证书链中的自签名证书

我如何解决这个问题?请帮帮我..

0 个答案:

没有答案