Free tech learning for everyone, from basics to pro

Network SecurityNetworking SecurityAdvanced

TLS inspection (SSL decryption) on firewalls: how it works, what to exclude and the risks

In short: Most web traffic is encrypted, so firewalls cannot see malware or data leaving inside it. TLS inspection makes the firewall act as a trusted intermediary: it decrypts, inspects and re-encrypts traffic using certificates from a company CA that managed devices trust. It improves visibility but breaks some applications, uses a lot of processing power and has privacy and legal implications, so exclusions are essential.

The visibility problem

Well over 90 percent of web traffic now uses HTTPS. That protects users, but it also hides malware downloads, phishing pages and data being uploaded to personal cloud storage from security tools that look at the network. Without decryption, a firewall can only see the destination name (from SNI or DNS), the server's certificate and traffic volumes.

How TLS inspection worksClientconnects tositeFirewallintercepts, makesits own TLSReal serverfirewallconnects onwardInspectmalware, data,policyRe-encryptcertificatefrom company CA
Figure 1. The firewall acts as a trusted man in the middle, which only works if devices trust the company's CA.

How it works

  1. A user's browser connects to https://example.com. The firewall intercepts the connection.
  2. The firewall connects to the real example.com itself and checks the real certificate.
  3. It generates a certificate for example.com on the fly, signed by the company's internal certificate authority, and presents it to the browser.
  4. The browser trusts it because the company CA has been installed on managed devices through Group Policy or MDM.
  5. The firewall now sees the traffic in plain form, applies malware scanning, URL filtering, DLP and application controls, and re-encrypts it in both directions.

Unmanaged devices without the CA will show certificate warnings, which is why guest networks are normally excluded.

What breaks

  • Certificate pinning: some apps (banking apps, some update services, many mobile apps) only accept specific certificates and fail through inspection.
  • Mutual TLS: services where the client presents its own certificate cannot be intercepted.
  • Non-browser software with its own certificate store (Java, Python, some developer tools) does not trust the company CA unless configured.
  • Protocols on port 443 that are not really HTTPS.

What to exclude

  • Privacy-sensitive categories: banking and finance, health and medical, and often government services. Local laws and employment agreements may require this.
  • Pinned and broken applications, found during testing: OS updates, collaboration tools, security agents.
  • Trusted, high-volume services such as some Microsoft 365 endpoints, where the vendor recommends bypassing inspection for performance.

Write a clear policy explaining what is decrypted and why, and tell users. Protect the firewall's CA private key carefully: anyone who has it can impersonate any website to your devices.

Performance

Decryption needs a lot of processing. A firewall's throughput with TLS inspection enabled is often a fraction of its plain firewall throughput, so check the vendor's "TLS inspection throughput" figure when sizing hardware.

TLS 1.3 and Encrypted ClientHello

TLS 1.3 encrypts the server certificate during the handshake, so passive inspection (just looking at certificates) no longer works; a full proxy is needed. Encrypted ClientHello (ECH) also hides the SNI, so without decryption a firewall may not even see which site is being visited. Organisations relying on SNI-based filtering are moving to DNS-based controls or full inspection on managed devices.

Real-world example: the invoice that hid malware

A staff member downloaded a "PDF invoice" over HTTPS from a compromised file-sharing site. Without inspection, the firewall saw only an encrypted connection to a legitimate-looking domain. After TLS inspection was enabled for uncategorised and file-sharing sites, the next attempt was caught by the firewall's malware scanning, and the download was blocked before it reached the laptop.

Practice

Why must managed devices trust the company's internal CA for TLS inspection to work?
The firewall presents certificates signed by that CA in place of the real server's; without trust, browsers show warnings and connections fail.
Name two kinds of traffic commonly excluded from TLS inspection.
Banking/finance and health sites for privacy, and apps that use certificate pinning or mutual TLS.
How does Encrypted ClientHello affect firewalls?
It hides the SNI, so firewalls cannot see which site is being visited without full decryption.

Key takeaways

  • TLS inspection decrypts HTTPS so firewalls can inspect it, using a company CA.
  • Pinned apps, mutual TLS and some software break without exclusions.
  • Exclude privacy-sensitive categories and protect the CA key.
  • Size hardware for decryption; TLS 1.3 and ECH reduce passive visibility.
Tracks your learning on this device only. See your progress on the learning paths.
Verified author✓ Valid
Issued to
Mohamed Fayas
Role
Founder of FM TecHub
Credentials
CCNABTEC HND Network EngineeringBEng (Hons) Computer Networking & Cloud Security
Issuer
FM TecHub · fmtechub.com

He writes practical, plain-English guides on networking, security and cloud.

More about the author →

Original content written by Mohamed Fayas for FM TecHub. © 2026 FM TecHub. You're welcome to share a link to this page; please don't copy the text elsewhere without permission.

Email updates: coming soon

New notes, tools and security news from FM TecHub by email, explained simply. Free. We're not collecting email addresses yet; see our privacy policy.

PortServiceStatus
SMTP/25Email updatesopening soon

Meanwhile, stay connected: