通配符证书来自Entrust.
原文链接:https://www.f2er.com/centos/373395.html看起来它应该非常简单,但我无法让它发挥作用.
这是针对在使用我们的域通配符证书之前尚未与其关联的SSL证书的新站点.
我的虚拟主机条目如下:
<VirtualHost xxx.xxx.xx.xx:443> ServerAdmin IT@company.com DocumentRoot /var/www/html/sitename ServerName site.company.com ErrorLog logs/site_log CustomLog logs/site_log common ErrorDocument 404 /customerrors/404.htm SSLEngine On SSLCertificateFile /etc/pki/tls/certs/wildcard.crt SSLCertificateKeyFile /etc/pki/tls/private/wildcard.key SSLCertificateChainFile /etc/pki/tls/certs/chain.crt </VirtualHost>
当我尝试通过SSL访问该站点时,我收到以下错误(非常标准,当它使用自签名证书而不是它应该使用的通配符证书时:
site.company.com uses an invalid security certificate. The certificate is not trusted because it is self-signed. The certificate is only valid for localhost (Error code: sec_error_untrusted_issuer)
我重新启动了apache,这不是问题.