Skip to content
uencoder

TLS

TLS (Transport Layer Security) provides encryption, integrity, and authentication at the transport layer; it replaced SSL and underpins HTTPS, SMTPS, and more.

Purpose

It builds a secure channel over an untrusted network, preventing eavesdropping, tampering, and forgery.

Mechanism

Handshake phase: negotiate the TLS version and cipher suite, the server presents its certificate (optionally requesting a client certificate), session keys are negotiated with ECDHE, and the certificate is verified. Record layer: application data is encrypted with the negotiated symmetric key, with HMAC/AEAD for integrity. TLS 1.3 simplifies this to a 1-RTT handshake.

Use cases

  • HTTPS web encryption
  • SMTPS/IMAPS email
  • FTPS file transfer
  • gRPC over TLS

Examples

  • Input
    TLS 1.3 + AES-GCM
    Output
    An encrypted channel

    The 1-RTT handshake

Common errors

Relying on outdated TLS 1.0/1.1
Enforce TLS 1.2 or later; 1.3 preferred

Related terms

References