I realise this is an old thread but I am experiencing the same issue so thought I would share what I have.
My environment
Local Version: 5.10.4+5377
OS: MacOS 11.3.1 (Big Sur)
Local Log: Attached local-lightning.log (369.5 KB)
Does this happen for all sites in Local, or just one?
Currently I am experiencing the issue with a specific area of Oxygen on all Local sites. A cURL call is attempted, and the Self Signed Certificate causes the following error to be thrown:
Items not loaded. cURL error 60: SSL certificate problem: self signed certificate
Screenshot: Attached
I have seen recommended solutions elsewhere to download cacert.pem from curl - Extract CA Certs from Mozilla and then add the following to each Local site’s /conf/php/php.ini.hbs file:
[curl]
curl.cainfo = “/path/to/cacert.pem”
Unfortunately this has not made any difference. I do see the updated entry in phpinfo():
Screenshot: Attached
How to replicate
Unfortunately I can only provide steps to replicate with a site running Oxygen:
Edit a page using Oxygen
Click to +Add a component
Open the Library tab and select Design Sets
Click on your current site’s design set
This initiates a cURL call, which generates the error.
Based on the few posts I have seen on this issue on other forums, I do not believe the issue is specific to Oxygen. Rather it seems to be an issue with any cURL call with Local and Self-signed certs - for example, accessing WP REST API via cURL.
Do you have any antivirus, security, or firewall applications that could be blocking Local? It looks like from the log it might be having trouble connecting.
More details about troubleshooting this here: Router Mode
Have you gotten any prompts while doing work to enter authentication? Are you running any other developer applications simultaneously?
I am getting an error with the CiviCRM plugin, GuzzleHttp\Client returned cURL error 60: SSL certificate problem: self signed certificate, where it is trying to make local calls to the system but it is running into the self-signed curl issue as well. I read on other articles about this and the only way I can get this to work is to copy the self-signed certificate for my local site and save it into the ca-bundle.crt in the wp-includes/certificates folder. I did this just for testing to see if I could get the issue to resolve itself. This is the default path for the ca certificate file from LocalWP.
Once I was able to get things working by doing this, I then changed the php.ini.hbs to use a ca pem file I have on my computer for openssl in which I also appended the self-signed cert to it. Doing it this way also worked for me and prevents issues when WP upgrades and the ca-bundle.crt gets updated as well.
I am running the following:
macOS Monterey 12.6
LocalWP 7.1.0+6396