|
Home > Archive > Apache Directory Project > September 2005 > [mina] Problems with the SSLFilter
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
[mina] Problems with the SSLFilter
|
|
| Emir Rodriguez 2005-09-26, 5:45 pm |
| Hello,
I'm new using the SSL with Mina, I'm trying to make a
simple program that can connect to the Echo server
that comes with the project, but it never can write
the message over the network.
- I enable the flag in the Main class of the Echo
Server example.
- I'm using the 0.9 SNAPSHOT version of MINA.
- And this is the simple code that i'm using to
connect to the server.
public static void main(String[] args) throws
Exception {
// Create TCP/IP connector.
SocketConnector connector = new SocketConnector();
try {
connector.getFilterChain().addLast("sslFilterClient",
new
SSLFilter(BogusSSLContextFactory.getInstance(false)));
ConnectFuture future = connector.connect(new
InetSocketAddress("10.0.50.199", 8080), new
NetCatProtocolHandler());
future.join();
if (!future.isConnected())
System.out.println("No se conecto");
} catch (IOException e) {
e.printStackTrace();
} catch (Exception e) {
e.printStackTrace();
}
}
I dont know what happend ? i'm making some wrong. !!!
P
________________________________________
___________________
Do You Yahoo!?
La mejor conexión a Internet y <b >2GB</b> extra a tu correo por $100 al mes. http://net.yahoo.com.mx
| |
| Emir Rodriguez 2005-09-26, 8:45 pm |
| I make a mistake, because i dont set the property
setUseClientMode (true) in the SSLFilter.
I'm sorry to make loss your time with this question.
--- Emir Rodriguez <emirrodriguex2-/E1597aS9LQGXtTpemXPTA@public.gmane.org>
escribió:
> Hello,
> I'm new using the SSL with Mina, I'm trying to make
> a
> simple program that can connect to the Echo server
> that comes with the project, but it never can write
> the message over the network.
> - I enable the flag in the Main class of the Echo
> Server example.
> - I'm using the 0.9 SNAPSHOT version of MINA.
> - And this is the simple code that i'm using to
> connect to the server.
>
> public static void main(String[] args) throws
> Exception {
> // Create TCP/IP connector.
> SocketConnector connector = new
> SocketConnector();
> try {
>
>
connector.getFilterChain().addLast("sslFilterClient",
> new
>
SSLFilter(BogusSSLContextFactory.getInstance(false)));
>
> ConnectFuture future = connector.connect(new
> InetSocketAddress("10.0.50.199", 8080), new
> NetCatProtocolHandler());
>
> future.join();
> if (!future.isConnected())
> System.out.println("No se conecto");
> } catch (IOException e) {
> e.printStackTrace();
> } catch (Exception e) {
> e.printStackTrace();
> }
> }
>
> I dont know what happend ? i'm making some wrong.
> !!!
> P
>
>
>
>
>
>
________________________________________
___________________
>
> Do You Yahoo!?
> La mejor conexión a Internet y <b >2GB</b> extra a
> tu correo por $100 al mes. http://net.yahoo.com.mx
>
>
________________________________________
___________________
Do You Yahoo!?
La mejor conexión a Internet y <b >2GB</b> extra a tu correo por $100 al mes. http://net.yahoo.com.mx
| |
| Trustin Lee 2005-09-26, 8:45 pm |
| No problem. Please ask questions whenever you're stuck with MINA!
Trustin
2005/9/27, Emir Rodriguez <emirrodriguex2-/E1597aS9LQGXtTpemXPTA@public.gmane.org>:
>
> I make a mistake, because i dont set the property
> setUseClientMode (true) in the SSLFilter.
> I'm sorry to make loss your time with this question.
>
> --- Emir Rodriguez <emirrodriguex2-/E1597aS9LQGXtTpemXPTA@public.gmane.org>
> escribió:
>
> connector.getFilterChain().addLast("sslFilterClient",
> SSLFilter(BogusSSLContextFactory.getInstance(false)));
> ________________________________________
___________________
>
>
>
>
>
>
> ________________________________________
___________________
> Do You Yahoo!?
> La mejor conexión a Internet y <b >2GB</b> extra a tu correo por $100 al
> mes. http://net.yahoo.com.mx
>
>
--
what we call human nature is actually human habit
--
http://gleamynode.net/
|
|
|
|
|