I have implemented a webservice having client-auth authentication for a tomcat server. Whenever an unauthorised client accesses the server, the tomcat throws SSLHandshakeException to the client. But i want to handle those exceptions as Http error codes or some kind of messages. How can i handle those exceptions? Because my webservice might be accessed by .NET or any other clients.
I have implemented a webservice having client-auth authentication for a tomcat server. Whenever an
Share
You can’t. The SSL handshake occurs before any HTTP requests take place so there is no way to return an HTTP response if the SSL handshake fails.