SSL, TLS and encryption algorithms: what is the difference?

SSL is the ancestor of TLS, and neither is an algorithm. Versions to disable, what AES, RSA and ECDHE do, and what your certificate really decides.

Published · 5 min read · Also available in: Français

You buy an “SSL certificate”, you enable “TLS 1.3” on the server, and the browser reports an “AES 256-bit” connection. These three phrases refer to three different things: an old protocol, its successor, and the algorithms that protocol uses. Mixing them up leads to bad decisions, such as paying for a certificate in the belief that you are buying stronger encryption.

SSL and TLS: the same protocol at different ages

SSL (Secure Sockets Layer) was created by Netscape in 1995 to protect exchanges between a browser and a website. In 1999 its standardization was handed to the IETF, which renamed it TLS (Transport Layer Security). TLS 1.0 is nothing more than the version that followed SSL 3.0.

  1. SSL 2.01995prohibited since 2011
  2. SSL 3.01996prohibited since 2015
  3. TLS 1.01999deprecated in 2021
  4. TLS 1.12006deprecated in 2021
  5. TLS 1.22008accepted
  6. TLS 1.32018recommended
The versions of the protocol. Only the last two are still accepted by browsers.

Every version of SSL is broken: the last one, SSL 3.0, was prohibited in 2015 after the POODLE attack. TLS 1.0 and 1.1 were removed from browsers in 2020, then formally deprecated in 2021. An up-to-date server only enables TLS 1.2 and TLS 1.3.

Why do people still say “SSL certificate”? Out of habit. The name stuck in resellers’ catalogues, in tool names (OpenSSL) and in everyday language. The certificate itself does not depend on the protocol version: the same file is used with TLS 1.2 and with TLS 1.3. “SSL certificate” and “TLS certificate” mean exactly the same object.

A protocol is not an algorithm

TLS is a protocol: a set of rules that says who speaks first, what is negotiated and in which order. Algorithms are the mathematical tools the protocol uses. TLS combines four families, each with a precise role.

Role The question it answers Current algorithms To rule out
Key exchange How do we agree on a secret key without ever sending it? ECDHE (X25519, P-256) RSA key exchange, static Diffie-Hellman
Authentication Is the server really who it claims to be? RSA 2048 bits or more, ECDSA P-256 RSA 1024 bits, DSA
Data encryption How do we make the exchange unreadable? AES-GCM, ChaCha20-Poly1305 RC4, 3DES, AES-CBC
Hash Has the data been modified? SHA-256, SHA-384 MD5, SHA-1

Two broad categories share the work:

What happens when a connection opens

BrowserServer
  1. 1. Accepted versions and algorithms, ephemeral key
  2. 2. Chosen version and algorithms, ephemeral key
  3. Both sides compute the same session key, without ever sending it (ECDHE)
  4. 3. Certificate and signature: the server proves its identity
  5. 4. Verification finished
  6. 5. Data encrypted with the session key (AES-GCM or ChaCha20)
  7. Encrypted data
The TLS 1.3 handshake: a single round trip before the first data.

The certificate only comes in at step 3. Its private key is used to sign the handshake, not to encrypt the data: that is the job of the session key, which is different for every connection.

Reading a cipher suite

The browser and the server agree on a cipher suite: the combination of algorithms used for the connection. In TLS 1.2, its name lists them all.

TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256

Part Role
ECDHE Key exchange
RSA Authentication: the certificate’s key type (ECDSA for an elliptic-curve certificate)
AES_128_GCM Data encryption: AES, 128-bit key, GCM mode
SHA256 Hash

TLS 1.3 simplified the notation: TLS_AES_128_GCM_SHA256 only names the encryption and the hash. Key exchange and signature are negotiated separately, and only five suites remain, all of them sound. Where TLS 1.2 required sorting through dozens of combinations, TLS 1.3 no longer leaves room to get it wrong.

What TLS 1.3 changed

Since 2024, browsers have added a quantum-resistant algorithm (ML-KEM) to the key exchange, combined with X25519. That is a server-side setting; certificates do not change for now.

What the certificate decides, what the server decides

The certificate decides
  • The type and size of its key: RSA 2048 bits, ECDSA P-256…
  • Its signature algorithm: SHA-256 with RSA or ECDSA
  • The names covered and the validity dates
The server configuration decides
  • The accepted versions: TLS 1.2, TLS 1.3
  • The key exchange: ECDHE, curves offered
  • The data encryption: AES-GCM, ChaCha20-Poly1305
The certificate only takes part in authentication. Everything else is set on the server.

Two practical consequences:

Checking your configuration

One command is enough to see the negotiated version and suite:

openssl s_client -connect example.com:443 -tls1_3

The answer shows the protocol and the suite (for example TLSv1.3, Cipher is TLS_AES_256_GCM_SHA384). The same command with -tls1_1 must fail.

What to check:

  1. Versions: TLS 1.2 and TLS 1.3 enabled, everything else disabled.
  2. Suites: in TLS 1.2, only those that start with ECDHE and use AES-GCM or ChaCha20-Poly1305.
  3. Certificate key: RSA 2048 bits at least, or ECDSA P-256, which offers at least equivalent security with a much shorter key.
  4. Certificate signature: SHA-256. Certificates signed with SHA-1 have been refused by browsers since 2017.

The last two points can be read from the certificate itself: an inventory that records the algorithm and key size of every certificate spots at once the short keys lingering on old devices.

In short

SSL is the original name of a protocol that has been called TLS since 1999, and of which only versions 1.2 and 1.3 are still acceptable. Neither is an algorithm: TLS orchestrates a key exchange (ECDHE), an authentication (RSA or ECDSA, carried by the certificate) and symmetric encryption (AES or ChaCha20). The certificate proves identity; it is the server configuration that decides how strong the encryption is.

References: IETF, RFC 8446 (TLS 1.3) and RFC 8996 (deprecating TLS 1.0 and 1.1).