6

In Magento Component Manager, I am trying to Sign in to sync your Magento Marketplace purchases:

Sign in to sync your Magento Marketplace purchases

I get the following error:

SSL certificate problem: unable to get local issuer certificate

SSL certificate problem: unable to get local issuer certificate

What's wrong?

4
  • Not sure. You are using your magento.com authentication key? As an alternative, try the System Configuration option Jan 13 '16 at 15:50
  • Same here: when I click save, it says SSL certificate problem: unable to get local issuer certificate i.imgur.com/rtjKu4n.png
    – Manuel M
    Jan 13 '16 at 16:01
  • Sorry, I don't know. If you haven't already, open an issue on GitHub. This looks like a bug. Jan 13 '16 at 16:23
  • aaaaaaand here I am again. sometimes, SE is like time travel and meeting your past self.
    – Manuel M
    Jul 5 '16 at 12:49
5

(Another user posted a link to solve the problem, but then deleted his answer somehow.)

The problem occured on my local machine using XAMPP. It's not a Magento problem, it's a cURL problem: cURL does not trust my own, self-signed SSL certificate.

Here's how to fix it: https://serverfault.com/questions/633644/adding-a-self-signed-cert-to-the-trusted-certs-within-curl-in-windows

If it still does not work, make sure the cacert.pem file is mentioned in php.ini: https://laracasts.com/discuss/channels/laravel/how-to-solve-curl-error-60-ssl-certificate-in-laravel-5-while-facebook-authentication/replies/104758

4
  • If this solved your problem please mark it as accepted.
    – Maddy
    Jan 15 '16 at 20:03
  • Just had to wait a few days until SO allowed me to do so :)
    – Manuel M
    Jan 16 '16 at 21:44
  • First fix works like a charm! I use xampp php 7.0.15 and magento 2.1.5
    – Irv
    May 3 '17 at 11:45
  • @ManuelM For wamp, ant idea?
    – zus
    May 17 '18 at 12:31
2

It is not the wisest idea, but for a local environment can work even without generating self signed certificates:

In <magento2_root>/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 <magento2_root>/setup/src/Magento/Setup/Model/PackagesAuth.php

Not the answer you're looking for? Browse other questions tagged or ask your own question.