Course contentsShow
← System Design
Lesson 187 of 1,9195. Content Delivery NetworksFree lesson

SSL/TLS Termination at the Edge

How CDNs terminate encrypted connections at edge servers to reduce latency and offload cryptographic work from origins.

SSL/TLS Termination at the Edge

What you'll learn: How CDNs terminate encrypted connections at edge servers to reduce latency and offload cryptographic work from origins.

The Core Idea

When a user visits a website over HTTPS, their browser and the server perform an SSL/TLS "handshake" — a cryptographic negotiation that establishes a secure connection. This process is computationally expensive and adds latency.

SSL/TLS termination at the edge means the CDN's edge server handles this handshake directly with the user, decrypts the traffic, and then either re-encrypts it or sends it unencrypted to your origin server. The "termination" happens at the edge, not at your origin.

Why This Matters

Latency reduction: The SSL/TLS handshake requires multiple round-trips between client and server. When terminated at a geographically close edge server (instead of a distant origin), these round-trips are much faster.

Origin offloading: The cryptographic operations (encryption, decryption, certificate validation) are CPU-intensive. By handling these at the edge, your origin servers are freed from this computational burden and can focus on serving actual content.

Simpler origin infrastructure: Your origin can potentially communicate with the CDN over plain HTTP or use simpler TLS configurations, reducing complexity.

The Analogy

Think of a security checkpoint at a neighborhood entrance instead of at your front door. Visitors authenticate at the nearby checkpoint (edge), then travel through the neighborhood to your house without repeated security checks. It's faster for visitors and less work for you.

Key Takeaway: SSL/TLS termination at the edge moves the expensive cryptographic handshake to geographically distributed edge servers, reducing latency for users and computational load on origin servers.