I ran into this error recently while updating a client’s WordPress site from version 5.x to 6.9.1.
WP HTTP Error: cURL error 60: SSL certificate problem: unable to get local issuer certificate
If you’ve seen this, here’s what’s actually going on and how to fix it properly.
Seeing cURL error 77 instead? Skip to how to fix cURL error 77 in WordPress.
Why does this happen?
cURL error 60 happens because WordPress doesn’t use your server’s system certificate bundle for outgoing HTTP requests. It ships with its own, stored at wp-includes/certificates/ca-bundle.crt, and uses it to verify SSL connections when downloading updates, installing plugins and calling external APIs. On a site that hasn’t been updated for years, that bundle gets stale, and WordPress can no longer trust newer certificates.
Certificate authorities change over time, and if WordPress can’t trace the SSL certificate of the server it’s trying to reach back to a trusted root in that outdated bundle, cURL throws error 60 and stops further PHP execution, so you can’t simply install a plugin or update a theme.
Newer WordPress versions don’t have this problem. The cert bundle is kept up to date as part of core updates, so a well-maintained site on 6.x or later is unlikely to ever see this error.
The proper fix: update the certificate bundle
The proper fix for cURL error 60 is to replace the outdated certificate bundle in WordPress with a current one. Download the latest CA bundle from https://curl.se/ca/cacert.pem, then copy its contents into wp-includes/certificates/ca-bundle.crt on your server. Updating WordPress core does the same thing automatically, so this manual fix is only needed when you can’t update yet.
Open it in a text editor, then open wp-includes/certificates/ca-bundle.crt on your server the same way. Select all the contents of ca-bundle.crt, paste in the contents from the cacert.pem file, and save. That’s it.
Don’t worry about the different file extensions. Both .pem and .crt are plain text files in the same format. You’re just replacing the contents.

The good news is you don’t need to redo this manually every time.
WordPress updates this file automatically when you run a core update, so once you’re on a current version it stays current on its own.
Temporary workaround if you’re stuck
If you need WordPress working right away, you can temporarily turn off SSL verification for its outgoing requests. This hides cURL error 60 (and 77) so you can install plugins and run updates while you fix the certificate bundle. Add this line to functions.php of your child theme or via Code Snippets plugin, and remove it as soon as the bundle is fixed:
add_filter('https_ssl_verify', '__return_false');Warning: This disables SSL verification entirely. Use it only to unblock yourself while you sort the cert bundle, then remove it. You really don’t want this running on a live site long term.
How to fix cURL error 77 in WordPress
cURL error 77 means cURL can’t read the CA certificate file it was told to use, so it can’t verify any HTTPS connection. In WordPress, that file is usually wp-includes/certificates/ca-bundle.crt. To fix it, check the CAfile path in the error, make sure that file exists, isn’t empty and is readable, and restore it from a fresh copy of WordPress if it’s missing.
The full message usually looks like this:
WP HTTP Error: cURL error 77: error setting certificate verify locations: CAfile: /home/user/public_html/wp-includes/certificates/ca-bundle.crt CApath: nonecURL error 77 vs cURL error 60
Both errors involve the same certificate bundle, but they fail at different points. With error 60, cURL reads the bundle but can’t find the certificate authority that signed the remote site’s certificate, usually because the bundle is outdated. With error 77, cURL can’t read the bundle at all, so the check never starts. The libcurl documentation describes error 77 as a “problem with reading the SSL CA cert (path? access rights?)”.
What causes cURL error 77 in WordPress
cURL error 77 happens when the certificate file named in the error is missing, empty, corrupted or unreadable for the user PHP runs as. The CAfile path in the message tells you which file to check. The most common causes are:
- The bundle was deleted or emptied. A failed or partial core update, a security scanner quarantining the file, or a manual edit that saved an empty file (for example while applying the cURL error 60 fix above).
- Wrong permissions or owner. PHP can’t read the file. This also explains why the error sometimes shows up only in WP-CLI, which may run as a different user than the web server.
- A plugin points to its own certificate file. If the path is inside a plugin folder or under
wp-includes/Requests/, the plugin is using a bundle of its own instead of WordPress’s. Updating or reinstalling the plugin usually fixes it. If not, report it to the plugin’s developer. - The server’s CA bundle is missing. If the path starts with
/etc/ssl/certs/or/etc/pki/tls/, orphp.inisetscurl.cainfooropenssl.cafileto a file that doesn’t exist, it’s a server problem rather than a WordPress one. Local setups like MAMP can hit the same issue with their owncert.pempath.
How to fix cURL error 77
To fix cURL error 77, find the file named after CAfile in the error and make sure PHP can read it. Work through these checks in order, and retry the update or plugin install after each one until the error is gone.
1. Check that the file exists and isn’t empty. In your hosting file manager or over SSH:
ls -l wp-includes/certificates/ca-bundle.crtIf it’s missing or 0 bytes, restore it in the next step.
2. Restore the file. Download your current WordPress version from WordPress.org and re-upload wp-includes/certificates/ca-bundle.crt, or paste in the latest cacert.pem from curl.se as shown above. With WP-CLI, the first command lists missing or modified core files, and the second restores them without touching wp-content or upgrading WordPress:
wp core verify-checksums
wp core download --skip-content --force --version=$(wp core version)3. Fix permissions. The file should be readable (644) and owned by your site’s user:
chmod 644 wp-includes/certificates/ca-bundle.crt4. If the path is outside WordPress, check which file PHP points to, then ask your host to reinstall the server’s CA certificates package or fix that path in php.ini:
php -i | grep -iE 'curl.cainfo|openssl.cafile'The https_ssl_verify workaround above also hides error 77, with the same warning: use it only to unblock yourself for a moment. It only affects requests made through WordPress’s HTTP API, so plugins that call cURL directly will still fail.
Further reading
If you want to dig deeper into cURL error 60, this Stack Overflow thread covers a good range of cases where it shows up. In most of them, the fix comes down to the same thing: giving cURL a current, readable CA bundle, either the one WordPress ships with or the one your server’s PHP is configured to use.
Key takeaway
The key takeaway from cURL error 60 is that the further behind a WordPress install falls, the more surprises it has waiting for you mid-upgrade. An outdated certificate bundle is just one example. Our guide to common WordPress errors and fixes covers others you might run into, from critical errors to the white screen of death.
When a site skips years of core updates, it is not just missing bug fixes, it is carrying an outdated certificate bundle, potentially unsupported PHP, plugins that have not been tested against recent WordPress versions, and security vulnerabilities that have long since been patched for everyone else.
If you find yourself constantly delaying WordPress updates because you are not sure how to do them safely, that is exactly what we are here for.
Our WordPress maintenance plans cover everything from core, plugin, and theme updates to daily backups, security scans, and uptime monitoring, so your site stays healthy without you having to think about it.




