> wouldn't they also do just fine using a certificate signed by something manually added to their local trust store?
That means adding it to all the devices that need to connect to those sites. Which is fine if you're only connecting from a computer, but if it's a computer, several phones, a TV... then it's less fun. Yes, there are solutions, but having a LetsEncrypt certificate is simpler:
1. Get a wildcard subdomain to refer to hosts in your LAN (e.g., *.lan.mydomain.com)
2. Have a DNS resolver in your LAN (very common in homelab settings as people will already be running pihole or something like that)
3. Override the DNS settings to resolve the LAN subdomains to local LAN IPs.
You can also skip the bit about local DNS, and just use some cloud provider's wildcard DNS together with hard-to-guess hostnames.
So gingerbreadx.lan.mydomain.com sits behind an HTTPS reverse proxy which serves the .lan.mydomain.com wildcard cert, and on the public DNS *.lan.mydomain.com points to the proxy. This is security through obscurity, but you have to think about how likely it is that someone would run a brute force DNS enumeration attack against your private services.
That means adding it to all the devices that need to connect to those sites. Which is fine if you're only connecting from a computer, but if it's a computer, several phones, a TV... then it's less fun. Yes, there are solutions, but having a LetsEncrypt certificate is simpler:
1. Get a wildcard subdomain to refer to hosts in your LAN (e.g., *.lan.mydomain.com) 2. Have a DNS resolver in your LAN (very common in homelab settings as people will already be running pihole or something like that) 3. Override the DNS settings to resolve the LAN subdomains to local LAN IPs.
Replies (1)
So gingerbreadx.lan.mydomain.com sits behind an HTTPS reverse proxy which serves the .lan.mydomain.com wildcard cert, and on the public DNS *.lan.mydomain.com points to the proxy. This is security through obscurity, but you have to think about how likely it is that someone would run a brute force DNS enumeration attack against your private services.