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 which is an open source (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?
- For example: macOS Catalina or Windows 10 Professional
macOS Big Sur
- For example: macOS Catalina or Windows 10 Professional
-
Attach the Local Log. See this Community Forum post for instructions on how to do so:
- [How do I retrieve Local’s Log?](
local-lightning.log (170.0 KB)
- [How do I retrieve Local’s Log?](
)
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.