How to Fix cURL Error 60: SSL Certificate Problem in WordPress
- Ali GhanimatiAuthor
- Last updated
- 8 minutesReading time
- 2,942Views
- Ali Ghanimati
- Last updated:
- 8 min read
- 2,942 views
When you update plugins, a theme or WordPress itself, you may get an error such as Download failed. cURL error 60: SSL certificate problem instead of the success message. The plugin does not update, installing a new plugin fails, and sometimes parts of the dashboard that connect to other sites stop working too. The full error is usually one of these:
cURL error 60: SSL certificate problem: unable to get local issuer certificate
cURL error 60: SSL certificate OpenSSL verify result: unable to get local issuer certificate (20)
cURL error 60: SSL certificate problem: certificate has expired
cURL error 60: SSL certificate problem: self-signed certificate in certificate chainAll of these messages mean the same thing: WordPress could not verify the SSL certificate of the site it was connecting to. This guide first shows where the error comes from and how to tell which part is at fault, then goes through the fixes in order, from the simplest and most common.
Short answer: on most sites the cause is an outdated list of root certificates. To check other sites’ certificates, WordPress uses the file
wp-includes/certificates/ca-bundle.crt. Update WordPress to the latest version, or replace the content of this file with a freshcacert.pemfrom the cURL website. If the error stays, check the server’s clock and the PHP version. Never turn off SSL verification.
What is cURL and why does it give error 60?

cURL is the tool PHP and WordPress use to send HTTP and HTTPS requests to other servers. Every time WordPress fetches the list of updates from WordPress.org, downloads a plugin, or a plugin talks to its own licence server, cURL is working behind the scenes.
On every HTTPS connection, cURL checks the destination server’s SSL certificate against a list of trusted certificate authorities (root certificates). If it cannot trace the destination’s certificate chain back to one of these authorities, it drops the connection and returns error 60. This is deliberate: it keeps you from connecting to fake servers.
What causes cURL error 60 in WordPress

- WordPress’s certificate file is outdated: the most common cause. WordPress carries its list of root certificates in the ca-bundle.crt file, and if the site has not been updated for a long time, the list does not know newer authorities. The best-known case was September 2021, when the DST Root CA X3 root certificate expired and many older sites suddenly hit this very error.
- The server’s clock is wrong: if the server’s date is ahead or behind, even valid certificates look expired or not yet valid.
- PHP, OpenSSL or cURL is old: very old versions do not cope with today’s certificate chains and encryption methods.
- The destination server is at fault: its certificate has expired, is self-signed or has an incomplete chain; for example the licence server of a commercial plugin. In that case the error appears only for that plugin.
- Something in the middle opens the traffic: an antivirus or proxy that inspects HTTPS traffic swaps in its own certificate. The self-signed certificate in certificate chain message often comes from this, especially on a WordPress installed on your own computer (locally).
First, find where the problem is
In the WordPress dashboard, go to Tools → Site Health. On the Status tab, WordPress tests its connection to WordPress.org. If the connection fails, you see the item Could not reach WordPress.org, and opening it shows the full error text.
If you have command-line access to the server (SSH, or Terminal in cPanel), these two commands make a lot clear:
date
curl -sSI https://api.wordpress.org/ | head -1- If
dateshows a wrong date or time, go to method 2. - If the server’s own curl also gives error 60, the operating system’s certificate list is outdated; on shared hosting tell support, and on a VPS update the ca-certificates package.
- If the server’s curl answers fine but WordPress gives the error, WordPress’s own certificate file is the problem; use method 1.
Method 1: Update WordPress’s certificate file

The simplest way is to update WordPress itself; every new WordPress version brings an up-to-date certificate file. If WordPress’s own update hits the same error, replace the file by hand:
- Download the fresh certificate file from the cURL project’s official address: curl.se/ca/cacert.pem. It is built from Mozilla’s list of trusted certificates and is updated regularly.
- In your host’s File Manager, go to the
wp-includes/certificatesfolder and rename the currentca-bundle.crtfile toca-bundle.crt.bakto keep a backup. - Upload cacert.pem to the same folder and rename it to
ca-bundle.crt. - Go back to the dashboard and update your plugins again.

The right file starts like the picture above. Do not worry about later WordPress updates: each new version replaces this file with its own up-to-date list, which is exactly what you want.
Method 2: Fix the server’s clock
If the site is on a VPS or dedicated server and date shows the wrong time, turn on automatic time sync and check the status:
sudo timedatectl set-ntp true
timedatectlIn the second output, System clock synchronized: yes means the server’s clock is fixed. On shared hosting the server’s clock is in the host’s hands; raise it with support.
Method 3: Update the PHP version

If the site still runs on an old PHP version, the OpenSSL and cURL that come with it are old too. Move PHP to a newer version that your theme and plugins support. On a cPanel host you have two ways.
With Select PHP Version: open this option in cPanel, choose the new version from the list next to Current PHP version and make sure it does not stay on native.

With MultiPHP Manager: if your host has this tool, open it from the Software section of cPanel.

Tick the site’s domain, choose the new version from the PHP Version list and click Apply.

Method 4: Set the certificate path in php.ini

WordPress itself always uses its own ca-bundle.crt, but some plugins work with cURL or OpenSSL directly and follow PHP’s settings. If the error comes only from such a plugin, upload cacert.pem to your hosting’s home folder (outside public_html) and give its full path in php.ini; in cPanel, through MultiPHP INI Editor in Editor Mode:
curl.cainfo = "/home/username/cacert.pem"
openssl.cafile = "/home/username/cacert.pem"Replace /home/username with the path of your own hosting home folder; cPanel shows it under General Information as Home Directory. The path must be complete; a relative one (such as public_html/…) does not work.
If the error is only for one plugin
When all other updates work and only one plugin, usually a commercial one, gives error 60, the certificate of its maker’s server probably has a problem. Open the server’s address in your browser or test it with an online SSL checker, and raise it with the plugin’s developer. If you see the message no alternative certificate subject name matches target host name for your own domain, your site’s SSL certificate does not match the domain name; see our tutorial on enabling SSL in cPanel.
Frequently asked questions
Doesn’t turning off SSL verification (sslverify) solve it?
It hides the error but puts the site at risk. Without checking certificates, WordPress cannot tell whether it is connected to the real server or a fake one, and it might download and install a tampered plugin. Set aside any plugin or code that suggests this.
WordPress on my own computer (XAMPP or WAMP) gives this error; what should I do?
In these packages on Windows, PHP usually has no certificate list. Put cacert.pem in a folder such as C:\xampp\php and point the curl.cainfo and openssl.cafile settings in php.ini to its full path. Then restart Apache. If your antivirus inspects HTTPS traffic, turn that off too for the test.
Is replacing ca-bundle.crt safe?
Yes, as long as you take the file only from the official curl.se address. The file is just a list of trusted authorities, the same list the Firefox browser trusts.
If it still is not fixed
If your site is on HiData hosting, you change the PHP version yourself in cPanel. If these methods do not fix the error, send the full error text, the name of the plugin that gives it and the time to HiData support, so we can check the certificate list and the server settings. To keep the whole site secure, also see the WordPress security checklist.


