连接到CommissionJunction令牌时出错:[60] SSL证书问题:无法获取本地发行者证书 [英] Error connecting to CommissionJunction Token : [60] SSL certificate problem: unable to get local issuer certificate

查看:97
本文介绍了连接到CommissionJunction令牌时出错:[60] SSL证书问题:无法获取本地发行者证书的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经部署了网站,并且该网站可以与所有功能完美配合.这是一个电子商务网站.因此,为了进行进一步的开发,我已经从托管服务器下载了文件,并且一切正常.在这个网站上,我添加了以下产品

I have deployed my site and its working perfectly with all functionalities. This is a e-commerce site. So for further developments I have downloaded the files from the hosting server and everything working fine. In this site I add products as below

  • 向系统添加新产品.(在本地计算机和在线站点上均可使用)

  • Add a new product to the system.(working on both local machine and online site)

然后将此相关产品分配到系统中存在的某个列表中.(在在线站点上运行良好,但在本地服务器上生成以下错误.)

Then this relevant product will be assigned into a certain list which exist in the system. (working well on online site but generate below error in local server.)

连接到CommissionJunction令牌时出错:[60] SSL证书问题:无法获取本地发行者证书

系统规格

  • 框架-Laravel 5.3
  • 本地计算机操作系统-Windows 10
  • 本地计算机网络服务-WAMP
  • php版本-7.1.9

我已经对此进行了搜索,无法找到任何解决方案.

I have googled this and unable to find any solution.

还已经浏览了下面的stackoverflow问题

Also navigated through below stackoverflow questions already

  1. 卷曲:(60)SSL证书:无法获得本地发行者证书
  2. PayPal IPN:无法获取本地发行人证书
  3. 使用MailChimp的API的SSL错误
  4. 如何添加证书颁发机构(CA)授予Ubuntu?

也在在Windows上使用cURL

Laravel显示此行中发生了错误.但是我认为没有编码错误.

Laravel shows that error occoured in this line . But I think that there is no coding error.

 $body = curl_exec($ch);
    $errno = curl_errno($ch);
    if ($errno !== 0) {
        throw new Exception(sprintf("Error connecting to CommissionJunction Token : [%s] %s", $errno, curl_error($ch)), $errno);
    }

经历了所有这些之后,仍然没有运气.因此,对此的任何帮助将受到热烈欢迎.谢谢.

After going through all these still no luck . So any help on this will be warmly welcomed. Thanks.

根据我在下面的更改中更改的评论

Acorrding to the comments I have changed below changes

  • 通过从Mozilla提取的CA证书下载了最新的证书捆绑包
  • 然后将证书捆绑包移至 c:\ wamp64 \
  • 如下所示在Apache中启用了 mod_ssl (我不确定该方法是否可行)
  • 单击WAMP图标-> Apache 2.4.27-> Apache模块-> 然后选择ssl_module
  • 通过删除;
  • 启用 php.ini 中的 php_openssl.dll
  • php.ini 中添加了以下代码
    • curl.cainfo ="C:/wamp64/cacert.pem"
    • openssl.cafile ="C:/wamp64/cacert.pem"
    • Downloaded the latest certificate bundle via CA certificates extracted from Mozilla
    • Then certificate bundle moved to c:\wamp64\
    • Enabled mod_ssl in Apache as below (I'm not sure ether this method is OK or not)
    • Clicked on the WAMP icon -> Apache 2.4.27 -> Apache modules -> then select the ssl_module
    • Enabled the php_openssl.dll in php.ini by removing ;
    • Added below codes to php.ini
      • curl.cainfo="C:/wamp64/cacert.pem"
      • openssl.cafile="C:/wamp64/cacert.pem"

      推荐答案

      请按照以下步骤在wamp上进行卷曲

      Follow the below steps to work curl on wamp

      注意:wamp服务器具有多个php版本,因此需要在所有php.in文件中进行更改

      步骤1:下载证书软件包.复制到 C:/wamp64/

      Step 1: Download the certificate bundle. Copy to C:/wamp64/

      步骤2:通过单击通知栏中的wamp图标打开php.ini,并通过目录"E:\ wamp \ bin \ php \ php7.1.22"打开特定于版本的php.ini文件.

      Step 2: Open php.ini by clicking wamp icon in notification bar also open version specific php.ini file through directory ie "E:\wamp\bin\php\php7.1.22".

      步骤3:; extension = php_openssl.dll 之前删除; (忽略是否已删除)

      Step 3: Remove ; before ;extension=php_openssl.dll (ignore if already removed)

      步骤4:在php.ini中找到 [curl] ,然后在 curl.cainfo ="C:/wamp64/cacert.pem"下方添加

      Step 4: Find [curl] in php.ini then add below curl.cainfo="C:/wamp64/cacert.pem"

      步骤5:在php.ini中找到 [openssl] ,然后在 openssl.cafile ="E:\ wamp \ cacert.pem"下方添加

      Step 5: Find [openssl] in php.ini then add below openssl.cafile="E:\wamp\cacert.pem"

      第6步:重新启动沼泽

      这篇关于连接到CommissionJunction令牌时出错:[60] SSL证书问题:无法获取本地发行者证书的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆