Re:An SSL cert that is valid for any and all domains and all...
by jeroenhd on Friday May 15, 2020 @11:16AM
(#23193112)
Browsers not only accept MitM certificates, they have special exceptions for them. If you import a CA certificate, Chrome and Firefox will ignore certain features (such as certificate transparency requirements) even for domains and IPs that resolve to the routable internet.
The go-to solution for this is to load a certificate authority into the proxy itself and have it generate certificates on the fly.
I think the wildcard rules are more to protect people in case of a certificate authority breach than to protect against MitM. Imagine if DigiNotar would sign a certificate in the form of ⁎.⁎.⁎ instead of just some Google domains and browser would actually accept that!
Re:An SSL cert that is valid for any and all domains and all...
by mike_d on Friday May 15, 2020 @08:03PM
(#23198998)
Yes, the _correct_ way to do it is with a CA certificate. But since CA certificates do not have a CommonName or SAN, you have to have clients that support SNI so you know what host the client is requesting so you can quickly generate and sign a one-off certificate.
The browser restrictions were in place before SNI was really widespread, and you needed funky certificates like the one in the original link because you had no way to predict if someone was trying to access google.com or facebook.com and you risked generating a browser warning if you offered up the wrong one.
You can't wildcard at the root or TLD, and you can't have two wildcard labels in a DNS name.