# SSL certificate problem: certificate has expired' (60)

**URL:** <https://community.localwp.com/t/ssl-certificate-problem-certificate-has-expired-60/28307>\
**Category:** Support\
**Created:** [October 15, 2021, 3:12pm UTC](https://community.localwp.com/t/ssl-certificate-problem-certificate-has-expired-60/28307 "2021-10-15T15:12:28Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![HansPeter](https://avatars.discourse-cdn.com/v4/letter/h/51bf81/32.png) [@HansPeter](https://community.localwp.com/u/HansPeter)\
**Post date:** [October 15, 2021, 3:12pm UTC](https://community.localwp.com/t/ssl-certificate-problem-certificate-has-expired-60/28307/1 "2021-10-15T15:12:29Z")

</div>

### Issue Summary

Since today a CURL call on local development site no longer works. It seems that certificate has expired. Is it related to letsencrypt?

#### Troubleshooting Questions

- Does this happen for all sites in Local, or just one in particular?  
All my sites in local by flywheel

- Are you able to create a new, plain WordPress site in Local and access it in a Browser?  
Yes

#### Replication

Using a public API with a CURL to this api: [https://api.ticketlab.io/docs](https://api.ticketlab.io/docs) which is an open source ([https://api-platform.com/](https://api-platform.com/)) API.  
Connecting with CURL before end of september worked fine.  
Connecting, with code below, will now result in error (60):

$handle = curl\_init();  
curl\_setopt\_array($handle, array(  
CURLOPT\_URL =\> $request\_url,  
CURLOPT\_HTTPHEADER =\> $headers,  
CURLOPT\_RETURNTRANSFER =\> true,  
CURLOPT\_POST =\> 1,  
CURLOPT\_POSTFIELDS =\> json\_encode($post\_data),  
CURLOPT\_SSL\_VERIFYPEER =\> 1,  
CURLOPT\_PROXY =\> ‘’,  
CURLOPT\_TIMEOUT =\> 30  
));

($post data contains username and password)  
$response = curl\_exec($handle);

I tried another local machine (KinstaDev on a docker machine) which doesnt have this problem. Also curl connection on terminal works fine. So this really seams to be a Local issue.

#### System Details

- Which version of Local is being used?  
6.1.4

- What Operating System (OS) and OS version is being used?

- Attach the Local Log. See this Community Forum post for instructions on how to do so:

)

### Security Reminder

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.

---

<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:** [January 13, 2022, 3:13pm UTC](https://community.localwp.com/t/ssl-certificate-problem-certificate-has-expired-60/28307/2 "2022-01-13T15:13:08Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
