【问题标题】:ssl apache vhost working only in firefoxssl apache vhost 仅在 Firefox 中工作
【发布时间】:2023-03-04 00:28:01
【问题描述】:

我创建了一个自签名的 ssl vhost 用于测试目的。 这个虚拟主机在 mozilla firefox 上运行良好,但不能在所有其他浏览器中运行。 这是虚拟主机:

ServerAdmin webmaster@localhost
ServerName mysubdomain.domain.tld
ServerAlias mysubdomain.domain.tld
DocumentRoot /my/own/ssl_test/
<Directory />
            Options FollowSymLinks -Indexes
            AllowOverride ALL
    </Directory>
    ErrorLog ${APACHE_LOG_DIR}/error.log
    LogLevel warn
    CustomLog ${APACHE_LOG_DIR}/ssl_access.log combined
    SSLEngine on
    SSLCertificateFile /etc/apache2/ssl/apache.crt
    SSLCertificateKeyFile /etc/apache2/ssl/apache.key

    <FilesMatch "\.(cgi|shtml|phtml|php)$">
            SSLOptions +StdEnvVars
    </FilesMatch>
    <Directory /usr/lib/cgi-bin>
            SSLOptions +StdEnvVars
    </Directory>
    BrowserMatch "MSIE [2-6]" \
            nokeepalive ssl-unclean-shutdown \
            downgrade-1.0 force-response-1.0
    BrowserMatch "MSIE [17-9]" ssl-unclean-shutdown

【问题讨论】:

标签: apache ssl browser virtualhost vhosts


【解决方案1】:

证书没有通用名称。也许这就是 Chrome 不喜欢它的原因。

比较:

$ echo | openssl s_client -connect vds2584.sivit.org:443 2>/dev/null | openssl x509 -noout -text | grep Subject.*CN

到:

$ echo | openssl s_client -connect google.com:443 2>/dev/null | openssl x509 -noout -text | grep Subject.*CN
        Subject: C=US, ST=California, L=Mountain View, O=Google Inc, CN=*.google.com

【讨论】:

    猜你喜欢
    • 2021-01-10
    • 2015-01-25
    • 2016-01-04
    • 2017-04-01
    • 2015-03-12
    • 2013-11-02
    • 1970-01-01
    相关资源
    最近更新 更多