大网数据广告活动
服务器运维问答

SSL wildcard certificate + SAN to match multiple specific subdomains of wildcard section

· 52CE 我爱测

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 certifica…

问题原文

原帖链接 · 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.

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2017-10-14)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 4.0 / CC BY-SA 3.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。