wp-cli / profile-command

Quickly identify what's slow with WordPress
MIT License
266 stars 29 forks source link

SSL certificate problem on install. #172

Closed pixelmultiplo closed 2 years ago

pixelmultiplo commented 2 years ago

When trying to install i get this:

Error: curl error 60 while downloading https://wp-cli.org/package-index/packages.json: SSL certificate problem: certificate has expired

danielbachhuber commented 2 years ago

Thanks for the report, @marekmaurizio !

SSL certificate looks fine at the moment:

image

Feel free to re-open if you're still experiencing issues.

nielslange commented 2 years ago

Hello @danielbachhuber 👋

When running wp package install wp-cli/profile-command:@stable and wp package install wp-cli/profile-command:dev-master on my MBP 15" (Mid 2015 with Intel i7), no error appears. However, when running the same commands on my MBP 14" (2021 with M1), I'm getting the same error message.

I'm unable to reopen this issue. Could you please reopen it and let me know if I can provide any further information to narrow down this problem?

wojsmol commented 2 years ago

Hi @marekmaurizio Please post version of Mac OS on the laptop with issue. This is most likely related to expiration of the old Let's Encrypt Root certificate - see this topic on the LE forum.

danielbachhuber commented 2 years ago

@wojsmol Apparently that particular cert wasn't the issue for @nielslange

Do you know of any diagnostic approach he could use to find the right certificate?

wojsmol commented 2 years ago

@danielbachhuber I'm not a Mac expert but reading linked topic from LE forum this problem will occur on OS X 10.11 and earlier. In the mentioned topic the are some solutions to install new LE root certificate on old OS X .

danielbachhuber commented 2 years ago

Thanks @wojsmol !

An update to report: @nielslange was able to "fix" this issue by switching from Local to Laravel Valet.

Generally, it seems like a certificate issue on the system, though — not a WP-CLI specific problem.

hirasso commented 2 years ago

I was getting the same error for quite some time already.

In my case, my system's /private/etc/ssl/cert.pem was actually not expired. But it wasn't being used by my command line PHP version! I am using MAMP and finally solved this error by following these instructions on SO.

Now it works without errors! 🍰