How to fix cURL error 60 when using composer

Sometimes the local SSL certificate will not be valid when using Composer. Here's how to fix it. This is adapted from an answer on Stack Overflow

  •     download and extract cacert.pem following the instructions at https://curl.se/docs/caextract.html

  •     save it on your filesystem anywhere, ie /Users/loopduplicate/devel/cacert-2021-10-26.pem

  •     in your php.ini, put this file location in the [curl] section and the [openssl] section:

[curl]
curl.cainfo = "/Users/loopduplicate/devel/cacert-2021-10-26.pem"
 
[openssl]
openssl.cafile = "/Users/loopduplicate/devel/cacert-2021-10-26.pem"

External References

Article Type

General