[英]Ssl certificate error: unable to get local issuer certificate on wamp in magento 2
I'm getting SSL certificate problems: unable to get local issuer certificate
error when connecting to Magento marketplace using WAMP. 我收到SSL证书问题:使用WAMP连接到Magento市场时
unable to get local issuer certificate
错误。 Please tell me how to fix it. 请告诉我如何解决它。
thanks it fixed 谢谢你修好了
I downloaded the .pem file https://curl.haxx.se/ca/cacert.pem and then input this line in php.ini: 我下载了.pem文件https://curl.haxx.se/ca/cacert.pem ,然后在php.ini中输入这一行:
{curl.cainfo=/path/to/downloaded/cacert.pem} {curl.cainfo = /路径/到/下载/ cacert.pem}
In /setup/src/Magento/Setup/Model/MarketplaceManager.php 在/setup/src/Magento/Setup/Model/MarketplaceManager.php中
change this: protected $urlPrefix = 'https://'; 改变这个:protected $ urlPrefix ='https://'; into protected $urlPrefix = 'http://';
into protected $ urlPrefix ='http://';
This is really a modification of a core file, so avoid this method if you can solve the problem with a certificate. 这实际上是对核心文件的修改,因此如果您可以使用证书解决问题,请避免使用此方法。
Update: In 2.1.x the file to edit is /setup/src/Magento/Setup/Model/PackagesAuth.php 更新:在2.1.x中,要编辑的文件是/setup/src/Magento/Setup/Model/PackagesAuth.php
It seems that there's no certification information available on your windows system. 似乎您的Windows系统上没有可用的认证信息。 This answer might solve the issue you experienced:
这个答案可能会解决您遇到的问题:
curl: (60) SSL certificate : unable to get local issuer certificate curl:(60)SSL证书:无法获得本地颁发者证书
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.