*.mydomain.com 的 SSL 证书不适用于 mydomain.com

rip*_*234 2 ssl openssl ssl-certificate

我已经通过 openssl 为 *.mydomain.com 创建了一个自签名证书,它适用于例如 www.mydomain.com。但是,当我直接在 Chrome 中访问 mydomain.com 时,出现错误 ( You are attempting to reach mydomain.com, but instead you actually reached a server identifying itself as *.mydomain.com)。

应该*。证书也覆盖主域?我该怎么做才能解决?

小智 6

在 SSL 证书中使用主题备用名称来覆盖非子域名 (mydomain.com)。有关示例,请参阅http://therowes.net/~greg/2008/01/08/creating-a-certificate-with-multiple-hostnames/

我不确定为什么 Jan 的回答被否决了,因为它正确地诊断了问题,即使它没有给出修复。