Announcement Announcement Module
Collapse
No announcement yet.
Custom SSL certificate error page Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Custom SSL certificate error page

    Hi

    I donīt know this is the proper place to make this question..., any way there is.

    I configured my app to use SSL whit my welcome action, so the user has to use his certificate to authenticate.

    Code:
    <intercept-url pattern="/SecWelcome*" requires-hannel="https"/>		 									
    
    <port-mappings> 
            <port-mapping http="7001" https="7002"/> 		
    </port-mappings>
    Every thing works fine when the user do has a certificate, but in other case a error page is shown. For example, in firefox you get a ssl_error_handshake_failure_alert error.

    Is there any way to show a custom page in this case?

    I tried to use web.xml
    Code:
    <error-page>
        	<error-code>xxx</error-code>    	
        	<location>/pages/comun/error/xxx.jsp</location>
    </error-page>
    but it seems this error has not a valid error-code.

    Merry christmas

  • #2
    How about if you declare a custom authenticationFailureHandler ref?

    I have an example of that at http://krams915.blogspot.com/2010/12...-using_26.html

    Comment


    • #3
      Thanks for your reply

      The problem is that there is not authentication process.
      As far as I know (try and error experience) itīs a two steps process:
      1- The user negociate the certificates with de server
      2- Once you know the certificate is valid, spring check access.

      Besides, if the user uses login/password access the system does redirects to a succesfull/error page.

      I think is a problem of configuration in web.xml, but, frankly, Iīm quite lost

      Thanks again for your time

      Comment

      Working...
      X