I am running on a non-WP version of Local (all WP files deleted) and am using the AWS SDK for connecting to DO spaces and when I try to get an object I encounter the following error (message modified for security):
"Error executing "GetObject" on "https://custom-domain.nyc3.digitaloceanspaces.com/file.zip"; AWS HTTP error: cURL error 77: error setting certificate verify locations: CAfile: /Users/username/directory/app/public/wp-includes/certificates/ca-bundle.crt CApath: none (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for https://custom-domain.nyc3.digitaloceanspaces.com/file.zip"
As you can see, the system is looking for a ca-bundle.crt file that doesn’t exist since this Local site doesn’t have WP installed.
If I manually add the file, voila. Everything starts working as expected. I shouldn’t have to add this manually to any non-WP site that is making cURL requests.
This has been working perfectly fine for ages so I’m not sure what could be causing it all of a sudden. Is there some system setting in Local that tells cURL in the shell where to find the ca-bundle.cert file?
- Delete all WP files in the
- Make a cURL request using the AWS S3 SDK.
Local Version: 8.0.0
Operating System (OS) and OS version: Mac OS X Ventura 13.4.1
Attach your Local Logs here (Help Doc - Retrieving Local’s Log)
Local does a pretty good job of scrubbing private info from the logs and the errors it produces, however there’s always the possibility that something private can come through. Because these are public forums, always review the screenshots you are sharing to make sure there isn’t private info like passwords being displayed.