2016-01-20 83 views
0

尝试同步我的magento2管理面板市场帐户,并收到此错误: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:/ so for F:/任何目录都应该可用。 与此相关的问题是什么?如何解决它? 谢谢。

回答

0

我发现这个问题的解决方案,让我们试试这个如下:
http://chrisschuld.com/2008/07/how-to-fix-the-curl-error-error-setting-certificate-verify-locations/
(该解决方案适用于Linux)

随着XAMPP在Windows上,让尝试:XAMPP
1.打开文件server.crt这\ apache \ conf \ ssl.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/

+0

谢谢。我在你的第一个链接上找到了cacert.pem并添加了它。一切还好。 –