DEV Community

Cover image for Fix SSL “Your connection is not private”
Bozhidar Valchev
Bozhidar Valchev

Posted on Originally published at valcheff.net on

Fix SSL “Your connection is not private”

When Chrome or Firefox shows “Your connection is not private” or “Your connection is not secure” on your domain, your visitors cannot trust your site. In most cases this means there is a problem with the HTTPS / SSL configuration of your own website.

This guide is for website owners. It shows you how to check and fix this error on your site by testing the SSL certificate, the domain configuration, and the certificate chain.

Your Connection is not Secure


What this error means for your website

Modern browsers show this warning when they detect that:

  • the SSL certificate does not match the domain, or
  • the certificate has expired, or
  • the server does not provide a full, trusted certificate chain, or
  • the site redirects to a host without a valid certificate.

From a visitor’s perspective, the message says:

“Do not enter passwords or credit card details here. Someone might read your traffic.”

As a site owner, you should treat this as a configuration bug on your side and fix it as soon as possible.


Step 1: Check your SSL certificate with an online tool

First, verify that your SSL certificate is installed and working correctly.

There are many free online tools that can test this. One simple and reliable option is:

https://www.sslshopper.com/ssl-checker.html

Private Connection and Correct SSL


Step 2: Make sure the domain matches the certificate

A very common cause of the “your connection is not private” error is a mismatch between the domain name and the SSL certificate.

In the SSL report, check that:

  • your exact domain appears in the certificate,
  • any subdomains you use over HTTPS are also covered,
  • you understand the difference between domain.com and www.domain.com.

If the certificate only covers www.domain.com and your site loads from domain.com (without www), users may see a warning. The same happens in the opposite case.

If you see a mismatch:

  • update the certificate so it includes all domains you actually use, or
  • adjust your redirects so visitors always land on the hostname that the certificate covers.

Step 3: Check where your site actually loads from

Next, make sure your domain points to the correct server and host.

Look at:

  • the A/AAAA records in your DNS,
  • any redirects your site performs,
  • the final hostname in the browser address bar.

Typical problems:

  • your DNS points to an old server without a valid certificate;
  • your site redirects from https://yourdomain.com to another host like https://some-default-host.yourprovider.com that uses a different certificate.

In these cases the browser sees a certificate for another domain and shows the warning.


Step 4: Review all checks in the SSL report

In the SSL checker result you will see several checks. Go through them one by one and confirm they all pass.

Pay attention to:

  • Validity: has the certificate expired?
  • Hostname: does the certificate match your domain?
  • Trust: is the certificate issued by a trusted Certificate Authority?
  • Chain issues: is the server sending the full certificate chain?

If something is wrong, the tool will usually show a red or orange warning, together with a short explanation.

Connection Not Private and broken SSL

Step 5: Install the full CA chain

Your server should not only send your main SSL certificate but also the intermediate CA certificates that link it to a root CA trusted by browsers. Together, this is known as the certificate chain.

If the chain is incomplete, some visitors will see:

  • “Your connection is not private” in Chrome
  • “Your connection is not secure” in Firefox

In the SSL checker report:

  • look for mentions of intermediate certificates or chain,
  • check whether the tool says the chain is incomplete or missing.

If the chain is not correct:

  1. Log in to your hosting control panel or server.
  2. Download the correct CA bundle from your SSL provider.
  3. Install the CA bundle together with your main certificate.

Your hosting documentation usually has a section called something like “How to install intermediate certificates / CA bundle”.


Step 6: What happens if no SSL certificate is installed at all

In some cases there is simply no certificate for your domain. When that happens, the web server often falls back to:

  • the first virtual host on the server, or
  • a default system domain belonging to your hosting provider.

The visitor then sees a certificate that does not match your domain, and the browser shows a warning.

In the SSL checker, this looks like:

  • certificate issued for another domain entirely, or
  • a message that your domain does not have a valid certificate.

SSL checker report for a domain with a broken certificate chain

To fix this:

  • issue a new SSL certificate for your domain, or
  • enable the free certificate from your hosting provider (for example, Let’s Encrypt),
  • then rerun the SSL check to confirm it works.

After you find the problem: how to fix it in practice

When the SSL report shows an error or a warning:

  1. Identify which category it belongs to:
    • wrong or missing hostname,
    • expired certificate,
    • missing CA chain,
    • wrong redirect or wrong server.
  2. Fix the configuration:
    • reissue or renew the certificate,
    • install the correct CA bundle,
    • adjust DNS and redirects so the domain points to the right host.
  3. Run the SSL check again to confirm that:
    • all checks are green,
    • the certificate matches your domain,
    • the certificate chain is complete.

If you are not comfortable doing this yourself, send the SSL report to your hosting support and ask them to fix the HTTPS configuration for your domain.


Quick answer:

The “Your connection is not private / secure” warning on your own website usually means a broken HTTPS configuration: a wrong or missing SSL certificate, expired certificate, or incomplete CA chain. Use an online SSL checker, verify that the certificate matches your domain and that the full certificate chain is installed, then fix DNS, redirects, and the certificate setup on your server.

The post Fix SSL “Your connection is not private” first appeared on Valcheff Net.

Top comments (0)