News for hackers. Stuff that matters.
Re:Build a tiny certificate authority for your homelab by tazard on Wednesday December 23, 2020 @07:16PM (#25523845)
With DNS validation it's fairly straight forward to get a wildcard cert for all your internal domains (*.my.domain)
Re:Build a tiny certificate authority for your homelab by treesknees on Wednesday December 23, 2020 @11:00PM (#25524928)
You still need a public-facing domain to do this, though. You can't use Let's Encrypt on a my.lan domain name, because there's no way to create the public records required to validate it.
Re:Build a tiny certificate authority for your homelab by Hamuko on Thursday December 24, 2020 @07:36AM (#25526968)
My go-to way is having a public-facing domain with Let's Encrypt certs and the public-facing domain just CNAMEs to my internal domains. Public-facing domains are not luckily not that expensive and I didn't even go for the cheapest option (mine's about 10€/year).
Re:Build a tiny certificate authority for your homelab by vxNsr on Wednesday December 23, 2020 @10:50PM (#25524882)
I was looking into something like for my homelab but for a cert noob I got lost somewhere between trying to use intra.mydomain.com and not screwing up my public address

Can you recommend a good book or blog series that covers this topic in depth?

Re:Build a tiny certificate authority for your homelab by notpiika on Wednesday December 23, 2020 @07:22PM (#25523881)
How would one set this up? Why is DNS validation needed?
Re:Build a tiny certificate authority for your homelab by jrockway on Thursday December 24, 2020 @03:10AM (#25525862)
Those are simply the rules. You can do ACME with an HTTP challenge or a DNS challenge. The HTTP challenge is adequate for proving that you control x.example.com, but serving a website on x.example.com doesn't prove that you own y.example.com. But, being able to create example.com DNS records does, so that is what's required to get a wildcard certificate.

I imagine you are confused because the proposal above sounds like "just get *.example.com, then copy that cert to everything that will ever serve traffic for example.com", which doesn't sound like a great idea to me.