eclipse-vertx / eclipse-vertx/vert.x

Handling SSLHandshakeException with ip information on vertx

Open
#4,298 1 comment 0 reactions 0 assignees View on GitHub
enhancement
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.