Skip to content

HTTPS and the padlock: what keeps your site secure

What the padlock in the address bar means, what a security certificate is, and why “Not secure” warnings appear, explained simply.

Written by 4 min read

Browse all guides

The short version

HTTPS means the connection between your visitor and your website is encrypted, so nobody in between can read or change what’s sent. Browsers show it with a padlock or a similar icon.

It works because your site has a security certificate, a kind of ID card issued by a trusted company. Certificates expire, so they need renewing regularly. On a doxDev site that happens automatically.

What HTTPS does

When someone visits your site over HTTPS, two things are true:

  • It’s private. Everything sent between them and your site is scrambled, so someone on the same coffee shop Wi-Fi can’t read the form they fill in.
  • It’s really you. The browser has checked that the site it reached is actually yourname.com, not an impostor.

Without HTTPS, browsers label a site “Not secure.” Many visitors leave when they see that, and search engines favor secure sites. Today, HTTPS isn’t an extra. It’s the baseline.

Certificates: your site’s ID card

A is a small file that says “this site is yourname.com,” signed by a trusted company called a certificate authority. Browsers come with a list of the authorities they trust. When your site shows its certificate, the browser checks the signature, the name, and the expiry date. If everything matches, you get the padlock.

How the padlock happens

  1. Certificate authoritychecks you control the domain, signs a certificate
  2. issues
  3. Your siteshows the certificate to each visitor
  4. presents
  5. Visitor’s browserchecks it, then encrypts the connection
The check happens on every new connection, in a fraction of a second.

Certificates for ordinary websites are usually free. Let’s Encrypt (opens in a new tab), a nonprofit, issues free certificates for millions of sites, and services like Cloudflare issue them for the sites they serve.

Why certificates expire, and why that’s fine

Certificates are deliberately short-lived, so a lost or misused one can only do harm for a limited time. The industry is making them shorter still: the group that sets the rules for certificate authorities has agreed to cut the maximum lifetime in steps, starting in March 2026, down to 47 days by March 2029.

The life of a certificate, with automatic renewal

  1. Day 1

    A certificate is issued

    The authority checks the domain is yours and signs it. Let’s Encrypt certificates, for example, last 90 days.

  2. Every visit

    Browsers check it

    Right name, trusted signer, not expired: padlock.

  3. Well before it expires

    A new one is issued automatically

    Let’s Encrypt suggests renewing 90-day certificates at about day 60. Nobody has to do anything.

  4. Expiry date

    The old one quietly retires

    Visitors are already being shown the new one.

If the renewal step ever fails, that’s when visitors see a full-page warning. Good hosting watches for it.

That sounds like a lot of renewing, and it would be if a person did it. In practice, modern hosting renews certificates automatically, well before they expire. An expired certificate is now mostly a sign that automatic renewal broke or was never set up.

When you see a warning

Why does my browser say “Not secure”?

Question 1

Does the address start with http:// (no “s”)?

“Not secure” in the address bar
The page was loaded over plain http, without encryption. Usually fixed by making sure the site always redirects to https.
A full-page warning (“Your connection is not private”)
The certificate is expired, doesn’t match the name, or isn’t trusted. Visitors are blocked until they click past it, and most won’t. This needs fixing right away.
A padlock with a warning, or missing images
This is called mixed content: the page is secure, but it loads an image or script over plain http. Browsers upgrade or block those pieces. The fix is to link everything over https.

Also worth knowing: the padlock means the connection is secure, not that the site is honest. Scam sites can have certificates too.

Go deeperTLS, handshakes, and validation
  • TLS. HTTPS is HTTP sent over TLS (Transport Layer Security). “SSL” is the older name that stuck around, as in “SSL certificate.” Modern sites use TLS 1.2 or 1.3.
  • The handshake. The browser and server agree on a cipher, the server presents its certificate chain, and they derive shared session keys. With TLS 1.3, that takes a single round trip.
  • Domain validation. For the common certificate type (DV), the authority checks that the requester controls the domain, by having them place a file on the site or a in DNS. The ACME protocol, created for Let’s Encrypt, automates this.
  • Certificate Transparency. Every publicly trusted certificate is logged in public, append-only logs, so mis-issued certificates can be spotted.
  • Behind a CDN. With Cloudflare in front, there are two connections: visitor to Cloudflare (Cloudflare’s edge certificate) and Cloudflare to the . Both should be encrypted; Cloudflare calls the strict version of this “Full (strict)” mode.
  • HSTS. A response header that tells browsers to only ever use https for the site, even if someone types http.

Sources and further reading

Want a website you don’t have to worry about?

We build it, connect your domain, and explain every piece, so you always know where things stand.