Transport Layer Security (TLS) is a cryptographic protocol that protects application communications against network eavesdropping and undetected modification. It combines encryption, integrity checks and endpoint authentication. Web clients normally authenticate a server through a certificate, while client authentication may happen separately through an application login. TLS also supports other authentication arrangements, including pre-shared keys. It underpins HTTPS and is used in email, APIs and other protocols. Its boundary is the protected connection: it does not establish whether a site is honest or keep data secret from the endpoints that process it.
The TLS Handshake
A TLS handshake negotiates the connection’s keys and authentication. In a typical full TLS 1.3 handshake, the client opens with a ClientHello listing the cryptographic algorithms it supports, the key shares for a Diffie-Hellman exchange over finite fields or elliptic curves, and optionally a pre-shared key identity from an earlier session. The server replies with a ServerHello choosing the parameters and supplying its own key share. From that moment both sides can derive a shared secret, and subsequent handshake messages are encrypted.
Inside that encrypted channel the server sends its remaining parameters, its certificate chain, a CertificateVerify message in which it signs the handshake transcript with the private key matching the certificate, and a Finished message that confirms the keys and the integrity of the whole exchange. The client checks the certificate, verifies the signature and sends its own Finished. The usual TLS 1.3 full handshake needs one round trip after the underlying transport is available; retry exchanges can add latency. Sessions can resume using a pre-shared key associated with a previously issued session ticket, and a client holding such a key may send early data in its very first flight, a mode known as 0-RTT that RFC 8446 warns is not forward secret and has weaker replay protection. Authentication or integrity failures abort the protected connection rather than silently accepting unverified data.
The ordinary ClientHello exposes connection parameters, commonly including the requested hostname in Server Name Indication. Encrypted Client Hello, standardized in RFC 9849, can protect sensitive inner ClientHello information when supported by the client and deployment. It does not conceal the destination IP, and traffic sizes and timing remain observable. TLS records can include padding, but encryption alone does not make the traffic pattern invisible.
Certificates and Encrypted Records
What a TLS certificate proves
Authentication rests on the certificate. An X.509 certificate, as RFC 5280 describes it, is a data structure that binds a public key to a subject, with the binding asserted by a trusted certification authority (CA) that digitally signs it. Modern service identity checks use names in the subjectAltName extension; RFC 9525 rejects relying on the legacy subject Common Name for this purpose. The certificate binds a key to those names, and the certificate is valid for a defined period between its notBefore and notAfter dates. A client cannot know every CA, so it holds a limited set of trusted root keys, the trust anchors, and the server supplies a chain of intermediate certificates leading from its own certificate back to one of them. The client validates that path, checks the dates, confirms the hostname matches, and may check revocation status through a certificate revocation list or an online status check. CAs are responsible for publishing revocation for certificates they issued.
What this proves is narrow and precise: the certificate associates a key with an asserted identity under the issuer’s validation rules; the client must still validate the name, chain, validity and applicable constraints. The CertificateVerify signature then proves that the party on the other end of the handshake actually holds that private key. Nothing in the chain says the business behind the hostname is honest, that its software is secure or that the content is accurate. A phishing site can obtain a valid certificate for its own domain, and its connection will be just as encrypted as a bank's.
The record layer
In ordinary TLS over a reliable transport, the record protocol carries encrypted handshake and application messages. Application data is split into records, and each record is independently protected with the traffic keys derived during the handshake, using an authenticated encryption algorithm that provides confidentiality and integrity together. A modified, reordered or forged record fails authentication and the connection is closed. The application above does not see any of this; HTTP, for example, writes and reads bytes exactly as it would over a plain connection.
TLS vs HTTPS and Legacy SSL
HTTPS is HTTP with transport security. HTTP/1.1 and HTTP/2 normally run over TLS connections on TCP. HTTP/3 runs over QUIC, which integrates the TLS 1.3 handshake and keys but uses QUIC packet protection rather than the ordinary TLS record layer. HTTPS encryption therefore uses TLS mechanisms without always having identical layering. Secure web contexts also depend on browser rules, including the surrounding embedding context; mixing insecure resources into a secure page can weaken protection or cause browsers to block them.
The TLS vs SSL distinction is historical. SSL was the predecessor; the name survives in terms such as SSL certificate even when the connection uses TLS. SSL 3.0 is prohibited by RFC 7568, and RFC 8996 retires TLS 1.0 and 1.1. These older versions lack modern protections and should not be enabled for compatibility. TLS 1.3 is the current protocol generation; TLS 1.2 remains deployed and needs an appropriate secure configuration. A certificate is not intrinsically tied to one version, although its key and signature algorithms must be compatible with the negotiated connection.
Common Uses
Beyond the web, TLS protects API calls between services, authenticates servers to mobile apps, secures mail submission and delivery between providers, wraps DNS queries in DNS over TLS and DNS over HTTPS, and forms the basis of several VPN protocols. Mutual TLS, in which the client also presents a certificate, is common inside organisations and between microservices where both ends need to be identified. Operational guidance on the web, as MDN summarises it, is to serve every page and subresource over HTTPS, redirect plain HTTP to HTTPS, and send the Strict-Transport-Security header so browsers refuse to downgrade on later visits.
Limitations
TLS protects the content of a connection between two endpoints, and its limits follow from that scope. It does not hide who is talking to whom: the destination IP address is visible to the network, and the requested hostname appears in the unencrypted ClientHello unless a separate mechanism encrypts it. It does not hide traffic volume or timing. It does not protect data before it is sent or after it is received, so a compromised endpoint or malicious script may access plaintext available to it. Its authentication is only as good as the trust anchors the client holds, which is why a corporate or interception certificate installed on a device allows a proxy to terminate and inspect connections that the browser still displays as secure. And a valid certificate confirms control of a domain name, nothing more. Transport encryption, certificate trust and the trustworthiness of a site are three different questions, and TLS addresses transport protection and endpoint authentication under its security assumptions, not the honesty of the service.