Is two-way authentication possible with Netty?
Yes
Could this be just achievable by adding another SslHandler to the pipefactories of the server and client?
Yes
If this is true, how can I capture the required SslHandler in the ChannelConnected () method to execute SslHandshake?
You need to configure the keystore and trust store correctly during creation SSLContext.
And Is it possible to call a second handshake in the ChannelConected () method, again calling the pipeline?
From memory, client and server authentication is performed in the first handshake.
On the client, install the client’s private key in the keystore and the server’s public key in the trust store.
On the server, install the server’s private key in the keystore and the client’s public key in the trust store.
, ?
, .