# cURL error 60: SSL certificate problem: self signed certificate

**URL:** <https://community.localwp.com/t/curl-error-60-ssl-certificate-problem-self-signed-certificate/14707>\
**Category:** Support\
**Tags:** ssl-certificates\
**Created:** [October 9, 2019, 6:49am UTC](https://community.localwp.com/t/curl-error-60-ssl-certificate-problem-self-signed-certificate/14707 "2019-10-09T06:49:19Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![bomakalu](https://avatars.discourse-cdn.com/v4/letter/b/e47774/32.png) [@bomakalu](https://community.localwp.com/u/bomakalu)\
**Post date:** [October 9, 2019, 6:49am UTC](https://community.localwp.com/t/curl-error-60-ssl-certificate-problem-self-signed-certificate/14707/1 "2019-10-09T06:49:19Z")

</div>

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:

> **[Public - Google Chrome\_2019-10-09 13-47-54](https://tppr.me/Wof2j)**

When WPML accesses [https://xxxxxxxxxx/en?\_\_\_\_icl\_validate\_directory=1](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](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

---

<div class="post-metadata">

**Author:** ![system](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/system/32/1_2.png) [@system](https://community.localwp.com/u/system)\
**Post date:** [August 25, 2020, 6:37pm UTC](https://community.localwp.com/t/curl-error-60-ssl-certificate-problem-self-signed-certificate/14707/2 "2020-08-25T18:37:35Z")

</div>



---

<div class="post-metadata">

**Author:** ![ben.turner](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/ben.turner/32/5366_2.png) [@ben.turner](https://community.localwp.com/u/ben.turner)\
**Post date:** [September 14, 2020, 6:26pm UTC](https://community.localwp.com/t/curl-error-60-ssl-certificate-problem-self-signed-certificate/14707/3 "2020-09-14T18:26:04Z")

</div>

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:
  - [How do I retrieve Local’s Log?](https://localwp.com/community/t/how-do-i-retrieve-locals-log-file/3720)

- 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?

---

<div class="post-metadata">

**Author:** ![ben.turner](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/ben.turner/32/5366_2.png) [@ben.turner](https://community.localwp.com/u/ben.turner)\
**Post date:** [September 14, 2020, 6:26pm UTC](https://community.localwp.com/t/curl-error-60-ssl-certificate-problem-self-signed-certificate/14707/4 "2020-09-14T18:26:11Z")

</div>



---

<div class="post-metadata">

**Author:** ![stuartbowler](https://avatars.discourse-cdn.com/v4/letter/s/f08c70/32.png) [@stuartbowler](https://community.localwp.com/u/stuartbowler)\
**Post date:** [May 13, 2021, 4:57pm UTC](https://community.localwp.com/t/curl-error-60-ssl-certificate-problem-self-signed-certificate/14707/5 "2021-05-13T16:57:43Z")

</div>

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](https://community.localwp.com/uploads/short-url/htzFtho4r1ip2cMyPE1674nvIBn.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
> 
> ![Screenshot 2021-05-13 at 17.44.06](https://us1.discourse-cdn.com/flex019/uploads/lwpforums/original/2X/a/a7e53fd8ed53c80ee6b84a0bfa098786544867fd.jpeg)

I have seen recommended solutions elsewhere to download `cacert.pem` from [curl - Extract CA Certs from Mozilla](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

 ![Screenshot 2021-05-13 at 17.50.56](https://us1.discourse-cdn.com/flex019/uploads/lwpforums/original/2X/d/d56adb61421b9f86a037bd9d0dc84487d3bda5e5.png)

**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

---

<div class="post-metadata">

**Author:** ![sergiodiazmartinez](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/sergiodiazmartinez/32/17774_2.png) [@sergiodiazmartinez](https://community.localwp.com/u/sergiodiazmartinez)\
**Post date:** [February 25, 2023, 8:09pm UTC](https://community.localwp.com/t/curl-error-60-ssl-certificate-problem-self-signed-certificate/14707/6 "2023-02-25T20:09:31Z")

</div>

I am having the same error when i try to import demo data in my local site.

 ![Captura de pantalla 2023-02-25 a las 20.29.58](https://us1.discourse-cdn.com/flex019/uploads/lwpforums/original/3X/a/2/a20041e5ab21251c2b0f23874704a761d0e645f7.png)

Does anyone how to solve this? I asked in Getflywheel and they said to me that they don’t support this kind of questions.

Thank you

Sergio.

---

<div class="post-metadata">

**Author:** ![Nick-B](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/nick-b/32/16140_2.png) [@Nick-B](https://community.localwp.com/u/Nick-B)\
**Post date:** [February 25, 2023, 8:51pm UTC](https://community.localwp.com/t/curl-error-60-ssl-certificate-problem-self-signed-certificate/14707/7 "2023-02-25T20:51:22Z")

</div>

Hi @sergiodiazmartinez

We would be happy to assist with Local troubleshooting! Could you provide some more details to help us troubleshoot further?

- What is your OS?

- What version of Local are you on?

- Please attach a copy of your [Local Logs](https://localwp.com/help-docs/troubleshooting/retrieving-locals-log-file/#download-local-logs)

Keep us posted and we’d be happy to help further!

---

<div class="post-metadata">

**Author:** ![sergiodiazmartinez](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/sergiodiazmartinez/32/17774_2.png) [@sergiodiazmartinez](https://community.localwp.com/u/sergiodiazmartinez)\
**Post date:** [February 25, 2023, 9:08pm UTC](https://community.localwp.com/t/curl-error-60-ssl-certificate-problem-self-signed-certificate/14707/8 "2023-02-25T21:08:49Z")

</div>

Hi @Nick-B ,

Thank you for answering so fast

This is the info:  
OS: macOs Ventura 13.2.1  
Local version: 6.6.1+6281

---

<div class="post-metadata">

**Author:** ![Nick-B](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/nick-b/32/16140_2.png) [@Nick-B](https://community.localwp.com/u/Nick-B)\
**Post date:** [February 25, 2023, 9:42pm UTC](https://community.localwp.com/t/curl-error-60-ssl-certificate-problem-self-signed-certificate/14707/9 "2023-02-25T21:42:43Z")

</div>

Hi @sergiodiazmartinez

Thank you! Can you also share a copy of your Local Log? [Retrieving Local’s Log File](https://localwp.com/help-docs/troubleshooting/retrieving-locals-log-file/#download-local-logs)

Is this issue happening on just one site or all sites?

---

<div class="post-metadata">

**Author:** ![sergiodiazmartinez](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/sergiodiazmartinez/32/17774_2.png) [@sergiodiazmartinez](https://community.localwp.com/u/sergiodiazmartinez)\
**Post date:** [February 25, 2023, 10:46pm UTC](https://community.localwp.com/t/curl-error-60-ssl-certificate-problem-self-signed-certificate/14707/10 "2023-02-25T22:46:23Z")

</div>

Here you have my Local logs.

[local-logs.zip](https://community.localwp.com/uploads/short-url/rERark5xp3aQ0yX1JVqBnw8zbUi.zip) (38.0 KB)

---

<div class="post-metadata">

**Author:** ![Nick-B](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/nick-b/32/16140_2.png) [@Nick-B](https://community.localwp.com/u/Nick-B)\
**Post date:** [February 28, 2023, 2:56pm UTC](https://community.localwp.com/t/curl-error-60-ssl-certificate-problem-self-signed-certificate/14707/11 "2023-02-28T14:56:41Z")

</div>

Hi @sergiodiazmartinez

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](https://localwp.com/help-docs/advanced/router-mode/)

Have you gotten any prompts while doing work to enter authentication? Are you running any other developer applications simultaneously?

---

<div class="post-metadata">

**Author:** ![rbaugh](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/rbaugh/32/15400_2.png) [@rbaugh](https://community.localwp.com/u/rbaugh)\
**Post date:** [July 25, 2023, 2:16pm UTC](https://community.localwp.com/t/curl-error-60-ssl-certificate-problem-self-signed-certificate/14707/12 "2023-07-25T14:16:12Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Nick-B](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/nick-b/32/16140_2.png) [@Nick-B](https://community.localwp.com/u/Nick-B)\
**Post date:** [July 25, 2023, 2:43pm UTC](https://community.localwp.com/t/curl-error-60-ssl-certificate-problem-self-signed-certificate/14707/13 "2023-07-25T14:43:13Z")

</div>

Thank you for sharing your findings @rbaugh!
