TL;DR
|
An SSL/TLS certificate is a digital document that a website presents to prove its identity. Browsers check it before they connect, and once they trust it, everything sent between the visitor and the site is encrypted, so nobody in between can read or change it.
Every site needs one today. Browsers label sites without HTTPS as not secure, and many features only work over secure connections. This guide explains how certificates work, the different types, and how to fix common errors.
Key takeaway: TLS replaced SSL years ago. "SSL certificate" and "TLS certificate" mean the same thing in everyday use.
SSL, Secure Sockets Layer, was the original technology for securing web connections. It had security flaws and was retired, and TLS, Transport Layer Security, replaced it. Every secure website today uses TLS, mostly versions 1.2 and 1.3.
The name stuck, though. Hosting providers and certificate sellers still advertise "SSL certificates", but what you get is a certificate used with TLS. The certificate itself doesn't depend on which protocol version is used.
Key takeaway: a certificate does two jobs. It proves the site's identity, and it makes an encrypted connection possible.
| Job | How it works |
|---|---|
| Proves identity | A certificate authority checks that whoever requested the certificate controls the domain, then signs the certificate. Browsers trust a set list of authorities, so they can check the signature |
| Enables encryption | The certificate contains a public key. The browser uses it to agree on a secret key with the server, and that secret encrypts everything sent afterward |
When you visit https://example.com, the browser and server go through a quick exchange called the TLS handshake:
All of this happens in a fraction of a second, before the page starts loading.
Key takeaway: certificates differ in how much the authority checks, and in how many domain names they cover.
By validation level:
| Type | What the authority checks | Typical use |
|---|---|---|
| Domain validated (DV) | That you control the domain | Many websites. Let's Encrypt certificates are DV |
| Organization validated (OV) | Domain control, plus that the organization exists | Business sites that want the company name in the certificate details |
| Extended validation (EV) | A more thorough check of the organization | Sites where buyers ask for it, such as some financial services |
By coverage:
| Type | Covers | Example |
|---|---|---|
| Single domain | One name | www.example.com |
| Multi-domain | Several named domains | example.com, www.example.com, shop.example.com |
| Wildcard | Every subdomain at one level | *.example.com |
All of them encrypt traffic equally well. The difference is in the identity checks, not the strength of the encryption.
Key takeaway: certificates expire on purpose, and lifetimes are getting shorter, which makes automatic renewal essential.
Every certificate has an expiry date. Let's Encrypt certificates last 90 days, and paid certificates have historically lasted longer. Short lifetimes limit the damage if a certificate's private key is ever stolen, and the industry is moving toward shorter maximum lifetimes in stages over the next few years.
The practical upshot: renewing certificates by hand is becoming impractical. Tools and platforms that renew certificates automatically, before they expire, prevent certificates from expiring unnoticed.
Key takeaway: browsers show a warning when a certificate is expired, issued for the wrong name, or can't be traced back to a trusted authority.
| Error | What it means | How to fix it |
|---|---|---|
| Certificate expired | The certificate's end date has passed | Renew it, and set up automatic renewal so it doesn't happen again |
| Name mismatch | The certificate doesn't cover the address the visitor used, often www vs the bare domain | Get a certificate covering every name you use, or redirect one to the other |
| Untrusted or self-signed | The certificate wasn't issued by an authority the browser trusts | Use a certificate from a trusted authority |
| Incomplete chain | The server didn't send the intermediate certificates that link it to a trusted authority | Install the full certificate chain your authority provides |
| Mixed content | The page is secure, but it loads images or scripts over plain http | Change those addresses to https |
Key takeaway: on Upsun Cloud, every environment gets a free certificate automatically, renewed without you doing anything. You can also bring your own.
According to the Upsun docs, Upsun Cloud provides free Let's Encrypt certificates for all sites and environments, including preview environments. To use them, your routes need to use HTTPS, and your domain's DNS needs to point to your project. Our guide What is DNS? explains how to set that up.
| What to know | Details from the Upsun docs |
|---|---|
| Lifetime and renewal | Certificates are valid for 90 days and renewed automatically 28 days before they expire |
| Renewals redeploy the environment | Renewals apply pending security updates and run the post_deploy hook, so make that hook safe to run more than once |
| Hostname limit | Up to 100 hostnames per certificate, one certificate per environment |
| Custom certificates | Supported free of charge, including extended validation and wildcard certificates. Add one with upsun domain:add <domain> --cert <file> --key <file> |
| Custom certificate about to expire | Seven days before expiry, Upsun Cloud replaces it with a Let's Encrypt certificate to prevent downtime |
| Checking certificates | upsun certificates lists the certificates on a project |
You can also tighten security in your routes configuration. This example rejects connections older than TLS 1.3 and turns on HSTS, which tells browsers to always use HTTPS for your site:
routes:
"https://{default}/":
type: upstream
upstream: "myapp:http"
tls:
min_version: TLSv1.3
strict_transport_security:
enabled: true
include_subdomains: true
preload: trueTurn on HSTS preloading with care: once browsers have your domain on their preload list, they'll refuse plain http connections to it, and removal takes time.
For the engineering behind it, read the Dev Center post How Upsun provisions TLS certificates at scale.
You can deploy on Upsun Cloud free for 15 days, with no card needed, or read the HTTPS routes documentation.
TLS is the modern replacement for SSL, which was retired because of security flaws. "SSL certificate" is still the common name for certificates used with TLS.
Yes. A free Let's Encrypt certificate encrypts traffic just as strongly as a paid one. Paid certificates can add organization checks or support, not stronger encryption.
Browsers show visitors a full-page warning, and many people leave. Automatic renewal prevents it.
A certificate that covers every subdomain at one level, such as shop.example.com and blog.example.com under *.example.com.
Click the padlock or site information icon in your browser's address bar to see who issued it, which names it covers, and when it expires.
Yes. Upsun Cloud provides free Let's Encrypt certificates for every environment and renews them automatically. You can also upload your own.