KORTHVEILSecurity firewall
Guides

Certificate tests: does a device check who it talks to?

Download as PDF All guides

Most smart devices send their data to the internet encrypted. Encryption protects that data only if the device checks the server's certificate. A device that accepts any certificate can be read, and changed, by anyone on the way: a hacked router, a fake Wi-Fi access point, a compromised network.

Security › Privacy › Certificate tests (from 1.6.6) finds out. For one device and up to an hour, the firewall answers the device's connections to the internet with a certificate it made itself for the same names. Then it shows what the device did:

  • A device that refuses it checks certificates. Nobody on the way can read what it sends. You still see the real server's certificate and how much was sent.
  • A device that accepts it has a security flaw. While the test runs, the firewall carries its connections on to the real servers, so the device keeps working, and it records what the device sent.

The test touches nothing of any other device, and it ends by itself.

Before you start

  • The test reads what the device sends. Test only your own devices, or your organisation's, and tell the people who use them.
  • The test needs the TLS inspection add-in. It doesn't have to be inspecting anything: when TLS inspection is off, the page says so, and a test turns the add-in on for certificate tests only. No zone is inspected, and settings you saved there earlier are kept but not used. It goes off again when you stop or remove the last test. When TLS inspection already inspects zones, it stays as it is.
  • The first time, tick I confirm I may read this device's traffic: it is mine or my organisation's, and the people using it know.

Start a test

  1. Open Security › Privacy › Certificate tests.
  2. Device: choose it from the list (name and address). A device chosen by its MAC address is tested on IPv4 and IPv6.
  3. Zone: filled in from the device's network. An internet zone is never offered.
  4. How long: 5, 10, 15 (the default), 30 or 60 minutes.
  5. Ports (empty: every port): leave it empty to test every TCP port the device uses, or list ports such as 8883, 443. DNS (port 53) is never tested, so the device always finds its servers.
  6. Record what can be read is ticked by default. Recording limit: 5, 10, 20 (the default) or 50 MB.
  7. Press Start the test. The test is committed at once, and its clock starts. When other changes are waiting to be committed, it is only saved to pending changes: commit them to start it.
Security › Privacy › Certificate tests: TLS inspection is off, so a test turns it on for certificate tests only
Security › Privacy › Certificate tests: TLS inspection is off, so a test turns it on for certificate tests only

At most 8 tests run at a time, one per device. Then use the device as you normally do: open its app, switch it on and off, let it report. On Security › Privacy › Watched devices, Test its certificates under What it sends opens this page.

What is tested, and what isn't

  • Tested: the chosen device's new TCP connections to internet addresses.
  • Never touched:
    • other devices;
    • your own networks, private addresses and the firewall itself;
    • DNS;
    • the names the firewall never decrypts: Korthveil support and updates, human checks (Cloudflare, hCaptcha and the like), and the add-in's exemptions.
  • Not tested here: UDP (QUIC, DTLS). It passes untouched and isn't listed.

The results

Tests lists every test with its device, running until or ended, and one line per server:

Four lab devices tested: a thermostat with a pre-shared key, a light switch and a robot vacuum that accept a forged certificate, a doorbell camera that checks certificates, and the vacuum's plain HTTP
Four lab devices tested: a thermostat with a pre-shared key, a light switch and a robot vacuum that accept a forged certificate, a doorbell camera that checks certificates, and the vacuum's plain HTTP
Column Shows
Server The name the device asked for, with the address and port
What the device did The verdict, with what happened
The real certificate Who the real server's certificate is for, who issued it, and whether it is valid for the name. The firewall fetches it itself, with the device's name
Sent / received Bytes each way and the number of connections during the test

The verdicts

Verdict Means What to do
Accepts a forged certificate The device sent data through the firewall's certificate. Anyone on the way can read and change what it sends See below
Not encrypted The device sends without encryption. Anyone on the way can read it Ask the maker why. Keep the device to itself (below)
Checks certificates The device refused the firewall's certificate: it checks who it talks to, and nobody on the way can read it. Its later connections to that server pass untouched Nothing to fix. To see what it sends, ask its maker for your data
Pre-shared key TLS with a key built into the device: there is no certificate to test, and the firewall can't read it Nothing more the test can tell

You may also see:

  • Never decrypted: a name on the never-decrypted list. It passed untouched.
  • Not tested: the test couldn't run on that server, for example the device spoke a TLS the firewall can't read, or the server didn't answer. It passed untouched.
  • Testing: the first connection is still open.

A verdict is never replaced by a weaker one. A device that finishes the handshake and closes without sending anything counts as checking certificates. When a device shows its own certificate, the row says so. When the real server requires the device's certificate, the firewall can't carry the connection on: it reads it for up to 30 seconds and closes it.

The recording

When Record what can be read was ticked and something could be read, the test has a Recording button with its size. It downloads a text file: when, which connection, which way, how many bytes, and what was sent, for the plain-text connections and for those that went through the firewall's certificate. For example, from the lab's light switch:

== 2026-11-26 04:14:48.856Z  connection 2  device → cloud.example.net:8883  143 bytes ==
{"device": "lab-switch", "model": "Example Switch 2", "state": "on", "power_w": 0.4, "wifi": "lab-net", "rssi": -52, "uptime": 257, "seq": 33}

== 2026-11-26 04:14:48.900Z  connection 2  cloud.example.net:8883 → device  12 bytes ==
{"ok":true}

That lab device sends the name of its Wi-Fi with every report.

The recording is kept as a secret: only an administrator can download it, and it is never in logs, diagnostics bundles or configuration exports. Recording stops at the limit.

Alerts

A test raises alerts through the threats check. They are listed on Monitoring › Alerts and go to the destinations set up there:

  • A device accepts a forged certificate (critical), with the device and the server, ending Ask its maker for a fix, and keep it on a network of its own until then.
  • A device sends without encryption (warning).

Stop, remove, delete

  • Stop ends a running test at once.
  • An ended test stays in the add-in's settings until you press Remove from settings or start another test. Stopping or removing the last one turns the add-in off again if it was on for certificate tests only.
  • Results are kept for 30 days. Delete results deletes a test's results and its recording; press it twice.

A device that accepts the forged certificate

It has a security flaw. Anyone who sits between the device and its servers can read what it sends and change what it receives, without the device noticing. On your network that means a compromised router or access point; away from home, any network the device uses.

  1. Read the recording: you see what it sends, for example your Wi-Fi name, your e-mail address or what is on your screen.
  2. Keep it away from your other devices: Isolation box or LAN isolation (see Isolation box and LAN isolation).
  3. Tell the maker. Security › Privacy › Watched devices › Copy a report puts the facts in text for you to send (see Watched devices). The firewall never sends it.
  4. Look for a firmware update, then test again.
  5. If no fix comes, replace it.

Questions

  • Does the test break the device? A device that accepts the certificate keeps working: its connections are carried on to the real servers. A device that checks certificates may lose its first connection to each server; later ones pass untouched.
  • Can the firewall read every device? No. Only a device that accepts a certificate it shouldn't, or one that sends without encryption. A well-made device can't be read by anyone on the way, the firewall included.
  • What about computers and phones? They can be tested the same way. To read their encrypted traffic all the time, install the firewall's certificate on them and use TLS inspection instead.

How it was tested

  • Automated tests: each verdict in a network lab with four kinds of lab devices (accepts any certificate, checks certificates, a built-in key, plain text), over IPv4 and IPv6.
  • The pictures: taken on a test firewall running 1.6.6, with lab devices and a lab "cloud" that uses its own certificate authority. That is why the real certificates show not valid: x509: certificate signed by unknown authority: a real device's cloud usually has a valid certificate.
  • Not built: UDP (QUIC, DTLS) isn't tested.

Troubleshooting

What you see Likely cause What to do
Waiting for the device to connect to the internet. The device hasn't made a new connection yet Use the device: open its app, switch it
The device did not connect to the internet during the test. It was off or quiet, or it uses only UDP Test again while you use it
Start the test stays greyed out A field is missing, or the confirmation isn't ticked The message next to the button says what
This device is being tested already. One test per device Wait for it to end, or Stop it
The device stopped working during the test It checks certificates and didn't retry Stop the test; it works again at once
A boxed or LAN-isolated device loses its connections during a test 1.6.6, fixed in 1.6.7 (see Isolation box) Update to 1.6.7; on 1.6.6, test it before you isolate it, or release it for the test

Download as PDF All guides