magento2 市场管理员同步错误

magento2 marketplace admin sync error

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

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

CMS 使用 https 和 ssl 自签名证书安装到本地主机,系统 - 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:/ 任何目录都应该可用。 与什么问题有关?如何解决? 谢谢

我找到了这个问题的解决方案,让我们试试这个:
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/