Short answer
TLS is the protocol that encrypts application traffic, including HTTPS, and lets the client check the server. MDN describes it as the successor to SSL. Version 1.3, specified in RFC 8446, encrypts handshake messages after ServerHello and keeps only AEAD ciphers. The full handshake runs ClientHello, ServerHello, then certificates and Finished.
Last verified against the sources listed below.
Key takeaways
- MDN defines TLS as the protocol that stops tampering and eavesdropping, and it calls SSL the old name.
- RFC 8446 splits a full handshake into key exchange, server parameters, and authentication.
- Messages after ServerHello are encrypted. The figure marks them with braces.
- A TLS 1.3 application must implement TLS_AES_128_GCM_SHA256.
- RFC 8446 says 0-RTT can send some application data earlier and gives up some security properties.
- TLS 1.2 is the version RFC 8446 compares against. It is a different handshake, specified in RFC 5246.
What is TLS in networking, in MDN’s glossary, is Transport Layer Security: a client and server protocol that applications use to communicate without tampering or eavesdropping. MDN says it was formerly called SSL. Web browsing is one of the applications it names, which is why HTTPS is HTTP inside TLS.
RFC 8446 is the specification for version 1.3. MDN links that RFC and also RFC 5246 for version 1.2. The rest of this page follows the 1.3 handshake and the differences RFC 8446 lists, not a private diagram of ciphers the RFC does not name.
Files you send on that session should still be small. An image compressor shrinks a response body before it enters the protected records. The protocol does not resize images for you.
TLS meaning: what is the TLS protocol?
TLS meaning is the name MDN expands: Transport Layer Security. The protocol has two jobs that the glossary states together. It provides privacy with cryptographic protection, and it is how the two sides communicate so a third party cannot read or change the messages.
It is not a certificate product and not a Wi-Fi setting. Website security is the broader label for the practices around it.
How the internet works is the path those packets take. TLS sits on that path and protects the application data.
How TLS works step by step
RFC 8446 section 1.2 and the handshake figure describe a full handshake in three phases.
- Key exchange. The client sends ClientHello. The RFC says that message carries a random nonce, offered versions, a list of symmetric cipher and HKDF hash pairs, and either Diffie-Hellman key shares in key_share, pre-shared key labels in pre_shared_key, or both.
- The server answers with ServerHello, which picks the parameters. Together the two hellos determine the shared keys. If ephemeral Diffie-Hellman is in use, the server’s key share must be in a group the client offered.
- Server parameters. The server sends EncryptedExtensions. It sends CertificateRequest only if it wants a client certificate.
- Authentication. The server sends Certificate, CertificateVerify, and Finished when it is authenticating. The client then sends its own certificate messages if asked, and its Finished.
- Application data follows, protected with the application traffic keys.
The figure marks handshake messages after the key exchange with braces, meaning they use handshake traffic keys. Application data uses a different key schedule, marked with brackets. The RFC says everything after the key-exchange phase is encrypted.
How TLS works diagram
The diagram in RFC 8446 is a message list, not a picture of a lock icon. Read it from the client on the left to the server on the right.
| Order | Who sends it | Message | Protected? |
|---|---|---|---|
| 1 | Client | ClientHello, plus key_share and related extensions | No, it opens the handshake |
| 2 | Server | ServerHello, plus the chosen key share or pre-shared key | No |
| 3 | Server | EncryptedExtensions, optional CertificateRequest | Yes, handshake keys |
| 4 | Server | Certificate, CertificateVerify, Finished | Yes, handshake keys |
| 5 | Client | Optional Certificate and CertificateVerify, then Finished | Yes, handshake keys |
| 6 | Both | Application data | Yes, application traffic keys |
Stars in the RFC figure mean a message is optional or depends on the situation. A server that does not ask for a client certificate omits CertificateRequest, and the client omits its certificate messages.
What is TLS 1.3?
What is TLS 1.3 is version 1.3 of that protocol, specified by RFC 8446. The RFC’s list of differences from TLS 1.2 says the remaining symmetric algorithms are all AEAD. The cipher suite was split so that authentication and key exchange are no longer mixed into the record-protection algorithm and the hash.
A compliant application must implement TLS_AES_128_GCM_SHA256. The RFC says it should implement TLS_AES_256_GCM_SHA384 and TLS_CHACHA20_POLY1305_SHA256. Those three names are the ones this guide will cite, because they are the ones in that requirement paragraph.
IANA’s TLS parameters registry lists TLS_AES_128_GCM_SHA256 at the value 0x13,0x01, the same identifier RFC 8446 prints.
How TLS 1.3 works
How TLS 1.3 works is the five steps above, plus two options the RFC calls out.
All public-key key exchange in 1.3 provides forward secrecy, because static RSA and static Diffie-Hellman suites were removed. The key derivation uses HKDF. Elliptic curves are in the base specification, and the RFC says point-format negotiation was removed in favor of one point format per curve.
Zero round-trip time, 0-RTT, was added so some application data can be sent during setup. The RFC says this saves a round trip and costs certain security properties. The same section says ordinary 1-RTT data has replay protection that 0-RTT has to be handled differently. Use 0-RTT only when the application can accept that trade.
What is TLS 1.2?
What is TLS 1.2 is the previous version, specified in RFC 5246, which MDN cites. This guide does not restate that RFC’s handshake line by line. It uses RFC 8446’s own “major differences” list, which the RFC says is not exhaustive.
In that list, TLS 1.2 still had a version-negotiation mechanism that 1.3 deprecates in favor of a version list in an extension. The RFC says the change improves compatibility with servers that implemented the old negotiation incorrectly. Session resumption and the older pre-shared-key cipher suites are replaced in 1.3 by one new pre-shared-key exchange.
How TLS 1.2 works
How TLS 1.2 works, as RFC 8446 contrasts it, includes handshake behavior 1.3 removed. Messages that 1.3 encrypts after ServerHello were not all covered the same way. ChangeCipherSpec was a normal part of the older state machine. RFC 8446 removes it except when needed so a middlebox will still pass the handshake.
Compression, DSA, and custom Diffie-Hellman groups are among the items the RFC says were removed. RSA signatures in 1.3 use RSASSA-PSS. If a peer only offers suites 1.3 has pruned, the handshake cannot select them. That failure is a version and suite mismatch, not a generic “network down” error.
What is TLS encryption?
What is TLS encryption, in the 1.3 design, is AEAD record protection plus the key schedule that feeds it. The RFC separated that record algorithm, including the key length, from authentication and key exchange. A hash is tied to both the key derivation and the handshake MAC.
How TLS encryption works on the wire is then mechanical. The peers finish key exchange, derive handshake keys, protect the rest of the handshake, confirm with Finished, and derive application keys for the records that carry HTTP or another application protocol. Basic Ingest is not a TLS idea. Do not import message-size rules from an IoT pricing page.
How TLS certificate works
How TLS certificate works in the handshake is the authentication phase. The server sends Certificate and CertificateVerify. CertificateVerify signs over the handshake so the peer can check that the sender holds the private key for that certificate. If the server sent CertificateRequest, the client does the same.
How TLS authentication works is that exchange plus Finished, which the RFC groups as authentication: authenticate the server, optionally the client, and provide key confirmation and handshake integrity. A certificate that the peer rejects stops the handshake before application data. The RFC does not, in the sections cited here, set your site’s renewal calendar.
What is a TLS error?
What is a TLS error, in handshake terms, is a failure to finish those steps. The peers may not share a version. The server’s key share may not fall in a group the client offered, which the RFC says is required for ephemeral Diffie-Hellman.
CertificateVerify may not validate. Finished may not confirm the handshake.
Browsers surface that failure as a page that will not load the site, or as a warning about the certificate. The warning text is the browser’s. The protocol failure is the handshake. Treat a sudden failure on a site that worked yesterday as a certificate, clock, or protocol-version problem before you blame the page content.
| Topic | TLS 1.3, from RFC 8446 | What 1.2 kept, per that difference list |
|---|---|---|
| Record ciphers | AEAD only | Legacy non-AEAD suites existed and were pruned |
| After ServerHello | Encrypted | Not given the same confidentiality |
| Key exchange | Forward secret public-key exchange | Static RSA and static Diffie-Hellman suites existed |
| Early data | 0-RTT optional, with security costs | Not part of the 1.3 additions |
| Version pick | A version list in an extension | The older negotiation mechanism |
| Middleboxes | ChangeCipherSpec only for compatibility | ChangeCipherSpec was part of the state machine |
Compress a body before you depend on the tunnel. The handshake does not change the bytes your application chose to send. It changes who can read them on the path.
Frequently asked questions
What is TLS encryption?
TLS encryption is the record protection that hides application data after the handshake agrees on keys. RFC 8446 says the symmetric algorithms that remain in TLS 1.3 are all Authenticated Encryption with Associated Data. The cipher suite no longer bundles authentication and key exchange with that record algorithm. A compliant application must implement TLS_AES_128_GCM_SHA256, and it should implement TLS_AES_256_GCM_SHA384 and TLS_CHACHA20_POLY1305_SHA256. Those are the names the RFC prints.
How does TLS 1.3 work on a resumed connection?
RFC 8446 says session resumption, with or without server-side state, and the older pre-shared-key cipher suites were replaced by a single new pre-shared-key exchange. The client can offer pre_shared_key in ClientHello. The server's ServerHello then indicates which offered key was selected. Zero round-trip mode can send some application data with that setup. The RFC says that saving a round trip costs certain security properties. It is optional, not the normal full handshake.
How does TLS 1.2 work compared with 1.3?
RFC 8446's section on differences says TLS 1.2 is the baseline it changes. In 1.3, every handshake message after ServerHello is encrypted, static RSA and static Diffie-Hellman suites are gone, and public-key exchange provides forward secrecy. ChangeCipherSpec is removed except when a middlebox needs it. Version negotiation moves to a list in an extension because the old mechanism was deprecated. Those are changes the RFC states. They are not a full reprint of the 1.2 state machine.
What is a TLS certificate?
In the full handshake diagram in RFC 8446, the server can send Certificate and CertificateVerify during authentication, and it can send CertificateRequest when it wants the client to authenticate too. Those messages are marked optional. CertificateVerify is how the side proves it holds the key for the certificate it sent. MDN's glossary describes the outcome in product language: the client and server communicate so that a third party cannot eavesdrop or tamper. The certificate is the authentication input, not the symmetric record key.
What does TLS mean, and what is the TLS protocol?
TLS means Transport Layer Security. MDN's glossary uses that expansion and says the protocol was formerly Secure Sockets Layer. It is a client and server protocol. Applications use it so email, web browsing, messaging, and other protocols can run without tampering or eavesdropping. RFC 8446 is the specification for version 1.3. MDN also points to RFC 5246 for version 1.2. The protocol is the handshake plus the protected records, not a brand of certificate.
How does a TLS tunnel work?
After the handshake, application data is protected with keys from the sender's application traffic secret. RFC 8446's diagram marks those records with brackets, distinct from the handshake messages marked with braces. HTTPS is HTTP carried in that protected session. That is the tunnel people mean when they say traffic is inside TLS. HTTP's CONNECT method, in RFC 9110, is a different mechanism: a 200 response can start an HTTP tunnel. Do not treat that status line as the TLS handshake.
Sources
- RFC 8446, The Transport Layer Security Protocol Version 1.3 · IETF, 2018
- Transport Layer Security (TLS) · MDN, 2026
- RFC 5246, The Transport Layer Security Protocol Version 1.2 · IETF, 2008
- HTTP semantics, RFC 9110 · IETF, 2022
- Transport Layer Security (TLS) Parameters · IANA, 2026
- RFC 8446 on the IETF datatracker · IETF, 2018