KORTHVEILSecurity firewall
Guides

TLS inspection: checking encrypted web traffic

Download as PDF All guides

Most web traffic is encrypted (HTTPS). Without inspection, the firewall sees which site a device connects to, but not what it downloads.

TLS inspection decrypts outbound HTTPS from the zones you choose:

  • it checks the real site's certificate;
  • it hands downloads to the anti-virus;
  • it lets the web filter and the privacy shield see whole addresses.

Banking, health and apps that pin their own certificate are passed through untouched.

Before you start: inform the people on your network in writing, and have inspection approved where your law or your works council requires it. The console asks you to confirm this.

Where the certificate comes from

Decryption works only on devices that trust the firewall's inspection certificate authority (CA). You cannot buy one: public certificate authorities are not allowed to issue certificates for inspecting other people's sites. Every firewall vendor works the same way. You have two choices:

  • The firewall's own CA (default). Korthveil creates it when you first commit TLS inspection. Its key never leaves the firewall's database.
  • Your organisation's own CA. If your devices already trust your own CA (for example Active Directory Certificate Services, or an MDM), issue a subordinate CA for the firewall and put it in under Inspection certificate authority › Use your own certificate authority. Your managed devices then need nothing installed.

Step 1: Turn it on

  1. Security › TLS inspection: read the privacy and legal notice and tick the confirmation.
  2. What is inspected: choose the zones (for example LAN). The options below the zones (QUIC blocking, the lowest TLS versions, what to do with non-TLS traffic on port 443) can stay at their defaults.
The privacy notice confirmed, and the zone guest chosen under What is inspected
The privacy notice confirmed, and the zone guest chosen under What is inspected
  1. Which devices are decrypted:

    • Every device (default): a device that refuses the certificate for 3 sites is passed uninspected for 6 hours, then tried again. Devices without the certificate are not broken over and over.
    • Only devices that trust the certificate: nothing is decrypted until a device shows that it trusts the certificate. This is the safest start for networks with guests, TVs and phones.
    • Devices known to trust it: for example the network of your domain PCs that get the certificate by Group Policy. The choice is the Decrypt list under Which devices are decrypted.
  2. Save to pending changes, then commit.

Step 2: Get the certificate onto devices

Use the easiest way for each kind of device:

Devices How Effort
Windows in a domain Group Policy: Computer Configuration › Policies › Windows Settings › Security Settings › Public Key Policies › Trusted Root Certification Authorities › Import Once
PCs managed by SentinelOps SentinelOps installs the certificate on its managed PCs Once
Company phones and Macs (Intune, Jamf, Google) A trusted certificate profile in the MDM Once
Computers with the Korthveil agent Security › Vulnerabilities › Agents › Add the TLS inspection certificate to computers (from 1.1.98). The agent adds it, replaces it when it changes, and removes it when you turn this off Once
Everything else The self-service install page Each user, about a minute

The self-service install page:

  • Send users to the address shown under Which devices are decrypted, for example http://192.168.1.1:15081/.
  • The page offers the certificate for iPhone and iPad, Mac, Windows, Android and Linux, and shows the steps for each.
  • It checks the device live: "This device trusts the Korthveil certificate."
  • That check also counts as the device's proof, so in only devices that trust the certificate mode it is decrypted from then on.
  • iPhone and iPad need one extra step after installing the profile: Settings › General › About › Certificate Trust Settings, then turn the certificate on.

Download the certificate from the console with Download CA certificate under Inspection certificate authority. Compare its SHA-256 fingerprint with the one on the install page before you install it.

Inspection certificate authority: the firewall's own CA with its fingerprint
Inspection certificate authority: the firewall's own CA with its fingerprint

TVs, consoles and other appliances

TVs, streaming players, game consoles, smart speakers, cameras, smart-home devices and printers cannot install a certificate. Korthveil recognises them by their name and by the maker in their network address (Network › Devices), and never decrypts them, in either mode. If a device is recognised wrongly, set its kind on Network › Devices.

A device that is not recognised but keeps refusing the certificate is passed through for longer each time: 6 hours, then a day, then a week.

Step 3: Check that it works

Which devices are decrypted lists every device, with one of these states:

  • Trusts the certificate
  • Appliance: never decrypted (a TV, console, speaker and so on)
  • Refuses it (passed uninspected), until the time shown
  • Not known yet

The bin icon beside a device (Forget) treats it as new.

Which devices are decrypted: one device refuses the certificate, two trust it
Which devices are decrypted: one device refuses the certificate, two trust it

Activity counts what was decrypted, exempt, blocked and passed, and lists every block with its reason.

Activity: the counters and the latest events with their reasons
Activity: the counters and the latest events with their reasons

Client fingerprints (JA4)

Every program starts an encrypted connection in its own way. Its JA4 fingerprint names the program (a browser, an app, malware) without decrypting anything. That includes exempt sites and devices without the certificate.

  • Client fingerprints lists the most used fingerprints, with their devices and last site.
  • Block refuses a program's HTTPS everywhere in the inspected zones. You can also paste fingerprints from threat reports: the full fingerprint, its first part, or * for a hash.
Client fingerprints (JA4): the blocked list, and the programs seen with a Block button
Client fingerprints (JA4): the blocked list, and the programs seen with a Block button

Data loss prevention

Security › TLS inspection › Data loss prevention checks uploads to decrypted sites (forms, file uploads, API calls) for sensitive data before it leaves. It looks for:

  • payment card numbers (checked with the Luhn formula);
  • US Social Security numbers;
  • bank account numbers (IBAN, check digits verified);
  • private keys;
  • cloud and API keys (AWS, GitHub, Slack, Stripe, Google, OpenAI, Anthropic);
  • your own confidential keywords, such as a project name.

Tick Check uploads to turn it on; the settings appear below it.

Data loss prevention with Check uploads ticked
Data loss prevention with Check uploads ticked

When found:

  • Record and alert (default): the upload goes through, and the bell shows Threats with the device, the site and what was found.
  • Block the upload and alert: the user sees a Korthveil page that says what kind of data was in the upload and gives a reference number.

The data itself is never stored or shown; only the kind and count are.

Exemptions:

  • Payment processors (Stripe, PayPal, Square and others) may receive card numbers.
  • Add your own sites under Sites that may receive anything.

What is not checked:

  • sites exempt from inspection;
  • devices that are not decrypted;
  • uploads larger than the limit (they are recorded);
  • text inside Word or PDF files.

Scripts from other sites

From 1.1.98, TLS inspection can stop scripts that pages load from other sites, while a page's own scripts run. It's the backstop for devices without CipherGate's extension, which does the same in the browser without decryption. It works only on devices that trust the inspection certificate.

  1. Under Scripts from other sites, choose Learn and enter the test group's addresses or networks, for example 192.168.1.20 or 192.168.1.32/28. Empty means every decrypted device.
  2. Save and commit. Open some sites on a test device.
  3. Seen since the add-in started lists each site and where its scripts came from. Press Allow on this site or Allow everywhere for what the sites need, save and commit.
  4. Switch to Block, save and commit. A blocked script gets the block page instead of its code, and the page carries on without it.
Scripts from other sites on the TLS inspection page: a test group of addresses, and the scripts seen with Allow buttons
Scripts from other sites on the TLS inspection page: a test group of addresses, and the scripts seen with Allow buttons

The firewall recognises a script from another site by how browsers label every request (Sec-Fetch-Dest: script and Sec-Fetch-Site: cross-site). Sign-in, payment and captcha scripts and public code libraries are always allowed unless you untick them. QUIC is blocked while inspection is on, so browsers use connections the firewall can see.

Using your own CA (Active Directory Certificate Services)

  1. On your issuing CA, issue a subordinate CA certificate for the firewall. Basic constraints must say CA, and key usage must include certificate signing. Make it valid for at least a year.
  2. Export it with its private key as .pfx. Convert the export to PEM: openssl pkcs12 -in firewall-ca.pfx -nodes -out firewall-ca.pem. Split the output into the certificate and the key.
  3. Paste the certificate, the key and the chain (issuing CA, then root) under Use your own certificate authority, then Use this CA.
  4. Devices that trust your root accept the firewall's certificates at once.

Regenerate CA goes back to a CA made by the firewall.

Good to know

  • Never decrypted, whatever the settings (from 1.3.8): this firewall's own addresses, failover addresses included, so the console (for example base.example.com) always opens; and Korthveil support and updates (built in): korthveil.com and Korra Software's own domain, with every name under them (updates, licenses, guides, remote management). This holds even with the built-in list turned off, and the TLS inspection page lists it as that one entry (from 1.6.0). The firewall never inspects or scans traffic to itself. Never decrypted, whatever the settings

  • "Verifying you are human" checks, never decrypted (from 1.3.10): Cloudflare (challenges.cloudflare.com), hCaptcha, reCAPTCHA's recaptcha.net, Arkose Labs, DataDome, HUMAN (PerimeterX) and AWS WAF. These checks judge the browser by its own connection; decrypted, they see the firewall's connection instead and never pass, so a site keeps showing Verifying you are human. This holds even with the built-in list turned off. reCAPTCHA served from www.google.com/recaptcha can't be told apart from Google itself by name, so it follows your settings for www.google.com.

  • When the anti-virus restarts (from 1.3.8): after an update or a restart, ClamAV needs up to a minute to load its signatures. Downloads wait for it (up to 45 seconds) instead of being refused, and ClamAV starts again by itself if it stops. With If the scanner is unavailable: Block downloads, a file is refused only when the scanner stays unavailable longer than that.

  • IPv6 on your network, but no IPv6 to the internet (from 1.5.6): TLS inspection takes only the connections the firewall can carry on to the site. A device that tries a site's IPv6 address is told at once that there's no route, the same answer it gets without inspection, so it uses the site's IPv4 address. Banks, payments and other exempt sites keep working this way. Up to 1.5.5 the firewall took those IPv6 connections and couldn't reach the sites, so exempt sites failed and others showed Website not reachable. You don't need to set anything.

  • Erasing what TLS inspection kept: press Remove at the top of the page (it switches TLS inspection off and deletes its settings) and commit. Erase stored data in the same place then deletes its activity, its device list, the fingerprints, the learned exemptions and its CA. From 1.5.6 it stops the add-in first, so nothing it still held comes back when you switch it on again. You get a new CA, which devices must install again.
  • Not decrypted does not mean unprotected. Devices that are not decrypted keep:
    • DNS filtering;
    • the web filter by site name;
    • intrusion prevention;
    • fingerprint blocking.
  • Failover pairs: both firewalls use the same CA (from 1.3.3): the standby takes the active firewall's over the pair's own connection within a few minutes, so computers stay inspected while the partner carries the traffic. Before 1.3.3 each firewall made its own.
  • QUIC (HTTP/3 over UDP 443) is blocked by default so that browsers use inspected HTTPS.
  • Apps that pin their certificate (banking apps, many Apple and Google services) refuse any inspection certificate. The built-in exemption list passes them through.
  • When a client refuses the certificate (from 1.3.3, shown under What is inspected): Pass that site for that device is the default. The program keeps working, only that device reaches that site uninspected for 7 days, and Passed for one device lists it with Keep (an exemption for everyone) and Inspect again. Log only lets it fail; Learn an exemption for everyone is weaker, because any program could switch inspection off for a site for every device.
  • The built-in list (from 1.3.3) also holds banks, card issuers, brokerages and payment accounts (Chase, Bank of America, Wells Fargo, Citi, Capital One, American Express, Discover, Synchrony, Nordstrom card, TD, Schwab, Fidelity, Vanguard, PayPal and others), the Claude apps and Steam. Add your own bank or health-care sites under Exempt sites.
  • Card payment and checkout services shops embed (from 1.4.3): Shopify checkout and its card vault, Shop Pay, Stripe, Braintree, Square, Adyen, Klarna, Afterpay, Affirm, Authorize.net, Checkout.com, Sezzle, Google Pay and Amazon Pay, and the fraud checks they run: Sardine, Forter, Riskified, Signifyd, Sift, Kount and ThreatMetrix. They take card numbers, and their fraud checks refuse a decrypted connection, so Buy would fail.
  • Sites whose bot check refuses the decrypted browser (from 1.4.3): some shops and sites (eBay, ticket and sneaker shops, airlines) check the browser's own secure connection with a bot-protection service (Akamai, DataDome, HUMAN, Imperva, Kasada, AWS WAF, Cloudflare). Decrypted, they see the firewall's connection and refuse the page with Access Denied or Something went wrong. When a site's bot check refuses the browser is set to Pass that site uninspected by default. The firewall recognises the refusal, passes that site and its subdomains uninspected for every device, and reloads the page. The site is listed under Learned exemptions with the service's name, plus Keep and Inspect again. Sites the Web filter lists as malware or phishing are never passed this way. Report only logs the refusal and lets the site fail.
When a site's bot check refuses the browser: Pass that site uninspected (recommended)
When a site's bot check refuses the browser: Pass that site uninspected (recommended)
What is inspected: When a client refuses the certificate, Pass that site for that device
What is inspected: When a client refuses the certificate, Pass that site for that device
Exemptions: the built-in list with banks, card issuers, brokerages, the Claude apps and Steam
Exemptions: the built-in list with banks, card issuers, brokerages, the Claude apps and Steam
  • Never decrypt by category (from 1.3.4): tick Online banks and Financial information and services under Exemptions. TLS inspection asks the Web filter add-in which category a site is in (its UT1 lists) and passes every site in those categories through untouched, including banks no list of names knows. It needs the Web filter add-in on. Health and government sites have no category in those lists yet: add them under Exempt sites.
Never decrypt by category: Online banks and Financial information and services
Never decrypt by category: Online banks and Financial information and services
  • Learned exemptions (sites passed after a bot check refused the browser, and with Learn an exemption for everyone, sites a program refused the certificate for) have Keep, Keep all as exemptions and Inspect all again.

Troubleshooting

You see Meaning What to do
Certificate warnings in the browser The device does not trust the CA Use the install page, or switch to Only devices that trust the certificate
A device shows Refuses it It refused the certificate for 3 sites Install the certificate, then Forget the device
An app stops working It pins its certificate Add its site to Exempt sites
The install page does not open The add-in is off, or the device is not in an inspected zone Commit TLS inspection; the page is only on the inspected zones
Use this CA says the key is encrypted The key has a password Export it without one (it is stored only on the firewall)

Download as PDF All guides