是否可以拥有带有通配符证书的有效子子域?

发布于 2024-09-06 23:07:58 字数 391 浏览 8 评论 0原文

假设我有以下域:

example.com

我有该域的通配符 SSL 证书。 test.example.com 等子域可以正确验证。但是,当我尝试使用像 demo.test.example.com 这样的域时,我在所有主要浏览器中都会收到一条错误消息:

demo.test.example.com uses an invalid security certificate.

The certificate is only valid for the following names:
  *.example.com , example.com

是否可以对“子子域”使用通配符证书?

Say I have the following domain:

example.com

I have a Wildcard SSL certificate for this domain. Subdomains like test.example.com validate properly. However, when I try to use a domain like demo.test.example.com, I get an error message in all major browsers:

demo.test.example.com uses an invalid security certificate.

The certificate is only valid for the following names:
  *.example.com , example.com

Is it possible to use a wildcard certificate for a "sub-subdomain"?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

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

评论(4

陈独秀 2024-09-13 23:07:58

好吧,你已经证实你不能!原因如下:

来自:http://www.ietf.org/rfc/rfc2818.txt

名称可以包含通配符 *,这被认为是
匹配任何单个域名
组件或组件片段。例如,
*.a.com 匹配 foo.a.com,但不匹配 bar.foo.a.comf*.com 匹配 foo.com
但不是 bar.com

Well, you've already verified that you can't! Here's why:

From: http://www.ietf.org/rfc/rfc2818.txt

Names may contain the wildcard character * which is considered to
match any single domain name
component or component fragment. E.g.,
*.a.com matches foo.a.com but not bar.foo.a.com. f*.com matches foo.com
but not bar.com.

不气馁 2024-09-13 23:07:58

标准不允许通配符在多个级别上工作。但是,您可以将特定的多级子域作为主题备用名称放入通配符证书中,它将起作用。一些证书提供商(如 DigiCert)允许这样做。

The standards don't allow a wildcard to work on multiple levels. However, you can put the specific multilevel subdomain in as a Subject Alternative Name in the wildcard certificate and it will work. Some certificate providers (like DigiCert) allow this.

终弃我 2024-09-13 23:07:58

是的,您可以使用通配符。但它们仅扩展到该级别的子域。

*.example.com 适用于 test.example.com,但不适用于 demo.test.example.com

您必须在证书中指定*.*.example.com。我不确定这是否会继续与 test.example.com 一起使用。

Yes, you can use wildcards. But they only extend to that level of subdomain.

*.example.com works for test.example.com but not for demo.test.example.com.

You would have to specify *.*.example.com in the certificate. I'm not sure this would continue working with test.example.com.

£冰雨忧蓝° 2024-09-13 23:07:58

从技术上讲,您可以在证书中指定以下替代名称,然后它应该可以工作:

example.com
*.example.com
*.*.example.com

我不知道是否有证书颁发机构提供此类证书。

Technically you could specify the following alternative names in the certificate and then it should work:

example.com
*.example.com
*.*.example.com

I don't know if there are certificate authorities that provide such certificates.

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