Curl 60 error

I have been facing curl: (60) SSL certificate : unable to get local issuer certificate error from a few days now. I am using a trusted SSL certificate provided by GoGetSsl. I tried searching for the solution and every one of them says that you need to have access to the php.ini file to resolve this error but infinity free does not give access to this file. What should I do?
My username- epiz_28935615

Add this to your PHP code:

curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
3 Likes

Where? In which directory? I can’t access the php.ini file

Available in premium hosting I think.
@TigerMANEK426 meant for you to add the code to your php file

3 Likes

The root cause of the issue is that our panel doesn’t support installing the so-called “CA Chain” with the certificate. Browsers work just fine without it, but most automated scripts don’t.

This is not something can can (or at least should) be fixed with php.ini settings, because it’s not PHP that’s broken, it’s your site that’s “broken”.

The code that @TigerMANEK426 provides works, but should be used with the caveat that it does involve basically turning off some of security measures of HTTPS, so use with caution.

But it might help if you could explain a bit where and how you are facing this error, as you said.

Is it WordPress Health Check by any chance? If so, just ignore it, it’s a bogus extension that complains about non-existent issues.

1 Like

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