You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@mina.apache.org by Eilon Yardeni <ey...@gmail.com> on 2012/03/28 19:11:50 UTC

Client connection with TLS

Hello,

I am trying to connect my XMPP client to Vysper running in embeded mode
using the bogus TLS certificate that
comes with the code.

Problem is the he client fails to start TLS.

Client set up filter like this:

final SSLContext c = SSLContext.getInstance("SSL");

c.init(null, null, new java.security.SecureRandom());


final SslFilter filter = new SslFilter(c);

filter.setUseClientMode(true);


ioSession.getFilterChain().addFirst("sslFilter", filter);


The same client works well with gtalk xmpp server, so it looks like it is
something with the server side setup.


Any help is appreciated.


Thanks,

Eilon

Re: Client connection with TLS

Posted by David Latorre <dv...@gmail.com>.
Did you import Vysper certificate in your keystore?  Gtalk server is
probably using a trusted certificate...



2012/3/28 Eilon Yardeni <ey...@gmail.com>

> Hello,
>
> I am trying to connect my XMPP client to Vysper running in embeded mode
> using the bogus TLS certificate that
> comes with the code.
>
> Problem is the he client fails to start TLS.
>
> Client set up filter like this:
>
> final SSLContext c = SSLContext.getInstance("SSL");
>
> c.init(null, null, new java.security.SecureRandom());
>
>
> final SslFilter filter = new SslFilter(c);
>
> filter.setUseClientMode(true);
>
>
> ioSession.getFilterChain().addFirst("sslFilter", filter);
>
>
> The same client works well with gtalk xmpp server, so it looks like it is
> something with the server side setup.
>
>
> Any help is appreciated.
>
>
> Thanks,
>
> Eilon
>