A customer calls: the captive portal of their MikroTik hotspot, which redirects to an external HTTPS login system, won’t open on an Android 13 phone. The clue that wrecks every convenient explanation: the same phone, on the same site, opens over mobile data (LTE) and fails only behind the hotspot (before login). The certificate is valid, not expired, not revoked. So what? This is the story — measured in the lab with dojo.trust and with a sniffer on a real iPhone — of two different ways a “valid” certificate fails to open, and how to pick the CA that actually opens on everything.

“Valid” isn’t a single word: two different traps

The “LTE yes, hotspot no, same phone” detail is decisive, because it immediately rules out the obvious explanation and opens another. There are two independent mechanisms by which a valid certificate can be rejected, and they are told apart precisely by how they behave with respect to the network.

Trap 1 — the trust store (the root that isn’t there)

Every operating system, and every version of it, has its own list of roots to trust. A certificate is “trusted” only if its chain climbs to a root present in that store. That is the case we told in full in “A hotspot that wouldn’t open on Android 13: valid doesn’t mean trusted”: a root enters the stores at different times depending on the vendor, and an older phone may not have it yet.

But one clue rules out this trap in our case: the trust store is local and network-independent. If the root were missing, the site would fail on LTE too. The fact that LTE works tells us the store, here, is not the issue. The cause changes with the network — so it is something else.

Trap 2 — the incomplete chain (and the captive portal that breaks it)

Very many servers send an incomplete chain: they ship only the end certificate (the leaf), without the intermediate CAs that link it to the root. The leaf, however, carries in its Authority Information Access (AIA) → caIssuers field an address to download the missing intermediate:

Authority Information Access:
    CA Issuers - URI:http://<ca>/intermediate.crt
    OCSP       - URI:http://<ca>/ocsp

On a normal network the device fetches that missing link itself and completes the chain. Behind a captive portal, before login, that http:// URL is not in the walled garden: the request is intercepted and replaced with the portal’s login page. The intermediate never arrives, the chain never reaches the root, and validation fails. (The same fate hits OCSP/CRL, also on http:// and also blocked before login.)

Let’s show it: the phone fetching the missing link

We don’t deduce it: we sniffed it. In the lab: a test CA, an HTTPS server serving only the leaf (a deliberately incomplete chain) with the AIA pointing at a mini-server of ours, and an iPhone opening the page while we capture the traffic. Here is what the phone does, packet by packet:

connect to https://test-site        (the server sends an incomplete chain)
GET http://<aia>/intermediate.der    <-- the device downloads the missing intermediate
reconnect to https://test-site      (chain now complete -> the page opens)

The best detail is who makes that request. In the log of the server hosting the intermediate:

AIA-HIT  from=<iphone>  UA=com.apple.trustd/3.0

The User-Agent is com.apple.trustd: not Safari, but the operating system’s trust daemon. It is iOS itself, at the certificate-validation level, going out to fetch the intermediate via AIA. And it downloads it only once: on the second open it no longer asks for it, because it has cached it.

Then we simulate the captive portal. Same scenario, but the AIA URL now answers with the portal’s login page instead of the certificate (exactly what a walled garden does). With a fresh certificate (because the old one is cached), we reopen:

GET http://<aia>/intermediate.der  ->  <html> portal page </html>   (x4 attempts)
... trustd retries, always receives HTML, not a certificate -> gives up -> certificate error

The trust daemon tries several times before giving up, but behind the portal there is no certificate to fetch. The very same certificate as the case that opens: the only difference is whether the AIA is reachable. Here is the picture, at the byte:

Scenario What the AIA returns The trust daemon Outcome
Normal network (LTE) the intermediate downloads it (once) and caches it the page opens
Behind captive portal the login page retries and gives up certificate error

With dojo.trust you can see it even without a phone, by feeding the library the chain the server actually sends (read it with openssl s_client -showcerts): if the chain is complete the verdict is trusted; if you pass only the leaf the verdict is not-trusted with reason “no path to a store root”. That “no path” is the signature of an incomplete chain — quite different from “missing root”.

So which certificate do I pick for a hotspot?

Here we reach the practical question. A hotspot must open on everything: new phones and old ones, tablets forgotten in a drawer, devices that haven’t updated in years. You don’t pick the root: you pick the CA (the product), and the CA serves a chain that climbs to one of its roots. The older and more widely deployed that root, the more devices know it.

We measured it with dojo.trust against real per-OS-version trust stores: 35 stores in all (Android from 7.0 to 15, Apple from iOS 7 up to recent iOS/macOS, plus the current Windows list). For each CA we counted in how many stores its root is trusted, looking above all at the oldest ones — the real test of backward compatibility.

Root (CA / product) Stores Android 7.0 iOS 7 Recent versions
DigiCert Global Root CA / G2 — DigiCert 35/35 yes yes yes
GlobalSign Root CA (R1, 1998) 35/35 yes yes yes
Entrust Root Certification Authority 35/35 yes yes yes
USERTrust RSA / AAA — Sectigo (legacy chain) 34/35 yes yes yes
ISRG Root X1 — Let’s Encrypt (2015) 28/35 no no yes

The reading is clear. DigiCert, GlobalSign and Entrust have “ancient” yet still-valid roots, present everywhere, even on the oldest devices: they are the right choice when “it must work on everything” matters more than price. Let’s Encrypt (the ISRG Root X1 root, from 2015) is free and excellent on modern devices, but its root is young: it does not cover pure Android 7.0 or iOS 7. And Sectigo, in its cross-signed chain climbing to USERTrust RSA, is the widest legacy option — the same one that fixed the Android 13 case “without changing CA”.

In one line: for a hotspot that must open on everything, DigiCert (or GlobalSign, or Entrust), serving the complete chain.

The rule that closes both traps

Picking the right CA isn’t enough: you also have to serve it well. The two rules that eliminate both the store trap and the incomplete-chain trap:

  1. Always serve the complete chain — the leaf plus every intermediate, in the correct order. Then no device has to download anything via AIA, and the page opens even behind a captive portal. Completeness is never delegated to AIA: before login, it is not there.
  2. Prefer a chain that climbs to an old, widely-deployed root (DigiCert, GlobalSign, USERTrust, ISRG X1) → maximum backward compatibility on the real devices that connect to a hotspot.

And before touching production, verify: read the chain the server actually sends with openssl s_client -connect host:443 -servername host -showcerts, and check it with dojo.trust against the store of the OS version you are worried about. “Complete chain” and “trusted root” are two different checks, and a hotspot that opens on everything passes both.

Honest note: not every client does AIA fetching (browsers do; the “raw” TLS stack of some libraries historically did not); in our case the LTE success is explained by the system fetching the intermediate and by caching. That is exactly why the truly robust defense is a single one — serving the complete chain — and it works for every client, today.

Why does it work on LTE but not behind the hotspot, with the same phone?

Because the problem is not the trust store (which is local and identical on every network), but the incomplete chain: on LTE the device downloads the missing intermediate via AIA and completes it; behind the captive portal, before login, that download is blocked by the walled garden.

What is AIA caIssuers?

It is a certificate field that gives the URL from which to download the intermediate CA that issued it. Clients use it to complete a chain the server didn’t send in full. It is in the clear, over http://, and behind a captive portal it gets intercepted.

Which certificate is most compatible for a hotspot?

A chain that climbs to an old, widely-deployed root: DigiCert, GlobalSign or Entrust (trusted in every store we measured, including Android 7.0 and iOS 7). Let’s Encrypt is excellent on modern devices but its root (2015) does not cover the oldest ones.

Is changing CA enough to fix it?

Often not: the most frequent problem is the incomplete chain, not the CA. You need to configure the server to send leaf plus every intermediate. Changing CA helps only if the old root wasn’t trusted on those devices.