Hi Sungwon, On 9/7/07, Sungwon Jung <[EMAIL PROTECTED]> wrote: > Hello. I using MINA 1.1.2. > > first of all, sorry about novice question and thanks guys. > > I'm novice in ssl programming but I want two ports in one server. > so I opened normal socket and ssl socket. like this. > > -- > SocketAcceptorConfig cfg_gui = new SocketAcceptorConfig(); > acceptor.bind( new InetSocketAddress( port_gui ), new > GUISessionHandler(), cfg_gui ); > > SocketAcceptorConfig cfg_ssl = new SocketAcceptorConfig(); > cfg_ssl.getFilterChain().addLast( "ssl", new SSLFilter( > SSLContextFactory.getInstance( IS_SERVER ) ) ); > acceptor.bind( new InetSocketAddress( port_ssl ), new > SupremaSessionHandler(), cfg_ssl ); > -- > > and ssl connected device communication process is, > > server <- device : connect > server -> device : (non-ssl) send certification file > server <- device : (non-ssl) ok ack > server <-> device : (ssl) communication > > can I do that using MINA's SSLFilter? > and do you know about other sslfilter example? (I have MINA ssl echo > server example)
Sure. It's a kind of StartTLS, so you could take a look at the StartTLS example in SSLFilter Javadoc: http://mina.apache.org/report/1.0/apidocs/org/apache/mina/filter/SSLFilter.html HTH, Trustin -- what we call human nature is actually human habit -- http://gleamynode.net/ -- PGP Key ID: 0x0255ECA6