我已使用以下命令将Apache2配置为使用客户端证书AUthentication:
SSLVerifyClient require它的工作,我可以访问我的网站与一个有效的客户证书。然而,当用户在没有安装ClientCertificate的情况下连接到它时,他们会从浏览器中得到一个令人困惑的错误。
(Chrome显示“ERR_ssl_PROTOCOL_error”,Firefox显示“ssl_error_handshake_failure_alert”,Internet explorer仅显示“Internet Explorer无法显示网页”。
当用户尝试在没有有效客户端证书的情况下访问时,我想向用户显示一个自定义ErrorDocument。
问题是站点没有返回http错误代码,而是中止了请求,所以我不能使用。
ssl_error_log的最后一部分是:
[Wed Aug 31 11:11:57 2011] [info] [client 192.168.2.156] SSL library error 1 in handshake (server url:443)
[Wed Aug 31 11:11:57 2011] [info] SSL Library Error: 336105671 error:140890C7:SSL routines:SSL3_GET_CLIENT_CERTIFICATE:peer did not return a certificate No CAs known to server for verification?
[Wed Aug 31 11:11:57 2011] [info] [client 192.168.2.156] Connection closed to child 1 with abortive shutdown (server url:443)我该如何返回一个有效的ErrorDocument?
发布于 2012-04-24 20:02:50
SSLVerifyClient optional
RewriteCond %{SSL:SSL_CLIENT_VERIFY} !=SUCCESS
RewriteRule ^/ http://localhost:8080/missing_cert.html [P,L]https://stackoverflow.com/questions/7255299
复制相似问题