Hi Parki,

On Nov 10, 2007 12:45 PM, parki <[EMAIL PROTECTED]> wrote:
> I just put together a really basic HTTP server on top of mina, and it works
> great - http://localhost:1234 is serving up a really dumb static page. I'd
> like to get SSL working, to test out https from the browser (we're building
> a hardware device which will talk https to the server I'm implementing on
> mina). So, grabbed the BogusSSLContextFactory and BogusTrustManagerFactory
> (and the two factories) from the echoserver example. So in my code:
>
> SSLFilter sslFilter = new
> SSLFilter(BogusSSLContextFactory.getInstance(true));
> chain.addLast("sslFilter", sslFilter);
>
> Now, when I surf to the server (https://localhost:1234) and exception gets
> thrown.

The cause might be your browser is not accepting the bogus
certificate.  Otherwise, please make sure you added the SslFilter
*before* any other filter.  I actually modified the httpserver example
and it works fine with my browser after adding localhost to the
exception list.

> Programming a simple HTTP server in mina was a breeze - very cool.

Great!  If you find any inconvenience, please let us know.  We have
active community and want to fix all inconveniences and oddities users
encounter.

Cheers,
Trustin
-- 
what we call human nature is actually human habit
--
http://gleamynode.net/
--
PGP Key ID: 0x0255ECA6

Reply via email to