eclipse-vertx / eclipse-vertx/vert.x
Handling SSLHandshakeException with ip information on vertx
- Dominant language
- Java
- Stars
- 14.7k
- Forks
- 2.1k
- Avg merge
- 2d 7h
- Merged PRs (30d)
- 28
Description
Hi i am using vertx mutual authentication mechanism.
Client and server , both of them requires SSL cert to access server.
But i want to log "ip" address of SSLHandshakeException.
also i want to log "ip" address of http socket connections.
I can handle cert requirement with , SSLHandshakeException , i catch
httpServer.exceptionHandler(new Handler() {
@Override
public void handle(Throwable throwable) {
if(throwable instanceof SSLHandshakeException) {
logger.info("Connection failure due invalid certificate");
}
}
});
But i want to catch the ip address of the user like.
httpServer.exceptionHandler(new Handler() {
@Override
public void handle(Throwable throwable, String ipAddress) {
if(throwable instanceof SSLHandshakeException) {
logger.info("Connection failure due invalid certificate {}" , ipAddress );
}
}
});
It would be good feature
Contributor guide
Assessment
This issue has not been assessed yet.