TLS certificates for internal services done right
1–10 of 177 posts
Re: TLS certificates for internal services done right
#2Re: TLS certificates for internal services done right
#3Re: TLS certificates for internal services done right
#4Re: TLS certificates for internal services done right
#5I don't agree that tunneling everything through some external facing proxy is "TLS certificates for internal services done right".
Re: TLS certificates for internal services done right
#6I also use Tailscale so I configure my DNS to use my Tailscale IP addresses. If you don’t want to expose them on a public DNS server you can add them only to an internal DNS server.
Re: TLS certificates for internal services done right
#7Re: TLS certificates for internal services done right
#8 1. Register a domain ("server.com") and put it on some public DNS that can do DNS validation with acme.sh.
2. Use DNS validation to get a certificate on your domain from Let's Encrypt. You can just grab a wildcard one ("*.server.com").
3. CNAME all of your services on a public DNS to an internal address ("email.server.com" → "server.internal", "plex.server.com" → "server.internal").
4. Resolve your internal address on a local DNS server with an A record ("server.internal" → 192.168.0.123). This can often just be done on your router.
Since you use DNS validation, you just API keys for your public DNS service that acme.sh can use. No need to have any VPN network interfaces for getting your certificate. Your wildcard certificate also doesn't leak any details about your services.Re: TLS certificates for internal services done right
#9I use the acme dns-1 challenge on my public domain. That gives you certificates you can use as you see fit, without needing to expose anything else to the public internet. I also use Tailscale so I configure my DNS to use my Tailscale IP addresses. If you don’t want to expose them on a public DNS server you can add them only to an internal DNS server.
https://www.eff.org/deeplinks/2018/02/technical-deep-dive-se...
Re: TLS certificates for internal services done right
#10this is all fine and good, if you are okay broadcasting your internal hostnames. I suppose it's a trade off some might make.