DNS CNAME 上的 SSL 继承

发布于 2024-12-02 19:14:40 字数 298 浏览 1 评论 0原文

如果我为 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技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

静若繁花 2024-12-09 19:14:40

不,不会的。浏览器(或其他应用程序)将请求 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文