Load Balancing Fundamentals Series

🔐 Understanding SSL Termination vs. SSL Passthrough From a Top 1% Perspective — Where Should the Certificate Actually Live?

Introduction

This article is part of the Top 1% Series Complete Article Guide, and the third article in the Load Balancing Fundamentals Series.

Prerequisite Knowledge

Getting the Big Picture

There are broadly three approaches to how a load balancer handles TLS (SSL)-encrypted traffic. The single question that distinguishes the three — where does encryption end, and from what point onward is the traffic plaintext (or re-encrypted differently) — is the key to telling them apart.

graph LR
    subgraph Termination["① SSL Termination"]
        C1["Client"] -->|encrypted| LB1["Load Balancer<br/>(decrypts here)"] -->|plaintext| S1["Backend"]
    end
graph LR
    subgraph Passthrough["② SSL Passthrough"]
        C2["Client"] -->|encrypted| LB2["Load Balancer<br/>(never looks inside)"] -->|still encrypted| S2["Backend<br/>(decrypts here)"]
    end
graph LR
    subgraph Bridging["③ SSL Bridging"]
        C3["Client"] -->|encrypted| LB3["Load Balancer<br/>(decrypts, then re-encrypts)"] -->|re-encrypted| S3["Backend<br/>(decrypts here)"]
    end

Deep Dive Into the Fundamentals

① SSL Termination: Decrypt at the Load Balancer, Relay Plaintext to the Backend

SSL termination has the load balancer terminate (decrypt) the TLS connection with the client, then relay to the backend server over plain, unencrypted HTTP.

② SSL Passthrough: the Load Balancer Never Looks Inside, Relaying Still Encrypted

SSL passthrough has the load balancer never decrypt the TLS content at all, simply relaying the encrypted packets as-is to the backend server. The backend server itself performs the TLS decryption.

Why Can SSL Passthrough Still Route by Hostname?

SSL passthrough can’t decrypt the TLS content (the encrypted part). But ClientHello, the very first message of the TLS handshake, contains SNI (Server Name Indication) — covered in the IIS SNI hands-on — information indicating the destination hostname, included unencrypted, in plaintext, before encryption even begins. The load balancer can peek at just this SNI information and route by hostname without ever decrypting anything. This is an important exception: while it can’t read HTTP content like a URL path, hostname-level routing is achievable even while staying in SSL passthrough.

③ SSL Bridging: Decrypt Once at the Load Balancer, Re-Encrypt for the Backend

SSL bridging has the load balancer decrypt the TLS connection with the client once, then relay to the backend server over a separate, re-encrypted TLS connection. It resembles SSL termination, but differs in that the path to the backend also stays encrypted.

What a Pro Sees Here (Top 1% Understanding)

Certificate Management Overhead and Security Requirements Are Always a Trade-Off

SSL termination is the most widely adopted approach in real-world practice because the benefit of consolidating certificate management into one place outweighs the need for end-to-end encryption in most environments. Deploying and renewing certificates individually across dozens or hundreds of backend servers simply isn’t sustainable in practice. On the other hand, when a compliance requirement demands that decrypted plaintext never exist anywhere, you need to accept the operational overhead and choose passthrough or bridging instead. The question isn’t “which approach is better” — it’s “which trade-off can my environment’s actual requirements tolerate.”

Common Misconceptions and Pitfalls

Troubleshooting Perspective

  1. L7 routing to the backend (by URL path, and similar) isn’t working: Check whether you’re actually in SSL passthrough mode — in passthrough, the load balancer can’t read HTTP content.
  2. A certificate renewal only on the load balancer side isn’t taking effect: Check whether you’re in passthrough or bridging mode, where the certificate also needs to live on the backend servers.
  3. Traffic between the load balancer and the backend is unexpectedly plaintext: This is expected behavior if you’ve adopted the termination approach. Check whether that path’s network sits within your security boundary.

Summary

Takeaways to Apply Today

  1. When looking at a load balancer’s TLS configuration, build the habit of first identifying which approach (termination, passthrough, or bridging) is in use.
  2. When checking a compliance requirement, concretely confirm one specific thing: whether plaintext is allowed to exist anywhere along the path.

References

Comments

Feel free to leave thoughts, questions, or corrections below (sign in with a GitHub account to comment or react).