Thanks for the info @EcomEric @sandersweb – From my research into this, I think the issue is that we need to update Mac’s SSL certs (as you mention).
It looks like Loca’s PHP under Mac is using the cURL extension. Because of this, the outdated cert bundle is located at /etc/ssl/cert.pem
This StackOverflow answer from a couple of days ago seems to have fixed things for me on my Mac Big Sur machine:
To recap the steps outlined in that link:
- Backup the existing
cert.pem
file - Download the latest
cacert.pem
file from here: curl - Extract CA Certs from Mozilla - Move the
cacert.pem
file to overwrite thecert.pem
file.
Here’s what that process looks like from within my terminal:
sudo cp /etc/ssl/cert.pem{,-orig}
# use curl, or manually download bundle
curl https://curl.se/ca/cacert.pem > cacert.pem
sudo mv cacert.pem /etc/ssl/cert.pem
@EcomEric – Can you try the above fix that I found from the StackOverflow answer?
@sandersweb – I think the above fix should work for your use case with the HTTP Class as well.