Almost all secure internet traffic, including HTTPS, email and messaging, runs on top of TLS. The name appeared in 1999, when the IETF standardised TLS 1.0, which was based on Netscape’s SSL 3.0: the differences were small, but the versions could not work with each other directly. The name SSL lives on in everyday speech and in the names of settings.
What TLS provides
- Encryption: only the parties to a connection can read its contents; an eavesdropper is left with addresses, volume and timing.
- Integrity: any change to the data along the way is detected and terminates the connection.
- Authenticity: the server (and, with mTLS, the client too) proves its identity with an X.509 certificate signed by a certificate authority.
Versions and their status
| Version | Year and document | Status |
|---|---|---|
| SSL 2.0 | 1995, Netscape | prohibited in 2011 (RFC 6176) |
| SSL 3.0 | 1996, Netscape | prohibited in 2015 after the POODLE attack (RFC 7568) |
| TLS 1.0 | 1999, RFC 2246 | prohibited together with TLS 1.1 (RFC 8996) |
| TLS 1.1 | 2006, RFC 4346 | prohibited together with TLS 1.0 (RFC 8996) |
| TLS 1.2 | 2008, RFC 5246 | working version, still widely used |
| TLS 1.3 | 2018, RFC 8446 | current version, recommended for new systems |
For UDP there is the DTLS variant, which gives the same guarantees for datagrams: DTLS 1.3 is described in RFC 9147. The same TLS runs inside HTTPS, SMTP and IMAP, databases and messengers; it is invisible from above, so the same connection can be protected anywhere.
How a connection is established
First the two sides perform a handshake: they agree on the version and ciphers, the server presents its certificate, and keys are derived from a shared secret. TLS 1.3 removed obsolete ciphers and RSA key exchange from the handshake, and the exchange itself takes a single round trip; when resuming a known connection, data can be sent in the very first packet (0-RTT). You can check what a real connection negotiated like this:
$ openssl s_client -connect example.org:443 -briefCONNECTION ESTABLISHEDProtocol version: TLSv1.3Ciphersuite: TLS_AES_128_GCM_SHA256Sources
the term is written from these pagesVerified 9 Nov