tags:

views:

28

answers:

1

Hey guys,

I am trying to configure SSL on my Jetty.

I read this: http://docs.codehaus.org/display/JETTY/How+to+configure+SSL and created a key store.

Then, I jumped directly to section 4. But where is this configuration file I should configure Jetty?

I tried to serach for jetty.xml, but there is no such on my computer...

Thanks

A: 

A default configuration file for Jetty and is located at $JETTY_HOME/etc/jetty.xml

If you are using maven's jetty plugin you will need to specify ssl keystore details in your pom.xml file. See this question for details

Sorantis
What we have here is a configuration file. We start server wich reads the pcjetty.xml configuration file and then configures and starts jetty (as part of our Java code)
Yura
I tried adding this: http://wiki.eclipse.org/Jetty/Reference/SSL_Connectors section to pcjetty.xml file but it throws exception on startup. I dont really understant what this section does and it should be configured... Could you pls help?
Yura
I looked for a "step by step" tutorial for "dummies" but nothing is out there...
Yura
if you don't see jetty.xml file in /etc directory, try creating one, perhaps it will solve your problem
Sorantis
I have anotherfile (created by us) pcjetty.xml. This is the configuration file jetty reads from when I load it from code. However, adding the section
Yura
<Call name="addConnector"> <Arg> <New class="org.eclipse.jetty.server.ssl.SslSelectChannelConnector"> <Set name="Port">8443</Set>
Yura
etc... does not help, there are errors. I was looking for a detaled tutorial/explanaition how to configure the jetty.xml (or pcjetty.xml in my case)
Yura