ACME is an open standard, certificates are public files, CAs are lists. It’s natural to ask: what if we tried to forge a Let’s Encrypt certificate — make one for a site that isn’t ours, and use it for a man-in-the-middle attack? In this article we try it for real, in an isolated lab and only on names/domains of our own, to see with our own eyes where the attempt breaks. Because understanding why something is impossible is worth more than a thousand “trust me, it’s secure”.
Background reference: Certificates, CAs and the chain of trust. And the legitimate flip side of this article: ACME at home with an internal CA.
Step 1: two different things that get confused
“Forging a certificate” mixes up two very different operations:
- Minting a certificate for any name — making the file.
- Getting it accepted by a device that isn’t yours — making the padlock green.
The first is trivial. The second is the wall. And there’s no “protocol to crack”: ACME is public (RFC 8555), anyone can implement it. The secret isn’t in the protocol — it’s in the distribution of trust. Let’s see it.
Step 2: minting a fake is one command
A CA can sign a certificate for any name it wants — even one that doesn’t belong to it. In the lab we have our own internal CA (the one from the previous howto); we ask it for a certificate for a fake bank:
step ca certificate "login.examplebank.com" fake.crt fake.key --provisioner admin@...
subject = CN = login.examplebank.com <-- a name that is NOT ours
issuer = O = Dojo Internal CA, CN = ... Intermediate CA <-- signed by US
Done. We hold a technically valid certificate for login.examplebank.com. No cryptography was “broken”: a CA signs whatever it wants. If this were enough to do a MITM, the web would be indefensible. But it isn’t enough at all.
Step 3: the wall — trust can’t be minted
We put our fake to work serving the fake bank and try to connect. First with a normal client, with the factory trust store (the one any PC or phone has):
curl https://login.examplebank.com/
curl: (60) SSL certificate problem: unable to get local issuer certificate
Rejected. The client doesn’t know our CA, so the certificate is worthless paper: no padlock, in fact a full-screen red warning. Now the exact same certificate, but from a client we ourselves taught to trust our root:
curl --cacert our-root.crt https://login.examplebank.com/
(verification OK)
Accepted. The difference isn’t in the certificate — it’s identical — but in the device: one has our CA in its trust store, the other doesn’t. And here the attack collapses: to make the victim accept the fake you’d have to install your CA on their device. But if you can do that, you already control their device — the certificate attack is pointless. It’s exactly the difference from the internal-CA howto: there trust was granted by the owner on their own devices (legitimate); here you’d have to steal it on someone else’s device (and you can’t).
Step 4: so what about getting a REAL certificate for someone else’s site?
Let’s change strategy: instead of minting it with a CA of ours (that nobody cares about), let’s try to have Let’s Encrypt issue it for a domain that isn’t ours. A real certificate, trusted by everyone. But to get it you must pass the challenge — prove you control the domain. If you don’t control it, the only route is to hijack the validation: make the CA’s validator, at challenge time, end up on your server instead of the real one.
You do it by diverting the traffic: a BGP hijack (announcing the victim’s prefix) or DNS (poisoning the resolution). It’s not a protocol trick: it’s an attack on the Internet’s infrastructure. And even if you succeed, today you hit a new wall.
Step 5: why it fails — multi-point validation (MPIC)
Since 2025 Let’s Encrypt validates from multiple network perspectives (MPIC, Multi-Perspective Issuance Corroboration, now required by the CA/Browser Forum). A BGP hijack is usually local: you manage to divert the traffic of some networks, not all of them. The perspectives that still reach the real server disagree with yours → no quorum → issuance denied.
This isn’t theory: we saw it live in the Let’s Encrypt howto, where a single perspective that couldn’t connect was enough to make issuance fail (“During secondary validation … Timeout“). That shield, annoying there, is exactly what stops the hijacker: to fool MPIC you’d need a near-global hijack, huge and extremely noisy.
Step 6: and if it even passed? Three more layers
Suppose the impossible: a global hijack succeeds and the certificate is issued. It’s not over, because the defense is layered:
- Certificate Transparency. Every issued certificate ends up in public logs. The domain owner, watching crt.sh, sees a certificate they didn’t request appear and raises the alarm. The attack is no longer silent.
- CAA. If the domain has a CAA record authorizing only certain CAs, a different CA refuses to issue. The attacker must trick exactly the authorized CA.
- RPKI. At the routing layer, a prefix with a valid ROA makes the BGP hijack itself invalid: routers doing route validation discard the hijacker’s announcement. The attack dies upstream, before validation even happens.
Four independent mechanisms — MPIC, CT, CAA, RPKI — that an attacker would have to beat all at once.
The moral
Minting a certificate is easy; it’s useless, because nobody trusts your signature. Having a real one issued for someone else’s site requires hijacking the Internet’s infrastructure, and even then four layers of defense unmask you. The security of the web doesn’t rest on the secrecy of a protocol — ACME is open, certificates are public — but on how trust is distributed: in devices’ trust stores, in public logs, in DNS records, in signed routes. And that’s a good thing: robustness you can inspect is sturdier than robustness you must hide.
Frequently asked questions
So “do-it-yourself” certificates are useless?
They’re very useful, in the right context: an internal CA is legitimate and handy for your devices, where you install your root (see the internal-CA howto). It becomes a “fake” only if you try to impose it on someone else’s devices — and there it doesn’t work.
Doesn’t corporate TLS inspection (a MITM) do exactly this?
Yes, and it’s the proof of concept: corporate TLS inspection works because the company installs its own CA on all managed devices (it controls them). It’s the same mechanism, with the owner’s consent/control. On an unmanaged device, inspection fails with the browser’s warning.
So does a green padlock guarantee I’m talking to the right site?
It guarantees the connection to that name is encrypted and that the name was validated by a trusted CA. It doesn’t guarantee the name is honest: even a phishing site can have a valid padlock for its name. Always look at the name, not just the padlock.
Demonstration in an isolated lab, only on test names/domains of our own. With an internal CA (step-ca) a certificate for a name that isn’t ours (login.examplebank.com, a fake bank) was minted in a single command: technically valid, issued by our CA. Served via openssl s_server and put to the test: a client with the system trust store rejects it (curl: (60) SSL certificate problem: unable to get local issuer certificate), while the same certificate is accepted only by a client made to trust our root — proving the barrier is the distribution of trust, not the cryptography. The MPIC behavior of Let’s Encrypt (refusal in the absence of corroboration between perspectives) is the one actually observed in the Let’s Encrypt howto. No attempt at mis-issuance against public CAs nor any real hijack: both described, never performed. Generic device.



