DNS CNAME 上的 SSL 继承
如果我为 secure.mydomain.com
创建 SSL 证书,并创建以下 DNS 记录:
alias.otherdomain.com CNAME secure.mydomain.com
以便 alias.otherdomain.com
指向 secure.mydomain。 com
,如果我访问 https://alias.otherdomain.com
,SSL 证书是否有效?
谢谢
If I create an SSL Certificate for secure.mydomain.com
and I create the following DNS record:
alias.otherdomain.com CNAME secure.mydomain.com
So that alias.otherdomain.com
points to secure.mydomain.com
, will the SSL certificate be valid if I surf to https://alias.otherdomain.com
?
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
![扫码二维码加入Web技术交流群](/public/img/jiaqun_03.jpg)
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
不,不会的。浏览器(或其他应用程序)将请求 alias.otherdomain.com 并将该特定名称与所提供的证书的内容进行比较。该应用程序对您的 DNS 别名一无所知。
更新:Donal Fellows 提醒我有关多域(包括通配符)证书的信息。一些(但不是全部)CA 提供此类证书,因此如果您购买其中之一,那么您的方案就会起作用。但除此之外我的答案也适用。
No, it won't. The browser (or other application) will request alias.otherdomain.com and will compare this particular name to contents of presented certificate. The application knows nothing about your DNS aliases.
Update: Donal Fellows reminds me about multidomain (including wildcard) certificates. Some (but not all) CAs offer such certificates so if you buy one of those, then your scheme will work. But otherwise my answer applies.