Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jetty-users] Propagating SSL errors to the application

That would be a bit tough...

As you need to establish a proper SSL connection in order to even talk HTTP.
If the SSL connection fails, there's no HTTP exchange, hence no way to respond.

--
Joakim Erdfelt <joakim@xxxxxxxxxxx>

On Thu, Mar 14, 2013 at 9:49 AM, Maarten Koopmans <maarten@xxxxxxxxxxxx> wrote:
Hi,

I have a SSL-protected application (client certificates) in Jetty 8, where I do some custom logic with client certificates from the application layer.

Is there a way to propagate and catch the errors like SSL handshakes etc. to the application/war, so I can provide user-friendly feedback to my end users?

A typical error case:
1- REST client tries to connect with client certificate
2- SSL error, say we don't have the CA in our trust chain
3- blurb follows

I'd like to catch 2 so I can "massage" 3. Is there a way to write a filter/handler/whatnot/... to do this.

Any thoughts, pointers our feedback greatly appreciated!

Thanks,

Maarten



_______________________________________________
jetty-users mailing list
jetty-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/jetty-users



Back to the top