Ssl – Apache custom error page (ssl_connection_error)

apache-2.2ssl

How to configure Apache to require client certificate based authentication on a specific direction? (httpd.conf tags)

I've successfully configured Apache to require client certificate based authentication in specific location, but I still wont get it working in specific direction.

I need to do this to make a rewrite rule for custom error page when ssl connection error occures.

Best Answer

You can't create a custom error page for "ssl connection error" because, if this happens, then there is no connection! The browser could not even send an HTTP request for the server to respond to, if SSL/TLS negotiation fails. The browser's built-in message is the only thing you will get. Fortunately, when this happens because of a missing or invalid client certificate, the browser's message will state this.