Closed hirasso closed 2 years ago
@hirasso Can you try this same command with the latest nightly version of WP-CLI? You can update to the latest nightly version via the following command:
wp cli update --nightly
@schlessera I updated to 2.5.1-alpha-e09df43
and ran wp package install wp-cli/find-command
again. The error persists.
Hey @hirasso,
If it's helpful, here's a report of a similar problem: https://github.com/wp-cli/profile-command/issues/172
Essentially, you likely have an out of date SSL certificate on your machine that you'll need to update.
Hi @danielbachhuber , thanks for your reply! Do you by any chance know how I can discover which SSL certificate is being used for CURL? I'm on a MAC and can't find anything via Google... probably I don't know the right wording for the search phrase ;)
I looked up the location of openssl on my system as described here. Then I updated my cert.pem
file as described here. After that, the error still persists, even after a restart. That's why I'm asking myself if wp-cli's curl actually uses this certificate at all...
Ok, found it. After one year. My terminal php was linked to MAMP:
❯ which php
/Applications/MAMP/bin/php/php7.4.21/bin/php
Then I googled for "mamp curl error 60 ssl certificate problem certificate has expired" and found this post on SO, that finally helped me solve it.
In a nutshell: I had to tell my PHP version which cacert.pem
it should be using.
@hirasso Glad you were able to figure it out! 🐛 🔨
It really made a big difference to get a helping hand like yours today, @danielbachhuber . Just having this feeling that someone actually cared out there helped me finally take the time to solve this. Thanks again!
Just having this feeling that someone actually cared out there helped me finally take the time to solve this.
❤️
Thanks again!
You're welcome!
Bug Report
Describe the current, buggy behavior
wp package install
fails due to expired certificateDescribe how other contributors can replicate this bug
This command:
returns this error:
Describe what you would expect as the correct outcome
I would expect that the package
wp-cli/find-command
would be installed.Environment