I'm making a secure tls connection with Netty. I use mutual authentication on my connection. The certificate from the client is validated with ocsp.
Validation procedures with Ocsp are done in the same way that I define netty as truststore.
Disconnecting from tcp if client's certificate is revoked or unkown. So far, so good.
I want to print the client's ip to the logs when the certificate is revoked or unkown. I tried a lot of things, but I couldn't.
Can you help me ?
The builder is build in the following way. My ocsp codes are in the WebSocketTrustManagerFactory class:
builder = SslContextBuilder
.forServer(kmf)
.clientAuth(ClientAuth.REQUIRE)
.trustManager(new WebSocketTrustManagerFactory(finalTm));