---
title: "Not secure warning in Chrome: fix it on your own site · CloudSat"
description: "Why Chrome marks your site Not secure and how to fix it on your server: a free certificate, HTTPS redirects, mixed content, certificate errors and renewals."
url: https://cloudsat.io/learn/fix-not-secure-warning-on-your-site
updated: 2026-11-18T12:00:00Z
source: CloudSat (https://cloudsat.io/). Prices in USD.
---

[Security](https://cloudsat.io/learn/topic/server-security)

# Not secure warning in Chrome: fix it on your own site

Why Chrome marks your site Not secure and how to fix it on your server: a free certificate, HTTPS redirects, mixed content, certificate errors and renewals.

CloudSat team November 18, 2026 6 min read

Chrome shows "Not secure" next to the address of any page served over plain HTTP, and a full-page warning when a certificate is wrong. If the site runs on your own server, both are yours to fix, usually in under an hour. The stakes went up this autumn: Google scheduled Chrome 154, in October 2026, to turn on **Always use secure connections** by default for public sites, which puts a warning page in front of HTTP-only sites before they even load.

## Which warning are you seeing?

| What visitors see | Usual cause | Where to look |
| --- | --- | --- |
| "Not secure" beside the address | The page loaded over `http://` | Get a certificate, then redirect |
| A warning page before an `http://` site opens | Chrome's secure-connections setting | Same fix: serve HTTPS |
| `NET::ERR_CERT_DATE_INVALID` | Expired certificate, or a wrong clock on the visitor's device | Renewals |
| `NET::ERR_CERT_COMMON_NAME_INVALID` | The certificate does not cover this hostname | Certificate names |
| `NET::ERR_CERT_AUTHORITY_INVALID` | Self-signed certificate or missing intermediate | Certificate chain |
| HTTPS page with broken images, scripts or a form warning | Mixed content | Mixed content |

## Before you start

Three things must be true, or certificate issuance fails:

1. The domain's `A` (and `AAAA`, if you publish one) record points at this server. See [point a domain to your server](https://cloudsat.io/learn/point-a-domain-to-your-server).
2. Ports 80 and 443 are open in every firewall in front of the web server, including a provider firewall. Let's Encrypt's HTTP check arrives on port 80, even when you only plan to serve HTTPS.
3. A web server answers on port 80 for that name.

## Get a free certificate

Let's Encrypt issues domain-validated certificates at no cost, and every major browser trusts them. Certbot is the usual client. On Ubuntu or Debian with nginx:

```bash
sudo apt install certbot python3-certbot-nginx
sudo certbot --nginx --redirect -d example.com -d www.example.com
sudo certbot renew --dry-run
```

The second command proves you control both names, writes the certificate into the matching nginx server block and, with `--redirect`, sends plain HTTP requests to HTTPS. The third rehearses a renewal without changing anything. The packaged Certbot installs a systemd timer that renews automatically; `systemctl list-timers | grep certbot` shows when it runs next. The Certbot project itself recommends its snap package, which tracks new releases faster than distribution packages.

Other routes are worth knowing. Caddy obtains and renews certificates by itself with no extra client, and CloudSat lists it as a [one-click app](https://cloudsat.io/apps/deploy-caddy). nginx also gained a native ACME module in 2025, and most control panels have a Let's Encrypt button.

## Redirect HTTP and stick to HTTPS

If you configure nginx by hand, send every plain HTTP request to the HTTPS address with a permanent redirect:

```nginx
server {
    listen 80;
    listen [::]:80;
    server_name example.com www.example.com;
    return 301 https://$host$request_uri;
}
```

Then consider HSTS, a response header that tells browsers to use HTTPS for your domain without trying HTTP first. Start with a short lifetime so a mistake expires quickly, and raise it once everything works:

```nginx
add_header Strict-Transport-Security "max-age=300" always;
# add_header Strict-Transport-Security "max-age=31536000" always;
```

Add `includeSubDomains` only when every subdomain serves valid HTTPS, internal ones included. Browsers remember the header for its whole lifetime, so a careless `includeSubDomains` can make an HTTP-only staging site unreachable for a year.

## Fix mixed content

A page loaded over HTTPS that still pulls images, scripts, fonts or form targets over `http://` is mixed content. Chrome upgrades some of those requests to HTTPS, blocks others, and warns before a form submits to an insecure address, so the symptom is often a page that looks broken rather than a clear message.

Open the browser's developer tools, reload the page and read the **Console**: each mixed request is listed with its URL. Then fix the source:

```bash
grep -rn "http://example.com" /var/www/example.com --include=*.html --include=*.php --include=*.css
```

On WordPress, set both addresses under **Settings > General** to `https://`, then rewrite stored links with WP-CLI after a database backup:

```bash
wp search-replace 'http://example.com' 'https://example.com' --dry-run
wp search-replace 'http://example.com' 'https://example.com'
```

As a stopgap while you clean up, the `Content-Security-Policy: upgrade-insecure-requests` header asks browsers to fetch every subresource over HTTPS. It only works for resources that are actually available over HTTPS, so embeds from sites without HTTPS still need replacing.

## Fix certificate errors

Check what the server really sends, from any machine with OpenSSL:

```bash
openssl s_client -connect example.com:443 -servername example.com </dev/null 2>/dev/null \
  | openssl x509 -noout -subject -issuer -dates -ext subjectAltName
```

- **Wrong name.** The `subjectAltName` line must list the exact hostname in the address bar. `www.example.com` and `example.com` are different names; request both. Wildcard certificates such as `*.example.com` need the DNS challenge, not the HTTP one.
- **Untrusted issuer.** If the issuer is your own server, a self-signed certificate is still installed. If the issuer is right but phones or older systems complain, the intermediate certificate is missing: point nginx's `ssl_certificate` at `fullchain.pem`, not `cert.pem`.
- **Expired.** The `notAfter` date has passed, so renewal is broken. The usual reasons are a stopped timer, port 80 closed after setup, or DNS moved to another server. Run `sudo certbot renew --dry-run` and read the error.

When only one visitor sees a date error and the dates look right, their device clock is wrong.

## Renewals are getting more frequent

Certificate lifetimes are shrinking across the industry. The CA/Browser Forum has voted to cut the maximum validity of public certificates from 398 days to 47 days in steps between March 2026 and March 2029, and the first step already limits new certificates to 200 days. Let's Encrypt, which issues 90-day certificates today, plans to move its default to 64 days on February 10, 2027 and to 45 days in 2028.

Two practical consequences follow. Renewals must be automated, and a client that supports ACME Renewal Information (ARI) lets the certificate authority tell it when to renew; if your renewal is hard-coded to a number of days before expiry, change it to about two thirds of the lifetime. And you need your own expiry alarm, because Let's Encrypt stopped sending expiration emails in 2025. A one-line check fits any cron job or monitoring script:

```bash
echo | openssl s_client -connect example.com:443 -servername example.com 2>/dev/null \
  | openssl x509 -noout -checkend 1209600 || echo "certificate expires within 14 days"
```

## FAQ

### Does HTTPS make my site secure?

It encrypts traffic and proves visitors reached your domain. It does nothing about weak passwords, outdated plugins or injection bugs in the application, which still need patching and a firewall.

### Do I need a paid certificate to remove the warning?

No. Browsers treat a free domain-validated certificate exactly like a paid one in the address bar. Paid certificates make sense when you need organization validation for a contract or a support agreement with the issuer.

### The certificate is installed, but Chrome still says Not secure. Why?

Either the page was opened over `http://` with no redirect, or it loads mixed content. Check the address bar for `https://`, then the developer tools console.

### Can I get a certificate for an IP address?

Yes. Let's Encrypt made IP address certificates generally available in January 2026. They are short-lived, about six days, so they only make sense with fully automated renewal.

**Run it on CloudSat.** Cloud VPS on AMD EPYC and NVMe from $1.98/mo in 13 regions, delivered in under 5 minutes and paid in crypto. [See plans](https://cloudsat.io/plans) or [deploy a server](https://dash.cloudsat.io/console/deploy).

## Keep reading

[All guides in Security](https://cloudsat.io/learn/topic/server-security)

- [Point a domain to your server with A and AAAA records](https://cloudsat.io/learn/point-a-domain-to-your-server): Networking Point a domain to your server with A and AAAA records 6 min read
- [OpenSSL on Windows 11: install it and handle certificates](https://cloudsat.io/learn/openssl-on-windows-install-and-common-tasks): Security OpenSSL on Windows 11: install it and handle certificates 6 min read
- [Put SafeLine WAF in front of a web app on a Linux VPS](https://cloudsat.io/learn/safeline-waf-reverse-proxy-setup): Security Put SafeLine WAF in front of a web app on a Linux VPS 6 min read
- [Brute-force protection for SSH and WordPress logins](https://cloudsat.io/learn/stop-brute-force-logins-on-ssh-and-wordpress): Security Brute-force protection for SSH and WordPress logins 7 min read
