r/programming • • Nov 24 '16

Let's Encrypt Everything

https://blog.codinghorror.com/lets-encrypt-everything/
3.5k Upvotes

508 comments sorted by

View all comments

11

u/tambry Nov 24 '16

Yet Let's Encrypt doesn't provide wildcards nor verification through DNS records.

53

u/lbft Nov 24 '16

Yet Let's Encrypt doesn't provide ... verification through DNS records.

As of January 2016, Let's Encrypt supports DNS challenges.

12

u/justjanne Nov 24 '16

That's a dynamic DNS challenge, but it doesn't support static DNS auth.

(Where you put a public RSA key in the DNS, sign the certificate request with the private key, send that to LE, and they verify).

The challenges all still require changing your setup during the requesting, which makes it not ideal.

2

u/kyz Nov 25 '16

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.

→ More replies (3)