证书在staging.mydomain.com上验证失败。

huangapple go评论84阅读模式
英文:

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.comwww.example.com 的证书对于 subdomain.example.comsubsubdomain.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.

huangapple
  • 本文由 发表于 2023年7月18日 01:03:34
  • 转载请务必保留本文链接:https://go.coder-hub.com/76706658.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定