Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

prakash2raj's avatar

cURL error 60: SSL certificate problem: certificate has expired

GuzzleHttp\Exception\RequestException

cURL error 60: SSL certificate problem: certificate has expired (see https://curl.haxx.se/libcurl/c/libcurl-errors.html)

I was calling an API through a controller, it was working fine with the XAMPP server at localhost but on the live server, I am getting this error...please help me to sort out this problem!

My Code in Controller

public function store(Request $request)

{
    $data = $request->except('_token');

    $url = 'https://api.abc.com/v2/schedule?apikey=abcd1234';

    $res = Http::asForm()->post($url, $data)->body();

    $res = json_decode($res);

 return redirect()->route('Home');
}
0 likes
0 replies

Please or to participate in this conversation.