英文:
certificate fails for staging.mydomain.com
问题
我已经将一个现场站点的副本克隆到了一个新的暂存服务器,staging.mydomain.com,但是在新服务器上出现了一个证书错误:
服务器证书不包含与服务器名称匹配的标识
证书是否适用于子域?
此外,证书是否可以在不更改任何文件的情况下使用?
英文:
I've cloned a copy of a live site to a new staging server, staging.mydomain.com, but I'm getting a certificate error on the new server:
server certificate does NOT include an ID which matches the server name
Are certificates valid for subdomains?
Additionally will the certificate work without changes to any of the files?
答案1
得分: 0
证书是否对子域名有效?
这取决于证书。具有主题替代名称为 *.example.com
的通配符证书对于 subdomain.example.com
有效,但对于 subsubdomain.subdomain.example.com
无效。仅具有主题替代名称为 example.com
和 www.example.com
的证书对于 subdomain.example.com
和 subsubdomain.www.example.com
均无效。
英文:
> Are certificates valid for subdomains?
This depends on the certificate. A wildcard certificate with a subject alternative names of *.example.com
is valid for subdomain.example.com
but not for subsubdomain.subdomain.example.com
. A certificate with subject alternative names only for example.com
and www.example.com
is neither valid for subdomain.example.com
nor subsubdomain.www.example.com
.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论