A plain-English guide to HTTPS and security certificates

Padlock resting on a laptop keyboard

What the padlock in the address bar means, how certificates work, and the common problems that make a secure site show warnings.

The padlock in a browser's address bar is easy to take for granted, but it tells visitors something important: the connection between their device and your website is private. Behind it sits a security certificate.

What HTTPS actually does

When a site uses HTTPS, the information passing between the visitor and the server is encrypted. Anyone in between, such as someone on the same public Wi-Fi, cannot read what is sent or quietly change the page on its way. Without it, browsers mark the site as "Not secure", which puts many visitors off straight away.

What the certificate is for

A certificate proves that the website really belongs to the domain shown in the address bar. It is issued by a certificate authority after checking that whoever requested it controls the domain. Many hosts now provide certificates free through services such as Let's Encrypt.

Browser address bar on a monitor showing a secure website

Certificates expire

Certificates only last for a limited time, and free certificates in particular are short-lived. They are normally renewed automatically. If renewal fails, visitors see a full-page warning that the site may not be safe, which stops almost everyone. It is worth knowing who or what renews yours, and checking the expiry date now and then.

Common problems

Mixed content. A page loaded over HTTPS that pulls in an image or script over plain HTTP can lose its padlock or have parts blocked. Update old links in the page so they use HTTPS.

Two versions of the site. If the site still answers on plain HTTP, visitors and search engines can see two copies. A permanent redirect sends everyone to the HTTPS address. Our .htaccess Generator creates that rule for Apache servers.

Server room corridor lit by status lights

The www mismatch. A certificate has to cover each address it is used on. If it covers example.com but not www.example.com, one of the two will show a warning. Make sure both are covered, then redirect one to the other.