问题原文
原帖链接 · Glen Fletcher · CC BY-SA 4.0
Say I own the domain example.com and want to setup multiple websites as sub domains on this domain, but these websites also use several special endpoints as further subdomains. Can I put them all on 1 SAN + wildcard SSL certificate, and what providers might support creation of said certificate?
I.e., I would like to protect
example.com
siteXXX.example.com (where siteXXX refers to the sub sites token)
www.example.com
api.example.com
mail.example.com
www.siteXXX.example.com
api.siteXXX.example.com
mail.siteXXX.example.com
I was thinking I'd need something that looks like
example.com
*.example.com (covers siteXXX, api, www, mail)
www.*.example.com (covers www.siteXXX)
api.*.example.com (covers api.siteXXX)
mail.*.example.com (covers mail.siteXXX)
Does the standard even allow this? I'm not sure because I can only find example with the wildcard component as the lowest level sub domain, not a mid level sub domain.
已采纳解答
原帖链接 · Zip · CC BY-SA 3.0
Even if you issue a certificate with those SANs, they would not validate those domains on browsers or any application that follows the best practices for a PKI (read this RFC from the IETF, for example).
You are thinking as a legitimate owner of all the domains covered by that certificate, but what if a browser accepted a certificate for www.*.com?
I own www.zip.com, but that shouldn't make me able to issue a certificate that would validate www.amazon.com too.
摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。
