Apache custom error page (ssl_connection_error)

user203906 asked:

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.

My 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.

View the full question and any other answers on Server Fault.

Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.