The challenges all still require changing your setup during the requesting, which makes it not ideal.
Actually, this is what makes it ideal. You have to prove you control a resource, at the time you want a new certificate issued for it.
DNS is not secure. Anyone with the right network access (anywhere between LE and your DNS nameservers) can spoof the response if they know when LE will be making a request to regarding your domain, and of course they'll put their own certificate on that response. Then they'll just ask LE to issue them a certificate and get one, without you even knowing. Game over.
To be secure, LE has to generate a unpredictable nonce, and communicate that to you in secret. Only then can you truly prove to LE that you control the domain you want a certificate for.
What you're thinking about -- putting security tokens in DNS -- is DANE, which is a replacement of the CA trust system altogether, but DANE requires a new anchor of trust, which is DNSSEC.
Well, yes. A DNSSEC and DANE (or DNSSEC and static DNS verification) approach would be preferred, yes.
Then they'll just ask LE to issue them a certificate and get one, without you even knowing. Game over.
The same can be done today already with DNS auth by a state actor. Just intercept the communication between LE and the DNS server, and you get full control.
Just intercept the communication between LE and the DNS server
Hence why the need for a dynamic request, a secure TLS communication between LE and the requester, and the dynamic unguessable nonce to prove the requester has control of the domain despite insecure DNS.
I imagine the anti-state-actor protections on LE's end go further (multiple requests to DNS over multiple network paths not all controlled by the same entity, results transmitted back to the system answering the original request over a secure path), but the key ingredient is a using a dynamic, not static request. That's why "changing your setup during the requesting [...] not ideal" is itself not ideal.
11
u/tambry Nov 24 '16
Yet Let's Encrypt doesn't provide wildcards nor verification through DNS records.