Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Tomcat Users »

Re: how to REDIRECT after HTTPS connection failure ?

Bill Barker

2004-01-14

Replies:


"Alain Baucant" <a.baucant@(protected)
news:4003EB7B.8080603@(protected)...
>
> Hello,
>
> my goal:
> to use httpS with CLIENT and server authentication to connect to tomcat
> and
> be able to REDIRECT users who can't identify themselves (can't establish
> the https connection) with their certificate.
>
> If, for any reason (for example: no client certificate) the ssl
> connection can't be established, how can I redirect the user to another
> page.
>

You can't really do this without hacking the Tomcat code. I've been meaning
to add a clientAuth="want" option to the Connector, but haven't gotten
around to it yet.

> I already tried, without succes under httpS, the <error-page>...
> declaration in the web.xml
>
> The problem seems to be: tomcat doesn't see any error (nothing in the
> server log file showing the user attempted to connect). And the server
> doesn't reply to the browser.
>
> On a https connection failure : is there any exception tomcat could
> catch ? Or any other way to redirect the user ?
>
>
> Thanks for your help,
> Alain Baucant.




---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
For additional commands, e-mail: tomcat-user-help@(protected)



©2008 junlu.com - Jax Systems, LLC, U.S.A.