David,

You need to create an instance of SslContextFactory and configure it with
your keystore parameters. After that you'll need to pass that instance to
the SslSelectChannelConnector's constructor. Recently modified configuration
file 
jetty-ssl.xml<http://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk/jetty-server/src/main/config/etc/jetty-ssl.xml>shows
how it is done in XmlConfiguration, and could be easily translated
into code. This will be documented in Jetty Wiki as soon as we get a chance.

-Michael


On Thu, May 19, 2011 at 12:32 AM, David Parks <[email protected]>wrote:

> I have an embedded instance of Jetty. I create an SelectChannelConnector to
> listen on port 80, and a WebAppContext to load my single war.
>
> Now I need to add SSL into the mix. Easy enough. The keystore is signed
> sealed and delivered, so to speak. And adding SSL should be easy enough.
>
> I would have guessed that I just add an SslSelectchannelConnector to the
> mix. But all the methods there are deprecated (though not the class, which
> confuses me a bit). The javadocs don't list any reason for the deprecation
> or anywhere else I should direct my focus. The documentation seems to
> reference the deprecated methods of SslSelectChannelConnector, so I'm
> assuming it hasn't been updated.
>
> Can someone give me the entry point here? What should I be creating to add
> SSL into my embedded jetty instance?
>
> Thanks,
> David
>
>
> p.s. I am also updating jetty to the latest minor release and noticed that
> there's no information about which release is the current one on the
> downloads page. I found that info in this mailing list, but most software
> packages list the current, development, and maintenance releases in their
> download page. Having that info on the download page would have saved me 10
> min of digging this morning, so just thought I'd mention it.
>
> _______________________________________________
> jetty-users mailing list
> [email protected]
> https://dev.eclipse.org/mailman/listinfo/jetty-users
>
_______________________________________________
jetty-users mailing list
[email protected]
https://dev.eclipse.org/mailman/listinfo/jetty-users

Reply via email to