EVOPEDIA

← all systems · see it in The System

Transport Layer Security

boundaryInside: the handshake protocol (hello messages, key exchange, certificate and CertificateVerify, Finished), the record protocol and its alert and (legacy) change-cipher-spec sub-protocols, the versions, cipher suites, groups and extensions with their registries, the session state on each endpoint (keys, tickets), and the libraries that implement it with their configuration and the patches they receive. Outside: the transport beneath (TCP, UDP for DTLS, QUIC which carries TLS's handshake), the applications above (HTTPS, mail, VPNs, DNS over TLS), the certificate system it relies on (certificate authorities, root programs, CT logs, revocation), and the actors coupled to it by exchanges, contests and loops: the people who use it, the IETF working group that writes it, the researchers and attackers who break it, and those who intercept and measure it. RFC 8446: 'TLS consists of two primary components': a handshake protocol and a record protocol.
nested levelBuilt from a handshake and a record protocol run by libraries on two endpoints over a reliable transport; sits between the transport and the application in the TCP/IP suite (it 'do[es] not fit neatly into any single layer'); leans on public-key cryptography, symmetric ciphers and the public key infrastructure; carries HTTPS and most other secured Internet application traffic, and is the security component of QUIC.
scaletechnological

From the walk

When a TLS 1.3 server is made to fall back to an older version, it hides a tripwire in the 'random' bytes it sends: they end in 44 4F 57 4E 47 52 44, DOWNGRD in ASCII, followed by 01 or 00, so the client can detect the downgrade. It only works when the server signs those bytes, not with old static-RSA key exchange (src:rfc8446-tls13).

Definition. The cryptographic protocol that gives two communicating programs an authenticated, private and integrity-protected channel over an untrusted network, needing only a reliable in-order byte stream beneath it (and, as DTLS, datagrams). A handshake negotiates a version and algorithms, authenticates the server (and optionally the client) with certificates and signatures or a pre-shared key, and agrees shared keys; a record protocol then cuts traffic into records each protected under those keys. It grew from Netscape's SSL (2.0 in 1995, 3.0 in 1996) through TLS 1.0 (1999), 1.1 (2006) and 1.2 (2008) to TLS 1.3 (RFC 8446, 2018). Walked as security engineering describes it: the protocol, its implementations and the people who specify, configure, attack and measure it. Definition drawn from the encyclopedia entry (Wikipedia, CC BY-SA).

On this page: Properties 3 · Measures 35 · Open contentions 6 · Cross-scale patterns 21 · Valence partners 24 · Partners and parts 71 · Notes 3 · Layers 63 · Sources 34

Properties published scienceour proposal

Sourced fields, and our own readings.

aliasesProtocols: TLS (and SSH, PGP, S/MIME)
born atFebruary 1995 (SSL 2.0)
born precisionmonth

Measures (35) published science

characteristic clock: round trips before application data (TLS 1.3 full handshake)1 round trip (2 in earlier versions)
characteristic clock: maximum session ticket lifetime604800 s (7 days)
characteristic clock: share of clients with a TLS handshake over 300 ms (2014)4 % of clients
record plaintext size limit16384 bytes (2^14)
records per AES-GCM key set before an update2^24.5 (about 24 million) full-size records
share of Firefox top-level page loads over https (January 2025)92.1 %
share of web connections over HTTPS (September 2014, European ISP)44.3 %
https share of top-level loads by country (range)51.2-98.0 % (Sudan to Denmark, January 2025)
connections using TLS 1.2 (2018; TLS 1.0 in 2012)90 % (90% TLS 1.0 in 2012)
forward-secret share of connections (2018)>90 %
RC4 share of connections (August 2013)60 % (almost zero by March 2018)
connections advertising export cipher suites (2012)28.19 % (1.03% in 2018)
share of popular HTTPS sites initially vulnerable to Heartbleed24-55 % of Alexa Top 1 Million HTTPS sites
Heartbleed: sites replacing certificates within a month10 % of sites still vulnerable at 48 h (14% of those reused the key)
Heartbleed: first exploit attempts after disclosure<24 hours (almost 700 sources)
Logjam: precomputation per 512-bit group7 days (then a median of 70 s per connection)
top-million HTTPS sites allowing export Diffie-Hellman (March 2015)8.4 %
HTTPS servers still supporting RSA export (2015)>25 %
share of HTTPS connections intercepted (2015-2016, three vantage points)4.0 / 6.2 / 10.9 % (Firefox updates / e-commerce / US Cloudflare)
share of intercepted connections made less secure97 / 32 / 54 % (Firefox / e-commerce / Cloudflare)
TLS handshakes observed in the interception study7.75 billion handshakes
trust anchors shipped in one browser (Firefox 15)~150 anchors from ~50 organisations
share of clients sending SNI (Akamai customers)>99 %
distinct ClientHello fingerprints in 11 billion handshakes>230,000 fingerprints
extra page load time from HTTPS on 3G (2014)>500 ms for about 90% of websites
handshake share of bytes per connection (median connection, 2014)>42 % of bytes
warning adherence before and after Chrome's redesign37 -> 62 %
TLS 1.3 drafts before RFC 844629 drafts (2014-2018)
malware samples using TLS (2016 dataset)~10 %
patching increase among notified Heartbleed operators47 %
users targeted with DigiNotar's rogue Google certificate (2011)~300,000 users, almost all in Iran
Chrome CT enforcement for all new certificates (from)2018-04-30 issue date (enforced from late July 2018)
top-100 domains vulnerable to Bleichenbacher's attack (ROBOT, 2017-2018)almost a third of the Alexa top 100
share of observed hybrid post-quantum negotiations at Cloudflare and Fastly (2025-2026)nearly 70 %
characteristic clock: years from Bleichenbacher's attack to RSA key exchange leaving TLS (1998 to 2018)20 years

Open contentions (6) open contention

Where sources or readings disagree. Both stay on the map.

Cross-scale patterns seen here (21) our proposal

Shapes that recur when the same kind of problem is solved at different scales, and how each shows in Transport Layer Security. Each links to every other system that shows it.

Valence: what it trades, and with whom (24) published science

Each exchange with a neighbour, read from both sides: who gains, who pays, and what carries it.

Partners and parts published science

Built from / builds (12)

Sits inside / holds (2)

expressed by (23)

floor filled by (24)

Kinds (8)

wired (2)

Notes published science

Layers

The ways it takes in its world, where they meet, and how it acts back, each from L1 (where it meets the world) up.

Transport Layer Security as security engineers describe it: bytes on an untrusted network up to an authenticated, private channel between two programs (reader's view)

  1. L1: The untrusted network: TLS records as bytes in a TCP stream (or UDP datagrams for DTLS, QUIC packets), on port 443 or after a STARTTLS upgrade; addresses, ports, timing and sizes visible to every observer on the path, which an active attacker may read, alter, drop or inject
  2. L2: Record framing: each record with content type (handshake 22, application data 23, alert 21; legacy change_cipher_spec 20), legacy version and length, carrying at most 2^14 bytes; alerts and close_notify
  3. L3: Record protection: symmetric encryption and integrity under per-connection traffic keys (AEAD only in TLS 1.3: AES-GCM, ChaCha20-Poly1305; earlier MAC-then-encrypt with CBC or RC4), sequence numbers, optional padding; a failed check ends the connection
  4. L4: The handshake's negotiation and key agreement: ClientHello offers (versions, cipher suites, groups, key shares, extensions such as SNI and ALPN), ServerHello choice, (EC)DHE or PSK key exchange (RSA key transport before 1.3), HKDF key schedule, downgrade protection, Finished MACs over the transcript, resumption tickets, 0-RTT
  5. L5: Authentication and trust: the server's certificate chain and CertificateVerify signature (client's optional), checked against the name the application expects and the trust anchors (root stores) shipped with the operating system or browser; the certificate authorities behind them
  6. L6: The deployed code and its keeping: the libraries (OpenSSL, BoringSSL, NSS, Schannel, Secure Transport, GnuTLS, wolfSSL, Rustls), operators' and vendors' configurations and browsers' policies, and the patches and new defaults they take in; the IETF working group and researchers reach this floor from outside (exchange with Internet Engineering Task Force (shell keeper: the codifier), channel c-research)
  7. L7: The purpose: a secure channel between two programs, so that the application (HTTPS, mail, VPNs, messaging, DNS over TLS, QUIC) gets authenticated, private, unaltered communication across an untrusted network

the boardroom (shared floors)

  1. L3: Record protection: decrypt and verify each incoming record, encrypt and protect each outgoing one under the traffic keys; end the connection on any failure
  2. L4: The handshake engine: state machine, negotiation, key exchange, key schedule, transcript and Finished, downgrade checks, resumption and 0-RTT decisions
  3. L5: Authentication: certificate chain validation to a trust anchor, name check against what the application expects, signature verification; the decision to trust the peer
  4. L6: The keepers of the deployed code: library maintainers, vendors, operators and browser makers who patch, configure, deprecate and take in the working group's revisions
  5. L7: The secure channel the application relies on: both ends hold the same unique secret keys, the client knows who the server is, and data arrives private and unaltered

way in: Configuration (enabled versions, suites, groups, keys and certificates)

  1. L1: Configuration written by operators and defaults shipped by vendors
  2. L2: Settings loaded by the library
  3. L3: The lists actually offered or accepted (versions, cipher suites, groups), legacy ones included

way in: Keys and settings from the DNS (ECH configuration in HTTPS records)

  1. L1: DNS answers for the server's name
  2. L2: HTTPS resource record carrying the ECH configuration
  3. L3: The server's ECH public key held for the next ClientHello

way in: Published attacks, disclosures and measurements

  1. L1: Findings: a bug or attack found by researchers or companies
  2. L2: Private disclosure to the implementers
  3. L3: Public disclosure: a named attack, a CVE, an informational RFC
  4. L4: Internet-wide scans measuring who is exposed
  5. L5: Notification of operators of vulnerable hosts

way in: Records from the peer (ciphertext over TCP, UDP or QUIC)

  1. L1: Bytes of a TCP connection to port 443 (or after STARTTLS), or DTLS datagrams
  2. L2: Record header read: content type, version, length (at most 2^14 + 256 bytes of ciphertext)

way in: The application above (plaintext, the name it expects, user overrides)

  1. L1: The application's data and requests: what to send, which server name to expect, and (in browsers) the user's decision on a warning
  2. L2: The library's programming interface

way in: The host's clock (ticket ages and lifetimes)

  1. L1: Time as each host counts it
  2. L2: Ticket issue time and age kept with the session state
  3. L3: Lifetime check: tickets older than their lifetime (at most 604,800 s) are discarded

way in: The peer's certificate chain and signature

  1. L1: Bytes of the server's second flight
  2. L2: Handshake records
  3. L3: Decrypted under handshake traffic keys (TLS 1.3; sent in clear before)
  4. L4: Certificate and CertificateVerify parsed: chain, any stapled OCSP status, signature over the transcript

way in: The peer's hello (offers and choices sent in the clear)

  1. L1: The first bytes of the connection
  2. L2: Handshake records (content type 22), unprotected at this point
  3. L3: The hello read in clear: versions, cipher suites, groups and key shares, signature algorithms, SNI, ALPN, PSK identities, GREASE values

way in: Trust anchors (root stores shipped with the system)

  1. L1: Root certificate lists configured by software vendors (Microsoft, Apple, Mozilla and others)
  2. L2: The trust store loaded by the library and modifiable by the relying party
  3. L3: Locally added roots: an organisation's root on employees' machines, security software's own root
  4. L4: Path building: the peer's chain linked up to an anchor, directly or through intermediates

way in: What the path does to the traffic (active attackers and middleboxes)

  1. L1: An on-path party that can inject, modify, drop, replay or terminate
  2. L2: Altered or injected records and hellos (stripped offers, forced failures, injected FIN, rejected unknown values)

way out: Alerts and closure (fatal alerts, close_notify)

  1. L1: The connection closed
  2. L2: An alert record (bad_record_mac, illegal_parameter, inappropriate_fallback, close_notify)
  3. L4: A failure detected: bad Finished, bad record MAC, inappropriate fallback, downgrade sentinel

way out: Certificate failures surfaced to the user (browser warnings)

  1. L1: A warning shown on the screen to the person
  2. L3: The connection halted pending the user's choice
  3. L5: Validation fails: unknown issuer, wrong name, expired, weak

way out: Handshake flights (hellos, certificates, Finished, tickets, KeyUpdate)

  1. L1: Written to the connection
  2. L2: Handshake records (protected after ServerHello in TLS 1.3)
  3. L4: The next handshake message composed: ServerHello with key share, EncryptedExtensions, Certificate, CertificateVerify, Finished; later NewSessionTicket or KeyUpdate

way out: New versions, extensions and deprecations (RFCs)

  1. L1: A published text that implementations follow (RFC 8446; RFC 7465, 7568, 8996 prohibitions)
  2. L6: The working group's decision

way out: Patches, new defaults and removed algorithms shipped to hosts

  1. L1: Updated software running on hosts
  2. L4: New offer lists in the hello (RC4, export, SSL 3.0 removed)
  3. L6: A fix or removal decided by maintainers and vendors

way out: Plaintext and the peer's identity handed to the application

  1. L1: The application (browser, mail server, VPN) acts on it
  2. L2: Returned through the library's read interface with the negotiated parameters and peer identity
  3. L3: Verified plaintext released only after its record checks out

way out: Protected records to the peer

  1. L1: Written to the TCP connection
  2. L2: Framed as application-data records of at most 2^14 bytes, optionally padded
  3. L3: Plaintext from the application encrypted and authenticated under the sender's traffic key

Sources (34) published science

Rescorla, The Transport Layer Security (TLS) Protocol Version 1.3, RFC 8446, IETF, August 2018
Bhargavan K, Blanchet B, Kobeissi N 2017, Verified Models and Reference Implementations for the TLS 1.3 Standard Candidate, IEEE S&P (doi:10.1109/sp.2017.26; section I read) (behind its links)
Moeller B, Langley A 2015, RFC 7507 TLS Fallback Signaling Cipher Suite Value (SCSV) for Preventing Protocol Downgrade Attacks, IETF (abstract and section 1 read) (behind its links)
Benjamin D 2020, RFC 8701 Applying Generate Random Extensions And Sustain Extensibility (GREASE) to TLS Extensibility, IETF (abstract and section 1 read) (behind its links)
Felt AP, Ainslie A, Reeder RW, Consolvo S, Thyagaraja S, Bettes A, Harris H, Grimes J (2015) Improving SSL warnings: comprehension and adherence. Proc. CHI 2015. doi:10.1145/2702123.2702442 (read: abstract, design, field-experiment results) (behind its links)
Stark E, Sleevi R, Muminovic R, O'Brien D, Messeri E, Felt AP, McMillion B, Tabriz P (2019) Does Certificate Transparency break the Web? Measuring adoption and error rate. Proc. IEEE Symposium on Security and Privacy 2019. doi:10.1109/SP.2019.00027 (read: abstract, enforcement and adoption sections) (behind its links)
Transport Layer Security (Wikipedia, via Wikimedia Enterprise snapshot 2026-12-01; whole article read) (behind its links)
Barnes R et al. 2015, RFC 7568 Deprecating Secure Sockets Layer Version 3.0, IETF (abstract, sections 1 and 3 read) (behind its links)
Naylor D et al. 2014, The Cost of the "S" in HTTPS, ACM CoNEXT (doi:10.1145/2674005.2674991; whole text read) (behind its links)
Kerschbaumer C et al. 2025, The State of https Adoption on the Web, MADWeb (doi:10.14722/madweb.2025.23001; whole text read) (behind its links)
Kotzias P et al. 2018, Coming of Age: A Longitudinal Study of TLS Deployment, ACM IMC (doi:10.1145/3278532.3278568; sections 1, 3, 4, 5, 6.3 and 7 read) (behind its links)
Durumeric et al., The Matter of Heartbleed, ACM Internet Measurement Conference 2014 (doi:10.1145/2663716.2663755) (behind its links)
Adrian et al., Imperfect Forward Secrecy: How Diffie-Hellman Fails in Practice, ACM CCS 2015 (doi:10.1145/2810103.2813707) (behind its links)
Beurdouche B et al. 2015, A Messy State of the Union: Taming the Composite State Machines of TLS, IEEE S&P (doi:10.1109/sp.2015.39; sections I and V-D read) (behind its links)
Durumeric, Z., Ma, Z., Springall, D., Barnes, R., Sullivan, N., Bursztein, E., Bailey, M., Halderman, J. A. & Paxson, V. (2017). The Security Impact of HTTPS Interception. NDSS 2017, doi:10.14722/ndss.2017.23456 (read: abstract, introduction, product fingerprinting, e-commerce results, client-side security, discussion; author copy) (behind its links)
Clark J, van Oorschot PC (2013) SoK: SSL and HTTPS: revisiting past challenges and evaluating certificate trust model enhancements. Proc. IEEE Symposium on Security and Privacy 2013. doi:10.1109/SP.2013.41 (read: abstract, trust-model and primitives sections) (behind its links)
Moriarty, K. & Morton, A., eds. (2018). Effects of Pervasive Encryption on Operators. RFC 8404 (sections read: abstract, 1 introduction, 2.1 passive monitoring incl. 2.1.1-2.1.2, the privacy passage of 2.2) (behind its links)
Frolov S, Wustrow E 2019, The use of TLS in Censorship Circumvention, NDSS (doi:10.14722/ndss.2019.23511; sections I-IV read) (behind its links)
Dowling B, Fischlin M, Guenther F, Stebila D 2021, A Cryptographic Analysis of the TLS 1.3 Handshake Protocol, Journal of Cryptology (doi:10.1007/s00145-021-09384-1; introduction and model section read) (behind its links)
Anderson B, Paul S, McGrew D 2017, Deciphering malware's use of TLS (without decryption), Journal of Computer Virology and Hacking Techniques (doi:10.1007/s11416-017-0306-6; introduction and data-features sections read) (behind its links)
van der Meulen N (2013) DigiNotar: dissecting the first Dutch digital disaster. Journal of Strategic Security 6(2):46-58. doi:10.5038/1944-0472.6.2.4 (read: full text) (behind its links)
Boeck H, Somorovsky J, Young C 2018, Return Of Bleichenbacher's Oracle Threat (ROBOT), USENIX Security (doi:10.5281/zenodo.3610288 open copy; abstract, introduction, vulnerable-host results and countermeasures discussion read) (behind its links)
Wickramasinghe N et al. 2026, Mind the Gap: Policy vs Reality in Post-Quantum TLS Deployment, ACM IMC (doi:10.1145/3777912.3839797; abstract, introduction, handshake-failure results and discussion read) (behind its links)
Thomson M, Turner S 2021, RFC 9001 Using TLS to Secure QUIC, IETF (abstract, sections 1 and 2.1 read) (behind its links)
Server Name Indication (Wikipedia, via Wikimedia Enterprise snapshot 2026-12-01; whole article read) (behind its links)
Sheffer Y, Holz R, Saint-Andre P 2015, RFC 7457 Summarizing Known Attacks on Transport Layer Security (TLS) and Datagram TLS (DTLS), IETF (whole text read) (behind its links)
Farrell, S. & Tschofenig, H. (2014). Pervasive Monitoring Is an Attack. RFC 7258 / BCP 188 (read in full) (behind its links)
Aas J et al. (2019) Let's Encrypt: an automated certificate authority to encrypt the entire Web. Proc. ACM CCS 2019. doi:10.1145/3319535.3363192 (behind its links)
Liu, Tome, Zhang, Choffnes, Levin, Maggs, Mislove, Schulman, Wilson 2015. An End-to-End Measurement of Certificate Revocation in the Web's PKI. ACM IMC 2015, doi:10.1145/2815675.2815685 (abstract only; used for a passing fact on one kind) (behind its links)
de Carne de Carnavalet, X. & Mannan, M. (2016). Killed by Proxy: Analyzing Client-end TLS Interception Software. NDSS 2016, doi:10.14722/ndss.2016.23374 (read: abstract, introduction, results on root keys, certificate validation and known attacks, related work) (behind its links)
Miao, F., Ma, Y. & Salowey, J. (eds) (2009). Transport Layer Security (TLS) Transport Mapping for Syslog. RFC 5425 (Standards Track), IETF. doi:10.17487/RFC5425. Sections read: 1-4 (behind its links)
Rescorla E, Oku K, Sullivan N, Wood CA, draft-ietf-tls-esni-25 TLS Encrypted Client Hello (Internet-Draft text; the IETF datatracker lists its state as RFC Published; abstract and section 1 read) (behind its links)
Alashwali ES, Rasmussen K 2018, What's in a Downgrade? A Taxonomy of Downgrade Attacks in the TLS Protocol and Application Protocols Using TLS, arXiv:1809.05681 (preprint of the SecureComm paper; introduction read) (behind its links)
Moriarty K, Farrell S 2021, RFC 8996 Deprecating TLS 1.0 and TLS 1.1, IETF (abstract and section 1 read) (behind its links)