Solution to Curl url error 60 while downloading, SSL certificate problem: certificate has expired on Mac

On new 2022 Macbook I got the following

url error 60 while downloading https://asset-packagist.org/packages.json: SSL certificate problem: certificate has expired

While using composer, running

~ composer install

and

~ composer update

only the update command revealed an SSL issue. The issue also applied to

composer install

but wasnt reported in the terminal, only the packages were not properly downloaded. The issue occurs because the root certificates shipped with macOS have expired.

Reference StackOverflow post

Was this article helpful?
YesNo