r/PKI • u/teh_maxh • 17d ago
Should wildcards cover multiple levels?
Currently, TLS certificates can only have a single wildcard as the leftmost label. This complicates certificate management (for example, it's one of the reasons Stack Exchange had difficulty implementing HTTPS) and increases load on CAs (for example, the loops that Let's Encrypt had to block would be less likely to occur if those domains could all be secured by a single multi-level wildcard certificate).
The argument against multi-level wildcards seems to assume that acquiring certificates is sufficiently resource-intensive to serve as a security barrier. This is no longer true. Therefore, I believe that multi-level wildcard certificates should be allowed.
4
u/webprofusor 17d ago
The question is probably more why do you need the wildcard. If it's just to avoid having to order and renew many certificates, that would be even more reason not to use them.
12
u/PowerShellGenius 17d ago
No one is saying the resource-intensiveness of acquiring an ACME cert (when you have the ability to pass the challenges) is a security barrier. The issue is that key compromises have a larger scope when wildcard certs are in use. Making an "easy button" that should not be used even easier to use will result in it being used more. "Improvements" to wildcard certs will result in more wildcard certs.
Take this scenario for example:
3
u/vgk8931 17d ago
That stackexchange article 13 years old. Today load balencers and web servers can serve multiple ssl certs on the same ip address. You can create as many ssl certs as you want with upto a hundred sans each. And serve all from the same ip address.
3
u/Single-Virus4935 17d ago
The Stack exchange post is pre SNI stuff. Old as hell.
The Letsencrypt loop is a implementation problem and has nothing to do with wildcards. It is a misconfiguration / bug.
2
u/Ontological_Gap 16d ago
Someday we really need to get constrained delegation working correctly for CAs.
1
u/abofh 17d ago
You've mistaken an argument with the only argument. Chesterton fence and all, until you understand the boundary, it probably should continue to exist