I'm getting SSL certificate problems: unable to get local issuer certificate
error when connecting to Magento marketplace using WAMP. Please tell me how to fix it.
Asked
Active
Viewed 4,355 times
4

jww
- 97,681
- 90
- 411
- 885

Arun Kumar
- 111
- 2
- 3
- 14
2 Answers
4
thanks it fixed
I downloaded the .pem file https://curl.haxx.se/ca/cacert.pem and then input this line in php.ini:
{curl.cainfo=/path/to/downloaded/cacert.pem}
In /setup/src/Magento/Setup/Model/MarketplaceManager.php
change this: protected $urlPrefix = 'https://'; 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

Arun Kumar
- 111
- 2
- 3
- 14
-
Fiddling around with core implementation is not advised - this lowers the chances that your future upgrades can be deployed smoothly. Changing from `https://` to `http://` is a hack and does not require setting up the CA file anymore... I suggest to revert back to Magento's original state and use proper secure transport instead – Oliver Hader Oct 16 '16 at 19:11
-
Besides that, if you question has been answered (either by my previous answer or your own), please vote for it and mark your question as solved. Thx – Oliver Hader Oct 16 '16 at 19:12
0
It seems that there's no certification information available on your windows system. This answer might solve the issue you experienced:
curl: (60) SSL certificate : unable to get local issuer certificate

Community
- 1
- 1

Oliver Hader
- 4,093
- 1
- 25
- 47