A firewall watching HTTPS traffic sees an IP address, a port, usually a hostname, and a count of encrypted bytes. SSL inspection, also called TLS inspection or SSL decryption, hands the plaintext to a proxy you control: it decrypts the connection, checks the request against policy and encrypts it again before passing it on. The price is a certificate authority that every client has to trust, and a list of the clients that won’t.

What is SSL inspection?

SSL inspection is the practice of decrypting TLS traffic at a proxy you control, examining the plaintext, and re-encrypting it before it continues to its destination. Clients trust a certificate authority (CA) run by the organization, so the proxy can present a certificate for any site without triggering a warning. SSL/TLS inspection, HTTPS inspection and TLS interception are other names for the same setup.

The proxy can sit in several places: a firewall in the network path, a cloud gateway that laptops tunnel their traffic to, an agent on the laptop itself, or a sidecar container next to a server. Firewall vendors also call the feature SSL traffic inspection or SSL packet inspection, and some list it under deep packet inspection, since it reads past the headers into the payload. On HTTPS, deep packet inspection has nothing to read until that payload is decrypted.

Is TLS inspection the same as SSL inspection?

Yes. TLS inspection and SSL inspection describe one technique, and only the protocol name differs. SSL (Secure Sockets Layer) was replaced by TLS (Transport Layer Security) in 1999, and every SSL version has since been prohibited: SSL 2.0 by RFC 6176 in 2011 and SSL 3.0 by RFC 7568 in 2015. Whatever a proxy decrypts today is TLS.

Product menus and search queries kept the older name, which is why vendors tend to write SSL/TLS and why TLS decryption and SSL decryption mean the same thing. If you’re asking which is safer, RFC 7568 settles it in one line: “Any version of TLS is more secure than SSLv3, though the highest version available is preferable.”

How does a proxy perform TLS inspection?

A proxy performs TLS inspection by splitting one connection into two TLS sessions. It completes the client’s handshake itself, with a certificate for the requested hostname signed by an inspection CA the client trusts, and opens its own session to the real server, checking that server’s certificate the way the client would have. Between the two sessions the request is plaintext, and that’s where policy runs.

In order:

  1. The client sends a ClientHello that names the server in its SNI field. The proxy receives it either because the client was configured to use it, as an explicit or forward proxy, or because the network or operating system redirected the connection, as a transparent proxy.
  2. The proxy decides whether to decrypt this flow. Flows it skips pass through still encrypted.
  3. For a flow it decrypts, it mints a certificate for that hostname on the spot, signs it with the inspection CA, and finishes the handshake with the client.
  4. It opens a TLS session to the server and validates the server’s certificate chain and hostname.
  5. Requests and responses now arrive in plaintext. The proxy parses the protocol, logs, applies policy (allow, block, rewrite) and re-encrypts each message for the other side.

At step 2 the proxy holds a ClientHello and nothing else: no URL, no headers, no body. A rule such as “block uploads of source code” can’t decide which flows get decrypted, because no upload is visible yet. The decision has to come from what’s known before the handshake completes, which is the destination hostname and port, plus the user and the process when the proxy runs on the device itself. Most of the design work in an SSL inspection rollout goes into that first choice, and selective SSL decryption, further down, comes back to it.

An explicit proxy only sees clients that honor its settings, through HTTPS_PROXY or a PAC file. A transparent proxy intercepts below the application, so a tool that ignores proxy variables gets inspected anyway.

SSL decryption vs interception vs certificate inspection

Vendor documentation slices this into pieces with overlapping names. TLS interception, or HTTPS interception, is the proxy taking over the client’s session, the step CISA describes as performing a man-in-the-middle attack on the connection. SSL decryption, or TLS decryption, is what interception makes possible: turning the ciphertext back into requests. Full or deep SSL inspection means the proxy decrypts and then reads the payload.

Certificate inspection is the odd one out, since it decrypts nothing. The device reads the handshake and blocks on what it finds there, which is enough for hostname rules and for refusing bad certificates, and for nothing that depends on the request itself.

All of this is outbound inspection: your clients, other people’s servers. SSL inbound inspection runs the other way, in front of your own servers. The appliance holds the server’s real certificate and key, so no client needs a new CA. Older inbound deployments decrypted a mirrored copy of the traffic passively, using the server’s RSA private key. TLS 1.3 ended that. RFC 8446 removed static RSA and Diffie-Hellman key exchange, so every TLS 1.3 session has forward secrecy, and the server’s key alone can’t decrypt a recording. Inbound inspection of TLS 1.3 has to sit in the path and terminate each session.

What decrypted traffic lets you enforce

Take github.com. A clone and a push go to the same hostname, the same addresses and port 443, so a rule that only sees the handshake has to treat them alike. Decrypted, they come apart: an HTTPS push calls the repository’s git-receive-pack service, and a clone calls git-upload-pack.

Every rule that justifies SSL inspection reads the request in some way like that, and most of them are older than AI agents. Scanning for malware needs the downloaded file, because a malicious payload is just more ciphertext until it’s decrypted. Data loss prevention needs the upload, or the prompt with a cloud access key pasted into it. Method and path rules need the HTTP request line, and an audit trail of what was asked, rather than where traffic went, needs the request too. A hostname allowlist or blocklist needs none of it: egress filtering by domain runs on the encrypted handshake alone.

Which clients break under SSL inspection

Turn interception on and the browser keeps working while npm install can fail with a certificate error. The two read their trusted CAs from different places, and installing the inspection CA in the operating system only reaches one of them.

ClientWhere it reads trusted CAsWhat it needs
Browsers, most Go programsThe operating system trust storeThe CA installed in the OS store
Node.js, npmIts own bundled rootsNODE_EXTRA_CA_CERTS, which adds a CA file
Python requests, httpx and other clientscertifi or the ssl module defaultsREQUESTS_CA_BUNDLE or SSL_CERT_FILE, which replace the store
JavaIts own truststoreThe CA imported into that truststore
Go binaries with an embedded CA poolRoots compiled into the binaryTheir own trust configuration, or an exclusion
Apps that pin a certificate or keyA fixed value shipped with the appAn exclusion from decryption

The variables don’t behave alike. NODE_EXTRA_CA_CERTS adds to Node’s roots. SSL_CERT_FILE and REQUESTS_CA_BUNDLE replace the client’s entire store with the file you name. Point one of those at the inspection CA alone and every connection the proxy doesn’t intercept starts failing, because the public CAs are gone from the client’s view. Our Kubernetes sidecar docs handle this by pointing those variables at a bundle of the system CAs plus the Formal CA, so traffic left encrypted still verifies.

Pinned apps can’t be fixed with trust settings. They accept only the certificate or key they shipped with, so the proxy’s certificate fails however trusted its CA is, and the fix is to leave those flows encrypted. Our Runtime TLS trust docs list the variable each common runtime reads.

Risks of SSL decryption, and when to leave traffic encrypted

In March 2017, CISA published alert TA17-075A, HTTPS Interception Weakens TLS Security. Its argument is about who checks the server. Once a proxy intercepts, “the client can only verify the connection between itself and the HTTPS interception product.” If the proxy accepts an expired certificate, a wrong hostname or a weak cipher on its side, the client sees a valid certificate from the inspection CA and never learns. CISA’s test is simple and worth running before rollout and after every proxy upgrade: any certificate test on badssl.com that stops a client with direct internet access should also stop that client when it goes through the proxy.

Anyone holding the inspection CA’s private key can mint a certificate for any site, and every managed client will accept it. Store it with your most sensitive signing keys, in an HSM or a cloud KMS if your proxy supports one, and limit who can export it.

Then there’s privacy. The plaintext contains passwords, personal banking, health portals and messages, so decide with the security team before rollout which categories stay encrypted, who may open decrypted payloads in logs, and how long they’re kept. Those answers are easier to give before the first complaint than after.

HTTP/3 runs over QUIC on UDP port 443, so a proxy that intercepts TCP never sees it. Networks that run HTTPS inspection usually block UDP 443, and browsers fall back to TCP.

Every inspection point also has to decide what happens when it fails. Fail open and traffic flows uninspected until someone notices. Fail closed and a crash takes the network down with it.

Leave a flow encrypted when no rule you have reads its contents. Hostname allowlists and blocklists, pinned apps and categories you’ve decided are private all fall into that group, and decrypting them adds risk without adding a single decision.

Selective SSL decryption: deciding what to decrypt

An SSL inspection proxy can decrypt every TLS flow it sees. Running it that way means owning every trust failure on the network at once, so most deployments decrypt a chosen slice and pass the rest through.

The slice comes from step 2 above, so it can only use what’s known at the ClientHello. Gateways usually go by destination hostname, inspecting traffic to code hosts and file-sharing sites and passing banking through. Rollouts go by group. The process that opened the connection is the most precise choice and the least common one, since only software running on the device can see it, and it’s what lets you inspect a build tool or an AI agent while the engineer’s own browser stays encrypted.

Roll it out like any rule that can break things. Start with one group and one kind of traffic, run the policy in log-only mode, read what fails, fix trust or add exclusions, then enforce. Review the exclusion list on a schedule, because every entry is traffic nobody inspects.

TLS inspection for AI agents and coding agents

On a laptop, a coding agent’s traffic leaves under the engineer’s login, from the same device and the same IP address. It talks to the hosts the engineer already uses: the model provider’s API, github.com, the package registry, a handful of MCP servers. A rule keyed on destination can’t tell the agent from the person, and it can’t block anything the engineer still needs.

Decrypting the agent’s flows makes its requests readable: the prompt sent to the model API and its response, the MCP tool call and its arguments, the git operation, the cloud API call that reads production data. To keep the engineer’s own traffic out of scope, select the flows by process tree, meaning the agent and everything it starts (git, curl, a Node script), and leave other processes encrypted. Our Claude Code integration works this way.

TLS inspection doesn’t detect AI risk by itself. It hands policy the request so a rule can decide. The limitation is the network itself. Some actions never produce a request: an agent reading ~/.ssh or editing a file locally stays invisible to any network control. Neither can it read flows from clients that don’t trust the CA, or flows you’ve excluded. Keeping credentials off the machine entirely is the other half, shown in using proxies to hide secrets from Claude Code.

How Formal inspects agent traffic

We built Formal Endpoint to run SSL inspection next to the agent. On macOS and Linux, its Transparent Mode intercepts connections at the operating system’s network layer and terminates TLS with certificates from a local Formal CA. Network rules choose which flows it touches. They’re CEL conditions evaluated in three stages, and this one comes from our docs:

{
  "condition": {
    "pre_tcp": process.is_agent || process.has_agent_ancestor,
    "pre_tls": true,
    "post_tls": technology in ["mcp", "llm"]
  }
}

pre_tcp, evaluated on macOS only, diverts flows from a known agent or any process it spawned, recognized by code signature. pre_tls is the decrypt decision from step 2: if any rule’s pre_tls matches a flow that opens with a ClientHello, the Endpoint terminates TLS, and flows that don’t open that way, such as SSH, skip termination. post_tls runs on the plaintext after the Endpoint has classified the protocol as http, mcp, llm, aws, gcp, postgres, mysql, mariadb, mongodb or ssh. When pre_tls matched but no post_tls does, the traffic is forwarded unchanged and isn’t logged. On Linux, pre_tcp is ignored and agents are matched by process name instead of signature.

Trust follows the table above. formal ca trust adds the Formal CA to the OS store for browsers and Go. By default, runtime_ca_env points Claude Code at a bundle of the OS store plus the Formal CA through its ~/.claude/settings.json; set it to all and the Endpoint also sets NODE_EXTRA_CA_CERTS, REQUESTS_CA_BUNDLE, SSL_CERT_FILE and related variables for the macOS login session. Apps that still don’t trust the Formal certificate belong outside pre_tls, or they raise CA trust errors. The Endpoint configuration blocks QUIC by default (allow_quic = false) so clients fall back to TCP and TLS, and its fail setting chooses between open and closed.

Servers and containers get the same model as a sidecar. Kubernetes gets a native sidecar container, which is why the docs ask for version 1.29 or later. The sidecar runs as root and adds NET_ADMIN, so its Pod has to run under the Privileged Pod Security Standard, and injection mounts the Formal CA at /formal-ca. In Amazon ECS it runs in each task on EC2, Managed Instances or Fargate. On Fargate the module points each application container at the Endpoint as a proxy on 127.0.0.1:3128, through HTTPS_PROXY and related settings, so a client that ignores them goes around it.

The Codex Desktop guide shows what the plaintext is for. Its policy lets Codex reach the model and MCP servers registered by name, and blocks every other HTTP request from Codex’s process tree, its built-in web search included. The secure web gateway for AI agents use case covers the gateway side. At Cursor, inspection is what lets agents near sensitive data at all:

“Without Formal, we couldn’t have agents with access to sensitive data. With Formal, because we are able to inspect all traffic and enforce controls, we are able to provide a safe environment for the agents to get the job done.”

— Travis McPeak, Head of Security @ Cursor

Formal decrypts only the flows a rule selects. Everything else on the machine keeps its own end-to-end encryption. On a laptop someone also uses for their own banking and messages, that’s the trade we’d make.