【问题标题】:magento2 marketplace admin sync errormagento2 市场管理员同步错误
【发布时间】:2016-01-20 12:47:40
【问题描述】:

尝试将我的市场帐户与 magento2 管理面板同步并收到此错误:

error setting certificate verify locations: 
CAfile: F:\xampp\ca-bundle\ca-bundle.crt CApath: none

CMS 使用 https 和 ssl 自签名证书安装到 localhost,系统 - windows 7。

在 php.ini 中添加了这个:

[curl]
curl.cainfo="F:\xampp\ca-bundle\ca-bundle.crt"
openssl.cafile="F:\xampp\ca-bundle\ca-bundle.crt"

当我为 linux 阅读这个问题时,根据权限和目录应该是可读的。但是我的系统安装在 C:/ 所以对于 F:/ 任何目录都应该可用。 与什么问题有关?如何解决? 谢谢。

【问题讨论】:

    标签: magento2


    【解决方案1】:

    我找到了解决这个问题的方法,让我们试试这个:
    http://chrisschuld.com/2008/07/how-to-fix-the-curl-error-error-setting-certificate-verify-locations/
    (这个linux的解决方案)

    在 Windows 上使用 xampp,让我们试试:
    1.在xampp\apache\conf\ssl.crt中打开文件server.crt
    2. 复制 server.crt 的内容并粘贴到 xampp\perl\vendor\lib\Mozilla\CA 中的 cacert.pem 的末尾
    3. 添加到 php.ini 的末尾: curl.cainfo="D:\xampp\perl\vendor\lib\Mozilla\CA\cacert.pem"
    4. 重启你的 Xampp

    参考:https://yikesplugins.com/support/knowledge-base/i-receive-the-error-ssl-certificate-problem-unable-to-get-local-issuer-certificate-why/

    【讨论】:

    • 谢谢。我在您的第一个链接上找到了 cacert.pem 并添加了它。一切正常。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-12-03
    • 1970-01-01
    • 2012-04-30
    • 1970-01-01
    • 1970-01-01
    • 2017-07-02
    相关资源
    最近更新 更多