I would like to use ssl / https as described in
http://docs.codehaus.org/display/JETTY/How+to+configure+SSL
using jetty-maven-plugin, but I don’t know how to configure the plugin. Any hint, example, tutorial, walkthrough ?
Also, I wonder how to carry out Step 3b of the above mentioned tutorial, where manipulation the jetty server is necessary (java -classpath $JETTY_HOME/lib/jetty-util-6.1-SNAPSHOT.jar:$JETTY_HOME/lib/jetty-6.1-SNAPSHOT.jar org.mortbay.jetty.security.PKCS12Import jetty.pkcs12 keystore).
You can use Maven to create a development certificate and use it when starting Jetty. First, configure the keytool-maven-plugin to create a development certificate:
Change the CN as you wish. Then configure the maven-jetty-plugin to use the development certificate:
Run
mvn jetty:runand open https://localhost:8443/context.