Learning how to fix an SSL certificate error on WordPress becomes urgent the moment it happens. Visitors see a frightening red warning page instead of your site, traffic drops off a cliff, and Google starts treating your pages as untrustworthy. The good news is that nearly every SSL error on WordPress comes from a small set of causes, and each one has a straightforward fix you can do yourself in under an hour.
This guide walks you through diagnosing the exact error first, because the fix depends on the cause. Then it covers the step-by-step solutions in order: installing or renewing the certificate, fixing mixed content, correcting the WordPress address settings, and untangling plugin or CDN conflicts. Work through them in sequence and your padlock will be back.
Step 1: Identify Exactly Which SSL Error You Have
Different errors mean different problems, so read the browser’s message before changing anything. Open your site in an incognito window — that rules out your own browser cache — and read the warning carefully.
- “Your connection is not private” / NET::ERR_CERT_DATE_INVALID. The certificate is expired, not yet valid, or the visitor’s clock is wrong. This is the most common SSL error on WordPress sites, and it is also the easiest to fix.
- NET::ERR_CERT_AUTHORITY_INVALID. The certificate was self-signed or issued by an authority the browser does not trust. This is common right after migrating hosts or installing a certificate incorrectly.
- NET::ERR_CERT_COMMON_NAME_INVALID. The certificate does not cover the domain being visited — for example, it covers yourdomain.com but not www.yourdomain.com. If the error only appears on one version of your domain, this is almost certainly the cause.
- Mixed content warnings (a padlock with a warning triangle). The page loads over HTTPS but some images, scripts, or stylesheets still load over HTTP. The certificate is fine; the page’s content is not. This is the error behind most “not secure” complaints on sites that already have SSL — our guide on how to fix the WordPress not secure warning covers this case in detail.
- “Too many redirects” after enabling SSL. WordPress and the server disagree about whether the connection is secure, usually because of a URL setting or a plugin misconfiguration. It feels dramatic, but it is a settings problem, not a broken certificate.
Write down the exact error code before you move on. Two different codes can look identical on screen — a red warning page is a red warning page — but they point at different fixes, and guessing wastes the afternoon.

Step 2: Install or Renew the Certificate to Fix the SSL Error
Most SSL errors trace back to a missing or expired certificate, so fix it at the source before touching anything else.
- Check the certificate status. In cPanel, open SSL/TLS Status. Look for your domain — it shows whether a certificate is installed, who issued it, and when it expires. If nothing is installed, or the expiry date has passed, you have found your problem.
- Run AutoSSL. Select your domain and click “Run AutoSSL”. cPanel will request and install a free certificate automatically. This single click resolves the majority of WordPress SSL errors.
- Or install Let’s Encrypt. If your host offers a Let’s Encrypt option in cPanel, use it to issue a certificate for both yourdomain.com and www.yourdomain.com. Covering both versions prevents the common-name error above. If your budget is tight, note that a cheap SSL certificate still provides the same encryption as an expensive one — the price buys warranty and validation extras, not stronger security.
- Wait for provisioning. New certificates can take minutes to a few hours to become active. Clear your browser cache, or test in an incognito window, before concluding the install failed.
- Enable auto-renewal. Free certificates expire every 90 days. Confirm your host renews them automatically — an expired certificate is the single most common SSL error on WordPress, and it is entirely preventable.
If your host does not offer AutoSSL or Let’s Encrypt, ask support to install a certificate for you, or consider whether your host is the right fit. In our experience, a host that makes SSL difficult in 2026 is a host that will make other things difficult too — see our guide to choosing a hosting company for WordPress if you are weighing a move.
Step 3: Fix Mixed Content Blocking Your WordPress SSL Fix
Your certificate can be perfect and browsers will still warn visitors if the page itself loads resources over plain HTTP. This usually happens after switching an existing site from HTTP to HTTPS, when old posts, widgets, and theme files still point at the old address.
- Find the culprits. Open the broken page, press F12 to open developer tools, and look at the Console tab. Every “Mixed Content” warning names the exact image, script, or stylesheet loading over HTTP. Fix those specific resources rather than guessing.
- Fix it with a plugin (easiest). Install Really Simple SSL — it rewrites HTTP URLs to HTTPS across your content automatically and handles most mixed-content issues without manual work. Activate it, let it scan, and re-check the page.
- Or fix it with search-and-replace. Use the Better Search Replace plugin to replace http://yourdomain.com with https://yourdomain.com across the database. Back up first — search-and-replace is powerful and unforgiving, and a bad replace can break links across the whole site.
- Check hardcoded theme and widget URLs. Logo URLs, custom CSS, and text widgets sometimes contain hardcoded http:// links. Update them to https:// manually. This is the step people skip, and it is the reason the warning survives after the plugin “fixed everything”.

“Nine times out of ten, a WordPress SSL error is one of three things: an expired certificate, a URL setting still on http, or a single image loading insecurely.”
Step 4: Correct the WordPress Address Settings
WordPress stores its own address in the database, and if it still says http:// after you installed SSL, the site will fight itself — generating redirect loops and insecure links on pages that should be secure.
- Check both URL fields. Go to Settings, then General, and look at “WordPress Address (URL)” and “Site Address (URL)”. Both must start with https://, not http://. If either one is wrong, change it and save.
- Fix them if the dashboard is unreachable. If a redirect loop locks you out of wp-admin, edit wp-config.php via cPanel File Manager and add two lines above the “stop editing” comment: define(‘WP_HOME’,’https://yourdomain.com’); and define(‘WP_SITEURL’,’https://yourdomain.com’); — using your actual domain. A related lockout, the WordPress 500 internal server error, is sometimes caused by the same kind of bad edit, so double-check your syntax before saving.
- Clear caches after the change. Caching plugins and CDNs such as Cloudflare may keep serving old http:// versions of your pages. Purge all caches, including any server-level cache your host provides, then test again in incognito.
Step 5: Resolve Plugin and CDN Conflicts
When the certificate is valid and the URL settings are correct but problems persist, a plugin or CDN setting is usually interfering.
- Deactivate SSL-related plugins one by one. Really Simple SSL, Cloudflare plugins, and security plugins can conflict with each other. Deactivate them, test, and reactivate one at a time to find the culprit. Change one thing at a time — if you switch off three plugins at once, you will never know which one caused it.
- Check Cloudflare’s SSL mode. If you use Cloudflare, its SSL/TLS setting must be “Full” or “Full (Strict)”, not “Flexible”. Flexible mode is the classic cause of WordPress redirect loops, because Cloudflare talks HTTPS to visitors but HTTP to your server, and WordPress keeps redirecting to fix a problem that only exists halfway.
- Look for duplicate force-HTTPS rules. Check .htaccess and your security plugin settings for duplicate HTTPS redirect rules. Two plugins both forcing HTTPS can create the very redirect loop they were meant to prevent.
- Test with a default theme. Briefly switch to a default WordPress theme such as Twenty Twenty-Four. If the error disappears, your theme hardcodes insecure URLs somewhere — check its settings or contact the theme developer.

When None of the Steps Work
If you have worked through all five steps and the error is still there, stop guessing and gather evidence for your host’s support team. Note the exact error code from the browser, the certificate expiry date from cPanel’s SSL/TLS Status, whether the error appears on every page or only some, and whether it happens in incognito too. That short list lets support reproduce the problem in minutes instead of trading messages for a day.
One more check worth doing: open your site with the ERR_SSL_PROTOCOL_ERROR fix in mind if the browser shows that code instead of a certificate warning — it points at a protocol mismatch between the browser and the server rather than a bad certificate, and it has its own short list of causes. And if the error only started after a host migration or a DNS change, wait a few hours before rebuilding anything: DNS changes take time to reach every visitor, and a half-propagated move looks exactly like a broken certificate from some locations.
Frequently Asked Questions
Why does my WordPress site say “not secure” even with SSL installed?
Almost always mixed content — the certificate is fine, but something on the page, such as an image, script, or stylesheet, still loads over HTTP. Check the browser console (F12) for Mixed Content warnings to find the exact resource, then fix it with Really Simple SSL or a database search-and-replace.
How do I know if my SSL certificate expired?
Click the padlock, or the warning icon, in the browser address bar and view the certificate details — it shows the expiry date. In cPanel’s SSL/TLS Status you can see expiry dates for all your domains at a glance, which is faster if you manage several sites.
Is a free SSL certificate good enough for WordPress?
Yes. Free certificates from Let’s Encrypt or cPanel AutoSSL provide the same encryption as paid ones. Paid certificates only add extras such as warranty or extended validation display — the encryption itself is identical, so a free certificate is fine for a blog, a business site, or a small shop.
Will fixing SSL affect my Google rankings?
Positively. Google uses HTTPS as a ranking signal, and removing browser warnings stops visitors from bouncing back to the search results. Migrate carefully — update the URL settings, fix mixed content, keep redirects clean — and rankings typically improve rather than drop.
What causes the “too many redirects” error after enabling SSL?
WordPress and the server disagreeing about HTTPS — usually the WordPress Address settings still say http://, Cloudflare is in Flexible mode, or two plugins are both forcing HTTPS redirects. Fix the URL settings first; that resolves most cases.
The Short Version
Knowing how to fix an SSL certificate error on WordPress is mostly about diagnosing before treating: read the browser’s exact error, check the certificate status in cPanel and renew with AutoSSL if needed, hunt down mixed content, correct the WordPress address settings to https://, and untangle any plugin or Cloudflare conflicts. Work through those steps in order and the red warning becomes a green padlock again. Then set a calendar reminder to check certificate expiry — or confirm auto-renewal is on — so you never meet this error twice.

