I am running an application (web service) in Tomcat with TLS enabled (with certificates for both the client and the server).
I want my application to be able to send a control message (logging) when a TLS handshake fails. For example, I want to log in when:
- client certificate has expired
- client certificate is unknown (not in the server trust store)
- any other handshake failure
Is there an event that I can catch and handle to do this?
My application is based on web services and runs on tomcat. Tomcat handles all layers of the network and TLS, and the application does not know about it.
Since I myself do not open the socket, where can I catch this exception?
security ssl tomcat ws-security
Yonatan maman
source share