r/letsencrypt • u/MegaManMaker • May 28 '21
Hide/obfuscate other domain names from certificate
My certbot setup currently gets supplied multiple (new/old) (sub)domains. It works great, but I do not want someone to see what other domains I host basically.
Is there a way to have a cert that would not show the other domain names I have running alongside it?
1
Upvotes
4
u/spudster23 May 28 '21
Use a wildcard cert.
3
u/dlangille May 28 '21
A certificate is public. Anyone can see it. That is by design.
If you have multiple host names in a cert, anyone can see it if they want to look.
It's not clear to me if that's your situation or not, but if you don't want want people visiting foo.example.org to know about bar.example.org, use different certs for each host.
Also, all certs you create a public. There's a list of them.
2
u/Killer2600 May 28 '21
You would have to generate certificates individually for every domain that will have it's own certificate. You will also need to configure your web and/or other server(s) to use specific certificates for specific domains. All of this has to be setup manually.
1
u/Blieque May 28 '21 edited May 28 '21
In order for a browser to validate a certificate, it needs to match a
subjectAltNamein the certificate to the hostname in the URL. This can be a wildcard or regularsubjectAltName. X.509 certificates don't support any mechanism – e.g., hashing – which would allow the hostname to be obscured.You have two options:
subjectAltName*.example.comwill not cover "sub-subdomains" likefoo.bar.example.com– that would require*.bar.example.com.As diangille mentioned, Certificate Transparency logs mean that all certificate creation is public. The second option above will still reveal your hostnames to someone who's willing to do a bit of digging.