
HTTPS is the secure version of HTTP, the protocol browsers use to load web pages. It wraps the connection in TLS encryption, so nobody between the visitor and your server, such as a public Wi-Fi operator, can read or change what is sent. It also proves that visitors are really talking to your domain. In 2026 HTTPS is not optional: browsers warn about plain HTTP pages, and many modern features only work over HTTPS. The good news: it is free and mostly runs itself.
Netscape introduced SSL (Secure Sockets Layer) in the mid-1990s to protect online shopping. Its successor, TLS, replaced it in 1999, and the current version, TLS 1.3, was published in 2018. People still say "SSL certificate" out of habit, but every modern site uses TLS. For years certificates cost money, so most sites stayed on HTTP. That changed in 2015, when the non-profit Let's Encrypt began issuing free, automated certificates. In 2018 Chrome started labelling all HTTP pages "Not secure", and today the vast majority of web traffic is encrypted.
A TLS certificate is a small file that links your domain name to a public key. It is signed by a certificate authority (CA) that browsers trust. The matching private key stays secret on your server. When a visitor connects, the server presents the certificate, the browser checks the signature, the domain and the expiry date, and both sides agree on session keys.
If your site runs on a managed platform such as a website builder, shared hosting or a CDN like Cloudflare, HTTPS is usually a switch in the control panel. Turn it on and skip to the redirect and testing steps. You only need the rest of this guide if you manage your own server, for example a VPS running Nginx or Apache.
Certificates from Let's Encrypt are requested through a protocol called ACME, and the most popular client is Certbot. Install it with sudo snap install --classic certbot or your package manager. Then run, for Nginx:
sudo certbot --nginx -d example.com -d www.example.com
For Apache, use --apache instead. Certbot proves you control the domain by placing a temporary file the CA fetches over port 80 (the HTTP-01 challenge), obtains the certificate, edits your server configuration and offers to redirect HTTP to HTTPS. For a wildcard certificate such as *.example.com, you need the DNS-01 challenge, which proves control by adding a TXT record to your DNS.
The Caddy web server does all of this automatically, with no extra tools.
Let's Encrypt certificates are valid for 90 days, and the CA plans to shorten this to 45 days over the next few years. Industry rules are moving the same way: the maximum lifetime of public certificates fell to 200 days in March 2026 and will reach 47 days by 2029. Manual renewal is not realistic. Certbot installs a timer that renews certificates when they near expiry; check it with sudo certbot renew --dry-run. Let's Encrypt has stopped sending expiry reminder emails, so set up your own monitoring.
A page loaded over HTTPS that pulls images, scripts or stylesheets over HTTP has mixed content. Browsers block insecure scripts and may show a warning instead of the padlock. Find addresses starting with http:// in your site and database, change them to https://, and update the site URL in your CMS. The browser's developer console lists any remaining problems.
Finally, test your domain with a free scanner such as SSL Labs' SSL Server Test, which grades your configuration. Aim for an A.
1260 questions