Live data from Hacker News

Should you use Let's Encrypt for internal hostnames?

shkspr.mobi

11–20 of 198 posts

Re: Should you use Let's Encrypt for internal hostnames?

#12

> The only real answer to this is to use Wildcard Certificates. You can get a TLS certificate for *.internal.example.com Does Let's Encrypt support Subject Alt Names on the wildcard certs? My experience suggests that wildcard certs work, but require a SAN entry for each "real" host because browsers don't trust the CN field anymore. e.g., my *.apps.blah cert doesn't work unless I include all of the things I use it on…

I use a few wildcard certs from Amazon, and they work well on Firefox, Safari and Chrome.

Re: Should you use Let's Encrypt for internal hostnames?

#13
post #5

Earlier quoted context omitted.

What I'd want is an internal CA, like step-ca, but have the certificates signed by a "real" CA, so I don't have to distribute my own root CA certificate.

The dream would truly be an internal CA backed by a publicly trusted subordinate cert (limited to the domain you control). But afaik that can’t happen until the Name Constraint Extension is enforced by “all” clients.

[deleted]

Re: Should you use Let's Encrypt for internal hostnames?

#15

> The only real answer to this is to use Wildcard Certificates. You can get a TLS certificate for *.internal.example.com Does Let's Encrypt support Subject Alt Names on the wildcard certs? My experience suggests that wildcard certs work, but require a SAN entry for each "real" host because browsers don't trust the CN field anymore. e.g., my *.apps.blah cert doesn't work unless I include all of the things I use it on…

Wildcard certs from LE work fine for internal domains. I've been using one for a while now. I had to set up some cron jobs to copy them around and restart some services, but it seems to be working well.

Re: Should you use Let's Encrypt for internal hostnames?

#16
post #11

> OK, so you decide to have an internal DNS - now the whole world knows you have doorbell-model-xyz.myhome.example.com! Uhm, or you use split horizon DNS? Who in their right mind would leak all their internal DNS names into a public DNS zone?

Sorry for the poor wording on my part. I meant that if you issue a LE Cert for your doorbell, and give it a "sensible" name, the name will appear in the CT Log.

Re: Should you use Let's Encrypt for internal hostnames?

#17
post #11

> OK, so you decide to have an internal DNS - now the whole world knows you have doorbell-model-xyz.myhome.example.com! Uhm, or you use split horizon DNS? Who in their right mind would leak all their internal DNS names into a public DNS zone?

Named certs have the hostnames they’re valid for in the Certificate itself.

“View Certificate” in a browser, or openssl sclient on cli will show you.

Re: Should you use Let's Encrypt for internal hostnames?

#18
post #11

> OK, so you decide to have an internal DNS - now the whole world knows you have doorbell-model-xyz.myhome.example.com! Uhm, or you use split horizon DNS? Who in their right mind would leak all their internal DNS names into a public DNS zone?

That's in the article, Let's encrypt leaks them for you, if you use them for your intranet.

Re: Should you use Let's Encrypt for internal hostnames?

#19

This seems like a perfect use case for wild card certs, especially if you have internal sites on a different (sub) domain from your prod servers. Yes, multiple servers have the same private key, but when the alternative is self-signed or no encryption, that is an easy trade off for me.

I don't know how LE does it, but at least with DigiCert (and I assume other commercial CAs), servers sharing the same wildcard cert don't have to share a private key. You generate a separate CSR from each server, and then request a duplicate copy of the wildcard cert using that CSR. That way they can have different SANs as well.

Re: Should you use Let's Encrypt for internal hostnames?

#20
post #11

> OK, so you decide to have an internal DNS - now the whole world knows you have doorbell-model-xyz.myhome.example.com! Uhm, or you use split horizon DNS? Who in their right mind would leak all their internal DNS names into a public DNS zone?

I don't bother with split horizon DNS for my home network.
Post reply on HN