Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如果我创建 SSL 证书secure.mydomain.com并创建以下 DNS 记录:
secure.mydomain.com
alias.otherdomain.com CNAME secure.mydomain.com
这表明alias.otherdomain.com,secure.mydomain.com如果我上网,SSL 证书是否有效https://alias.otherdomain.com?
alias.otherdomain.com
https://alias.otherdomain.com
谢谢
不,不会的。浏览器(或其他应用程序)将请求 alias.otherdomain.com 并将此特定名称与提供的证书的内容进行比较。该应用程序对您的 DNS 别名一无所知。
更新:Donal Fellows 提醒我有关多域(包括通配符)证书。一些(但不是全部)CA 提供此类证书,因此如果您购买其中一个,那么您的方案将起作用。但除此之外,我的回答适用。