When your MikroTik acts as an HTTPS client — the ACME client for Let’s Encrypt, /tool fetch, e-mail sending, the cloud — it trusts some certificate authorities and not others. Where is that list written? The question sounds trivial, but the answer isn’t in the certificate menu: there is no command that shows it to you. In this howto we pull it out of where it really lives — inside the firmware — with the dojo.npk library, and then we put it to the test with dojo.trust. All on measured facts, on a real RouterOS 7.25.
It’s the natural sequel to the howto «A hotspot that wouldn’t open on Android 13»: there the verifier was a phone; here the verifier is the router itself. If a chain of trust isn’t fresh in your mind, start from the note on certificates, CAs and the chain of trust.
Act 1 — The field test: does the router trust it, or not?
On a clean CHR 7.25, a /tool fetch with check-certificate=yes tells the truth with no hedging. Two sites, two opposite outcomes:
[admin@router] > /tool fetch url=https://letsencrypt.org/ check-certificate=yes http-method=get dst-path=le.txt
status: finished
code: 200
duration: 0s
[admin@router] > /tool fetch url=https://www.buypass.com/ check-certificate=yes http-method=get dst-path=b.txt
status: failed
failure: SSL: ssl: no trusted CA certificate found (6)
Same network, same command, same second: Let’s Encrypt passes, Buypass doesn’t. And it isn’t connectivity — the same two lines with check-certificate=no make it obvious:
[admin@router] > /tool fetch url=https://www.buypass.com/ check-certificate=no http-method=get dst-path=b.txt
status: finished
code: 200
The site downloads just fine: the network is there. What changes with check-certificate=yes is one single thing — whether the root of the server’s chain is among those this RouterOS trusts. Buypass, Certum, D-Trust, SwissSign all give the same no trusted CA certificate found; Let’s Encrypt, GlobalSign, Amazon, DigiCert pass. There’s also the sly case: www.google.com passes, even though its root (Google Trust Services) isn’t in the list — because the chain Google serves is cross-signed onto a GlobalSign root that is there. Exactly the «bridge» trick seen in the hotspot howto.
Act 2 — But that list… where is it?
Instinct: /certificate print. Wrong. That only shows the certificates you imported or created (your internal CA, the ACME certs, the roots you added by hand). On a router where you imported no public root, /certificate print is empty — and yet letsencrypt.org stays trusted. So the list of «factory» roots is not exposed by RouterOS: it isn’t in /certificate, there is no /certificate/trust-store print. It is compiled into the firmware.
And the firmware is a file: the .npk package you download from MikroTik. We open it with dojo.npk — our Python library that reads the RouterOS firmware format: it verifies the SHA-1 digest, lists and extracts the package parts and pulls out the squashfs filesystem ready to read. Inside are the root certificates, in the clear. Fingerprinting them and making sense of the list is the job of dojo.trust — our library that checks a certificate chain against the trust store of a specific OS version and tells you whether it is «trusted» or not:
from dojo.npk import Npk
fw = Npk.load("routeros-7.25.npk") # verifies the SHA1 digest, opens the squashfs
# -> the factory root CAs, extracted from the firmware and fingerprinted with dojo.trust
RouterOS 7.25 (system, build 2026-10-22) — 27 factory root CAs:
Amazon Root CA 1
DigiCert (Assured ID CA/G2/G3, Global CA/G2/G3, High Assurance EV,
TLS ECC P384 G5, TLS RSA4096 G5, Trusted Root G4) [10]
GlobalSign (Root CA/R46/E46 + 3 variants) [6]
Go Daddy Root G2
ISRG Root X1, ISRG Root X2 (Let's Encrypt)
Sectigo Public Server Auth Root R46, E46
SSL.com Root ECC
USERTrust RSA, USERTrust ECC
GSMA RSP2 Root CI1, OISTE GSMA CI G1 (eSIM / SIM profiles)
ISRG Root X1 : 96BCEC06... -> this is why letsencrypt.org passes
(Buypass, Certum, D-Trust, SwissSign: NOT present -> fetch rejected)
Twenty-seven roots, not three hundred: RouterOS’s store is small and curated. It’s missing names that are everywhere else (Baltimore, Entrust, VeriSign, Comodo AAA, Google Trust, Microsoft): that’s why a site with a «niche» CA can be unreachable from the router even though every browser opens it.
Act 3 — The time machine: the store changes with the version
Here comes the fact almost nobody knows, visible only by opening several firmwares. RouterOS’s factory store hasn’t always existed. Extracting the roots from a sequence of versions:
| RouterOS | Factory root CAs |
|---|---|
| 6.x (all) | 0 — no store |
| 7.13 · 7.16 · 7.17 · 7.18 | 0 — no store |
| 7.19 | 26 — the store is born |
| 7.20 · 7.21 · 7.22 · 7.23 | 27 (+ Amazon Root CA 1) |
| 7.25 | 27 (− Go Daddy Class 2, + SSL.com Root ECC) |
Translated: up to and including 7.18 — and across all of 6.x — RouterOS as a TLS client trusted no factory root at all. To make /tool fetch check-certificate=yes, TLS e-mail sending or an ACME client work, you had to import the CAs by hand. The store is born in 7.19 with 26 roots, becomes 27 in 7.20, and keeps evolving: between 7.22 and 7.25 an old Go Daddy root left and SSL.com Root ECC came in. Numbers extracted from the firmware, one by one, not inferred.
Act 4 — The counter-check with dojo.trust
Extracting the list is half the job; the other half is validating a chain against it. dojo.trust now includes RouterOS’s stores as the routeros-* family (the very ones extracted above): the same verify_chain as the Apple/Android/Windows stores, changing only the store.
from dojo.trust import routeros_store, routeros_versions, verify_chain
routeros_versions() # ['7.18','7.19','7.20','7.21','7.22','7.23','7.25']
s = routeros_store("7.25")
len(s) # 27
# the router's verdict, reproduced on paper:
verify_chain(letsencrypt_chain, s).verdict # 'trusted' (ISRG X1 in the store)
verify_chain(buypass_chain, s).verdict # 'not-trusted' (root absent)
verify_chain(letsencrypt_chain, routeros_store("7.18")).verdict # 'not-trusted' (no store)
And here the loop closes with the hotspot howto. Remember Sectigo R46, the root that on Android 13 wasn’t there (and the portal wouldn’t open)? In the store of RouterOS 7.25 it most certainly is:
s.status_of("7BB647A62AEEAC88BF257AA522D01FFEA395E0AB45C73F93F65654EC38F25A06")
-> 'trusted' # the ROUTER trusts Sectigo R46; Android 13 doesn't.
Same certificate, different verifiers, different answers: the phone, the Mac, the router — each with its own list, and each with its own version. It’s the thesis of the whole certificate series, now seen from the device’s side.
How you do it
Two Python libraries, zero external dependencies, MIT licensed. The first opens the firmware, the second validates:
It is installed from the dojo repository, reserved for those in the dojo: join for free.
It is installed from the dojo repository, reserved for those in the dojo: join for free.
dojo.trust’s tools/gen_routeros_store.py does the whole round in one command: given an .npk, it extracts the roots and writes the JSON store ready for verify_chain.
What to do in practice
- If a service the router must reach (a webhook, an API, a mail server, an ACME directory) uses a «niche» CA, check that its root is among the ~27: if it isn’t,
check-certificate=yeswill fail. Clean fix:/certificate importthe missing root andset <cert> trusted=yes— adding it to your store without turning verification off. - Never «fix» a trust error with
check-certificate=noin production: that turns verification off and accepts any certificate, MITM included. The error is telling you something true. - On RouterOS ≤ 7.18 there is no factory store: there, importing CAs by hand isn’t an option, it’s the only way. A good reason to be on 7.19+.
- We trust RouterOS will one day expose its own root list from the command line too; until it does, you read it from the firmware with dojo.npk.
Appendix — reproducible commands
# 1. test the router's trust (public hosts, no sensitive data)
/tool fetch url=https://letsencrypt.org/ check-certificate=yes http-method=get dst-path=le.txt # finished
/tool fetch url=https://www.buypass.com/ check-certificate=yes http-method=get dst-path=b.txt # failed: no trusted CA
# 2. extract and validate the factory store (Python, offline)
python tools/gen_routeros_store.py routeros-7.25.npk > routeros-7.25.json # 27 roots
python -c "from dojo.trust import routeros_store as r; print(len(r('7.25')), 'roots')"
Sources: official firmware from download.mikrotik.com (read with dojo.npk), trust verdicts measured on a real CHR 7.25, validation with dojo.trust. The router’s verdicts and the library’s coincide: it’s a measurement, not an argument.



