frameworkEngineering & architecture

Transport Layer Security (TLS)

A cryptographic protocol that authenticates endpoints and protects network data from eavesdropping and modification in transit.

Download Markdown (.md)

01What it means

Transport Layer Security (TLS) establishes an authenticated, encrypted channel between network peers. A handshake negotiates parameters, validates certificates or other credentials, and derives temporary traffic keys. HTTPS is HTTP carried over TLS, not a separate replacement for HTTP semantics.[1][2]

Authenticated encrypted channel The handshake establishes identity and temporary traffic keys
  1. 01Client helloVersions and parameters
  2. 02Server identityCertificate + key agreement
  3. 03ValidateChain, hostname, policy
  4. 04Derive keysConfirm transcript
  5. 05Protected dataConfidentiality + integrity

TLS protects the channel without replacing application authorization.

02Why it matters

TLS protects credentials, sessions, personal data, and application messages from network interception and tampering. Correct identity validation also reduces redirection to an impersonating endpoint.

03When to use it

Use current TLS for public and private network traffic that crosses a trust boundary, including web, API, database, and service connections. Add mutual TLS when both peers need certificate-based authentication and its lifecycle cost is justified.

04How it works

  1. The client connects and offers supported protocol versions and cryptographic parameters.
  2. The server presents its identity certificate and key agreement information.
  3. The client validates the certificate chain, hostname, validity, and policy.
  4. Both peers derive session keys and confirm the handshake transcript.
  5. Application data travels with confidentiality and integrity protection.
  6. Operators renew certificates, retire weak configurations, and monitor failures and expiry.

05A practical example

Example

A browser connects to an HTTPS checkout page, validates the certificate for the requested hostname, negotiates TLS 1.3, and sends payment-session traffic through the encrypted channel before HTTP processing begins.

06Where it breaks

TLS protects data only between its endpoints and does not make application content safe or authorized. Compromised endpoints, trusted interception proxies, certificate mistakes, metadata exposure, and downgraded configurations remain risks.

Common mistakes

  • Disabling certificate or hostname validation to make a connection work.
  • Calling HTTPS encryption at rest or proof that a site is trustworthy.
  • Keeping obsolete protocol versions and weak cipher configuration enabled.
  • Failing to automate certificate renewal and expiry monitoring.

07Sources

  1. The Transport Layer Security (TLS) Protocol Version 1.3 (RFC 8446)RFC Editor · Internet StandardThe Transport Layer Security (TLS) Protocol Version 1.3 (RFC 8446)
  2. Transport Layer Security Cheat SheetOWASP Foundation · Security practice guidanceTransport Layer Security Cheat Sheet
View saved topics

Start typing to search titles, definitions, categories, and frameworks.