Peer certificate cannot be authenticated with given CA certificates

Issue Summary

Since updating to OSX Monterey and Composer 2, I can no longer run composer update in my project (Theme) folder. The error returned is:

[Composer\Downloader\TransportException]                                                                                                               
  curl error 60 while downloading [URL]/packages.json: Peer certificate cannot be authenticated with given CA certificates  

Troubleshooting Questions

  • Does this happen for all sites in Local, or just one in particular?

I only have one project which uses Composer.

Replication

  • Open the project shell from the LocalWP app.
  • Navigate to the folder containing the Composer dependencies.
  • Call composer update.

System Details

  • Which version of Local is being used?

6.1.5+5536

  • What Operating System (OS) and OS version is being used?

Max OSX Monterey

There is a potential connection to DST Root CA X3 Expiration (September 2021) - Let's Encrypt. Could the problem be that this root certificate (or the SSL certificates installed in the projects) need to be renewed?

If so, you might try the solution in this thread:

Note that there was another couple of follow on things that some users needed to do further down the thread, though I’m not 100% sure that you need to do that to just get Composer working.

Bingo! Brilliant, thanks for the swift response.

1 Like

This topic was automatically closed 36 hours after the last reply. New replies are no longer allowed.