API certificates on older Android and iOS: check before release
After a release, the reviews say “Can’t connect to the server”. Everything works on the team’s phones, the website opens for the user, but the app doesn’t. Most often the cause is a server certificate that an older system version doesn’t trust. Microkoi Bench checks your hosts’ chains against the Android and iOS root stores, starting from the oldest version you support: before release, not from the reviews.
Why it breaks only for some users
The app verifies the server’s certificate chain: from the leaf certificate issued for the host name, through the intermediates, to a root the device trusts. The list of trusted roots is built into the system and changes with its version. A problem in any link breaks the connection.
- Expiry. An expired leaf certificate breaks the app for everyone at once, even though the expiry date is known in advance.
- Chain. The server has to send the intermediate certificates itself. iOS fetches what’s missing, but the networking libraries of many cross-platform apps don’t. That’s how a server misconfiguration becomes “works on iOS, not on Android”.
- Trust. The chain’s root has to be in the store of the specific system version. A fitness app’s videos move to a host with a certificate from another certificate authority, and phones that haven’t been updated in a while stop trusting it.
A browser can use its own root store. That’s why the website opens on a phone while the app on the same phone doesn’t, and “it works in the browser” proves nothing.
Why you don’t see it during development
The team’s phones are new, the emulators run the latest versions, and the staging certificate is checked from a computer with its own root store. The breakage lives where the team doesn’t look. A shelf of old phones for a single check is expensive, and checking every host against every version by hand goes stale with the next certificate change.
A certificate check in Microkoi Bench
A check is the hosts your app works with plus the oldest Android and iOS versions it supports. Bench fetches the chain each server sends and verifies it against the root store of every version, from the one you pick to the newest. The catalog starts at Android 7.0 (API 24) and iOS 12.
- Open “Monitoring”, switch to the “Certificates” tab above the tree and click “Check”.
- Paste the whole list into the host field at once, from the app config, a spreadsheet or an email. Bench drops
https://and the path, keeps the port and skips duplicates. A check holds up to 100 hosts. - Pick the oldest Android and iOS versions your app supports: they’re in the build settings. For a platform you don’t ship to, select “Don’t check”.
- Leave “Expiry threshold, days” at 90 or set your own, and click “Save”.
- In the check’s header, click “Run check”. The root stores download once and are cached, so without a network the check uses the saved copy.
How to read the report
At the top is a one-line summary, for example “2 hosts fail the check”, and tiles: how many hosts were checked, how many don’t work on some Android versions, how many certificates have expired or expire within the threshold.
| Section | What question it answers |
|---|---|
| “Summary” | What doesn’t work and where. If a host has two problems, both are named |
| “Servers summary” | Each host’s root, certificate expiry and the result for each version range |
| “Which Android versions dropped out”, “Which iOS versions dropped out” | Which versions lack the needed root and which hosts fail because of it |
| “Chains the servers return” | Order, extra certificates, missing intermediate, no TLS 1.3 |
| “What to do” | Cross-signed certificate, renewal, wrong name, DNS, connection |
| “How it was checked” | Root store sources, root counts and the check’s limitations |
Neighboring versions with the same result merge into ranges: “Android 7.0–7.1 (API 24–25)” with “Untrusted”, and an open-ended range with “OK”. That’s a direct answer to the question of which version everything works from.
What to do with the findings
- Missing intermediate certificate: configure the server to send the full chain. No new certificate is needed for that.
- Root missing in older versions: send a chain with a cross-signed certificate from a root they know, or raise the minimum version, knowing whom you cut off.
- Expiry is close: renew and run the check again, since the new certificate may come with a different root.
- Wrong name: the certificate was issued for a host other than the one the app connects to.
“Export to HTML” saves the report as a single file that opens in any browser, without Bench and without internet. You can attach it to a ticket for the backend developer: it has the chains, version ranges and recommendations.
What the check doesn’t see
- Roots added by manufacturers’ firmware, and browsers’ own root stores.
- Intermediate certificates aren’t fetched, including for iOS. “Untrusted” on iOS holds for clients that verify the chain themselves, while a native app may work with the same server: the check is stricter on purpose.
- Certificate pinning in the app itself.
When to check
- Before every release.
- When the minimum Android or iOS version changes.
- When the backend changes its certificate, certificate authority or load balancer, or adds a host.
A check is stored as a file in the workspace folder, in monitors/, and goes into git with the project. You gather the host list once, and from then on the check is one click. Between checks, an uptime monitor watches certificate expiry: the “Warn if the certificate expires within, days” field.
Checked your hosts? Write to beta@microkoi.com about what turned up and which platform version the catalog was missing. We read every email.