这是我从SSL检查器获得的错误:
Wrong certificate installed.
The domain name does not match the certificate common name or SAN.
我有一台Nginx机器。这是配置文件的一部分:
server {
listen 80; ## listen for ipv4
listen 443 ssl;
set $myHost "xxxx.com";
set $site "xxxx";
server_name xxxx.com www.xxxx.com local.xxxx.com staging.xxxx.com s.xxxx.com;
#ssl_certificate /var/www/sites/ssl/oldfile.cert;
#ssl_certificate_key /var/www/sites/ssl/oldfile.key;
ssl_certificate /var/www/sites/ssl/122015/newfile.crt;
ssl_certificate_key /var/www/sites/ssl/122015/newfile.key;
root /var/www/sites/xxxx/current/web/;
access_log /var/www/sites/xxxx/current/app/logs/xxxx.com.access.log;
error_log /var/www/sites/xxxx/current/app/logs/xxxx.com.error.log;
...
当我收到密钥文件时,我当然将xxxx.com设置为域名,因为不允许使用www。
我需要在www上使用SSL。谢谢你的帮助!!
M:)
答案 0 :(得分:0)
每个域都需要单独的SSL证书。然后,您需要将每个域的配置拆分为虚拟主机(nginx),并为您希望使用的每个域引用每个单独的SSL证书。