Fabulous. Thanks Michael. I see it now, it’s all looking pretty = simple again.
A quick one-liner in the javadoc for that class - to explain the moving = of the methods to SslContextFactory - would be enough to make it all = clear.
Again, thanks for the help, and for the quick response. Much = appreciated!
From: jetty-users-bounces@xxxxxxxxxxx [mailto:jetty-users-bounces@xxxxxxxxxxx] On Behalf Of Michael Gorovoy
Sent: Thursday, May 19, 2011 12:28 PM
To: JETTY user mailing list
Subject: Re: [jetty-users] Setting up SSL with Embedded Jetty 7.x
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 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.
On Thu, May 19, 2011 at 12:32 AM, David Parks <davidparks21@xxxxxxxxx> 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?
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
No virus found in this message.
Checked by AVG - www.avg.com
Version: 10.0.1375 / Virus Database: 1500/3646 - Release Date: 05/18/11