On Fri, Nov 29, 2013 at 11:03 PM, verok <[email protected]> wrote:
> Hhi folks > > I'm working with apache mina and I need to add SSL security. I tried to > reply the chat example to my project, but it doesn't work. The client side > doesn't authenticate. The server sends the message with the certificate and > the client receive the certificate, but in the other way the client never > send the certificate. > > > I'am adding the SSLFilter to the acceptor and the connector. In the client > side, I configure the property "setUseClient". If I configure the server > with the property setWantClientAuth, the server doesn't receive the mesage > from client. > > I have modified the createBougusClientSslContext() of BogusSslContextFactory by passing a non-null array of KeyManagers, but there appears to be an issue in SslFilter at the moment, the client is not handling server's request for client's certificate. I have tried using the same BogusSslContextFactory after writing a blocking-io example SSL server and client then two-way authentication worked as expected. I _guess_ SslFilter might be running into this[1] issue, but am not 100% sure right now, still debugging [1] http://stackoverflow.com/questions/9604532/ssl-handshaking-using-self-signed-certs-and-sslengine-jsse > > Doy you have any idea about what is happen? I don't know if you have > another example of SSL, or more documentation about it. > > > Cheers, > > VerĂ³nica Crespo > -- Kiran Ayyagari http://keydap.com
