apache 2.4 SSL交叉浏览器(仅适用于chrome)

时间:2018-09-07 08:58:17

标签: apache ssl openssl cross-browser

我想在ssl中工作我的虚拟主机,直到今天以前从来没有问题,但是现在我不明白问题出在哪里。 在chrome中一切正常,但使用Firefox时出现此错误消息

FIREFOX

错误代码:SSL_ERROR_RX_RECORD_TOO_LONG

IE 11

La causa potrebbe essere che il sito utilizza impostazioni di sicurezza TLS已过时或无法使用。在tal caso中,向网站提供证明

而不是其他。

工作!

这是我的配置虚拟主机myhost.ssl.localhost

Define myhost myhost.ssl
Define hostextension localhost
Define DocumentRoot ${xampproot}/htdocs/test
Define certName ${myhost}.${hostextension}

<VirtualHost *:443>
    ServerAdmin test@test.localhost
    ServerName  ${myhost}.${hostextension}
    ServerAlias www.${myhost}.${hostextension} 

    DocumentRoot ${DocumentRoot}

    DirectoryIndex index.localhost.html index.php index.html index.htm
    SSLEngine on
    SSLCertificateFile "conf/ssl.crt/${certName}.crt"
    SSLCertificateKeyFile "conf/ssl.key/${certName}.key"
    RequestHeader set X-Forwarded-Proto "https"

    <Directory />
        Options FollowSymLinks
        AllowOverride All
        Order allow,deny
        Allow from all      
        Require all granted         
    </Directory>

    # Ricordarsi di creare la directory
    ErrorLog  ${xampproot}/logs/${myhost}.${hostextension}.error.log
    CustomLog ${xampproot}/logs/${myhost}.${hostextension}.access.log combined

</VirtualHost>  

经过无数次尝试,我现在不能做!

我创建证书的步骤

  • openssl genrsa -aes256 -out myhost.ssl.localhost.key 2048
  • openssl rsa -in myhost.ssl.localhost.key -out myhost.ssl.localhost.key
  • openssl要求-new -x509 -nodes -sha1 -key myhost.ssl.localhost.key -out myhost.ssl.localhost.crt -days 36500 -config C:\ xampp \ apache \ conf \ openssl.cnf
  • 复制文件到正确的文件夹路径
  • 添加设置OPENSSL_CONF = C:\ xampp \ apache \ conf \ openssl.cnf

如果我在地址栏中使用443(http://myhost.ssl.localhost:443

  • chrome 错误请求400
  • FF 访问被拒绝403
  • IE11 访问被拒绝403

0 个答案:

没有答案
相关问题