SSL and TLS in One Paragraph
When you open https://example.com, your browser connects to port 443 and runs a TLS handshake before any web page is sent. The handshake agrees on keys, and the server shows a certificate proving that it is the real example.com. After that, every request and response travels encrypted and protected against tampering. The name "SSL" stuck because the first versions were called Secure Sockets Layer, and products kept the word when the protocol was renamed. An "SSL certificate" today is a certificate used with TLS.
Versions
| Version | Status |
|---|---|
| SSL 2.0, SSL 3.0 | Deprecated, insecure |
| TLS 1.0, TLS 1.1 | Deprecated in 2021 (RFC 8996) |
| TLS 1.2 | In use |
| TLS 1.3 | In use, preferred |
A server should offer TLS 1.2 and 1.3 and nothing older. Current browsers refuse the old versions, which leads to errors such as ERR_SSL_VERSION_OR_CIPHER_MISMATCH or a page saying the site can't provide a secure connection. In Nginx the line is ssl_protocols TLSv1.2 TLSv1.3;.
The Handshake in Plain Words
- Hello from the browser: it lists the TLS versions and cipher suites it supports, names the site it wants (SNI), and in TLS 1.3 sends its part of a key exchange.
- Hello from the server: it picks the version and cipher, sends its part of the key exchange, and sends its certificate chain.
- Proof: the server signs the handshake with its private key. Only the holder of the key that matches the certificate can do that.
- Check: the browser verifies the chain, the name, and the dates.
- Encrypted data: both sides derive the same session keys and switch to encrypted traffic.
TLS 1.3 needs one round trip for this, which is one reason it is faster than TLS 1.2. The key exchange gives forward secrecy: a key stolen later cannot decrypt traffic recorded today.
Certificates and Certificate Authorities
A certificate binds a public key to one or more names, for a limited time, and is signed by a certificate authority (CA). Browsers and operating systems ship a list of trusted root CAs. Public certificates come in three validation levels: domain validated (the CA checked control of the domain, as Let's Encrypt does), organization validated, and extended validation. All three encrypt the same way; they differ in what the CA checked about the owner.
Lifetimes are getting shorter. The CA/Browser Forum's ballot SC-081 lowered the maximum to 200 days from 15 March 2026 and sets 100 days from 15 March 2027 and 47 days from 15 March 2029. Let's Encrypt issues 90-day certificates by default today and has announced 64 days from 10 February 2027 and 45 days from 16 February 2028. That makes automatic, tested renewal essential; see Certbot with Nginx.
The Chain of Trust
- Root certificate: held by the CA and built into the trust store of browsers and operating systems.
- Intermediate certificate: signed by the root; it signs the certificates for sites, so the root key can stay offline.
- Leaf certificate: your site's certificate, signed by the intermediate.
The server must send its leaf and the intermediates; the browser already has the root. A missing intermediate works in some browsers and fails in others. You can see the chain a server sends with openssl s_client.
What TLS Protects
- Confidentiality: passwords, cookies, form data, and page content cannot be read on the network.
- Integrity: nobody in between can change the data without the connection failing.
- Server identity: the browser knows it reached the holder of the certificate for that name.
What TLS Does Not Protect
- The server itself: a hacked server or an insecure application stays insecure.
- Data at rest: files and databases on the server are not encrypted by TLS.
- Who you talk to: the server's IP address is visible, and usually the site name in SNI as well.
- Honesty of the site: a phishing site can have a valid certificate for its own name.
- Traffic behind a proxy: with a CDN in front, the connection from the CDN to your server is a separate TLS connection that you configure; see Cloudflare error 525.
Port 443 and HTTP/3
HTTPS uses TCP port 443. HTTP/3 runs over QUIC, usually on UDP port 443, and QUIC has TLS 1.3 built in. Port 80 stays useful for a redirect to HTTPS and for Let's Encrypt's HTTP-01 validation.