Local Community

cURL error 60: SSL certificate problem: self signed certificate

Hi there
I am using wpml local flywheel as normal
when i try to change it to a directory based system for languages i get:

When WPML accesses https://xxxxxxxxxx/en?____icl_validate_directory=1 it gets:
cURL error 60: SSL certificate problem: self signed certificate

I know u have this:

https://localbyflywheel.com/community/t/curl-error-when-accessing-ssl-local-site/2940

but i cant do this all the time
can you offer solutions to this or i cant use local at all for local development
thanks

bo

Hey @bomakalu – Thanks for your patience with all of this, it’s definitely a hard issue to track down and replicate.

  • What version of Local are you using?
  • What Operating System and OS version is being used?
  • Can you please provide your Local Log? See this Community Forum post for instructions on how to do so:
  • Does this happen for all sites in Local, or just one?
  • Do you have a screenshot of the error you are seeing in the browser?

Hi

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 https://curl.se/docs/caextract.html 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:

  1. Edit a page using Oxygen
  2. Click to +Add a component
  3. Open the Library tab and select Design Sets
  4. 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.

Any help would be appreciated.

Thanks,
Stuart