PHP cURL 'SSL Certificate Problem: Unable to Get Local Issuer Certificate'
Your script cannot verify a secure site. Fix the CA bundle instead of disabling verification.
Reference guide. This guide is written from established practice and the official documentation of the tools involved. We have not yet tested every step on a live demo site. Back up your site before you change anything.
cURL (error 60) means PHP could not verify the other server's certificate chain.
Safe fixes
- Make sure your server's CA certificate bundle is current. Ask your host to update it.
- Point PHP to an up-to-date bundle (
curl.cainfoinphp.ini, orCURLOPT_CAINFOin your code) using a trustedcacert.pem. - If the remote site's certificate is expired or missing the intermediate, the problem is on their side. See our SSL guide.
- Check the server's date and time are correct.
Do not do this
Setting CURLOPT_SSL_VERIFYPEER to false makes the error vanish but removes protection against interception. Use it only for local testing.
WordPress
Plugins calling outside APIs can show the same message. See our Site Health guide.
Related guides
- WordPress Login Page Keeps Reloading or Redirecting (Can't Log In)
- WordPress User Roles Explained: Administrator, Editor, Author, Contributor, Subscriber
- Unknown Administrator Users Appeared in WordPress: What to Do
- Lost Your Phone or Two-Factor Code for WordPress: How to Get Back In
Did this solve it? If not, email hello@sitefixlab.org with the exact error text and we will look into it. Try the problem finder.