Activate SSL (HTTPS) in jetty configuration using sbt

235 views
Skip to first unread message

Ben

unread,
May 8, 2012, 12:45:35 PM5/8/12
to Lift
Hi everybody.

I just heavily searched the web for any solution for this, but i
didn't manage to find a solution to acitvate SSL in my testing
environment with sbt .

How can I customize the configuration for the jetty server embedded in
the sbt environment?

Thank you for any hint!
Ben

Tim Nelson

unread,
May 8, 2012, 1:22:33 PM5/8/12
to lif...@googlegroups.com
Hi Ben,

I don't have a direct answer for you, but the xsbt-web-plugin wiki [1] has some info on configuring jetty.

Also, if you don't get an answer here I would try the sbt mailing list.

Tim

Diego Medina

unread,
May 8, 2012, 1:48:26 PM5/8/12
to lif...@googlegroups.com
stealing Tim's answer, to enable ssl it may be easier to simply use

configurationFiles in container.Configuration := Seq(file("jetty.xml"))
to specify your own jetty conf file


Regards

Diego
> --
> Lift, the simply functional web framework: http://liftweb.net
> Code: http://github.com/lift
> Discussion: http://groups.google.com/group/liftweb
> Stuck? Help us help you:
> https://www.assembla.com/wiki/show/liftweb/Posting_example_code



--
Diego Medina
Lift/Scala Developer
di...@fmpwizard.com
http://www.fmpwizard.com

Ben

unread,
May 9, 2012, 12:26:33 AM5/9/12
to Lift
Stupid me:

I was still on sbt 0.7. Don't know if you can change jetty
configuration in this version, so I (just) migrated to sbt 0.11. Quite
some work.

> stealing Tim's answer, to enable ssl it may be easier to simply use
>
> configurationFiles in container.Configuration := Seq(file("jetty.xml"))
> to specify your own jetty conf file

If anyone has a similar problem, DON'T FORGET:

customConfiguration in container.Configuration := true


Greetings,
Ben

Ben

unread,
May 9, 2012, 1:47:45 AM5/9/12
to Lift
customConfiguration crashed my automatic deployment.

Therefore I'm using:

ssl in container.Configuration := Some((8443,"PATH/TO/KEYSTORE_FILE",
"PASSWORD", "KEYSTORE_PASSWORD"))

Thanks for your effort!
Ben
Reply all
Reply to author
Forward
0 new messages