1

我在我的 apache 服务器中安装了 SSL 证书,但我遇到了问题。碰巧当我在手机上打开我的网站时,它会打开许多​​弹出窗口,要求设置一个密码来存储凭据。在 Mac 上,它还会打开一个弹出窗口,要求选择证书。有人有/遇到过这个问题吗?如果我帮助回答,我也在我的服务器上使用 django。

安卓上会发生什么

Mac 上发生了什么

我的 ssl 配置是这样的:

<VirtualHost *:80>
        ServerAdmin blahblah@blah.pt
        ServerName beta.site.pt
        ErrorLog /var/log/apache2/vhost1-error.log

        WSGIDaemonProcess netpecasbeta user=${APACHE_RUN_USER} group=${APACHE_RUN_GROUP} threads=25 python-path=/usr/local/lib/python2.7/site-packages
        WSGIProcessGroup netpecasbeta
        WSGIScriptAlias / /.../wsgi.py
        <Location />
                RewriteEngine on
                RewriteCond %{HTTPS} off
                RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R]
        </Location>
</VirtualHost>


<VirtualHost *:443>
        ServerName media.site.pt
        DocumentRoot /var/www

        ErrorLog /var/log/apache2/vhost1-error.log
        CustomLog /var/log/apache2/vhost1-access.log combined

        SSLEngine On
        SSLCertificateFile /.../netpecas.pt.crt
        SSLCertificateKeyFile /.../netpecas.key
        SSLCertificateChainFile /.../gd_bundle.crt
        SSLVerifyClient optional

        LimitRequestBody 0
        LimitRequestFieldSize 40940000
        LimitXMLRequestBody 0

        <Location />
                SSLRequireSSL On
                SSLVerifyClient optional
                SSLVerifyDepth 1
                SSLOptions +StdEnvVars
        </Location>

</VirtualHost>



<VirtualHost *:443>
        ServerAdmin blabla@bla.pt
        ServerName beta.site.pt
        WSGIProcessGroup netpecasbeta
        WSGIScriptAlias / /partfy/woofparts/Partfy/wsgi.py

        ErrorLog /var/log/apache2/vhost1-error.log
        CustomLog /var/log/apache2/vhost1-access.log combined

        SSLEngine On
        SSLCertificateFile /.../netpecas.pt.crt
        SSLCertificateKeyFile /.../netpecas.key
        SSLCertificateChainFile /.../gd_bundle.crt
        SSLVerifyClient optional

        LimitRequestBody 0
        LimitRequestFieldSize 40940000
        LimitXMLRequestBody 0
        <Location />
                SSLRequireSSL On
                SSLVerifyClient optional
                SSLVerifyDepth 1
                SSLOptions +StdEnvVars
        </Location>
</VirtualHost>
4

1 回答 1

1

将 SSLVerifyClient 从 Optional 更改为 None,如下所示:https ://httpd.apache.org/docs/2.2/mod/mod_ssl.html#sslverifyclient

于 2013-10-05T16:15:33.120 回答