From eadb0ebe5eb0d1e5fcff88e8322f5e3a44d6c93f Mon Sep 17 00:00:00 2001 From: Johan Lundberg Date: Thu, 9 Apr 2015 18:53:06 +0200 Subject: Added Jetty configuration and start command. --- jetty_conf/idp.xml | 10 +++++++ jetty_conf/jetty-https.xml | 66 ++++++++++++++++++++++++++++++++++++++++++++++ jetty_conf/jetty-ssl.xml | 64 ++++++++++++++++++++++++++++++++++++++++++++ jetty_conf/ssl.mod | 34 ++++++++++++++++++++++++ jetty_conf/start.ini | 28 ++++++++++++++++++++ 5 files changed, 202 insertions(+) create mode 100644 jetty_conf/idp.xml create mode 100644 jetty_conf/jetty-https.xml create mode 100644 jetty_conf/jetty-ssl.xml create mode 100644 jetty_conf/ssl.mod create mode 100644 jetty_conf/start.ini (limited to 'jetty_conf') diff --git a/jetty_conf/idp.xml b/jetty_conf/idp.xml new file mode 100644 index 0000000..cdeed1e --- /dev/null +++ b/jetty_conf/idp.xml @@ -0,0 +1,10 @@ + + + + /war/idp.war + + /idp + false + false + true + diff --git a/jetty_conf/jetty-https.xml b/jetty_conf/jetty-https.xml new file mode 100644 index 0000000..8078f9b --- /dev/null +++ b/jetty_conf/jetty-https.xml @@ -0,0 +1,66 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + http/1.1 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/jetty_conf/jetty-ssl.xml b/jetty_conf/jetty-ssl.xml new file mode 100644 index 0000000..b822ae5 --- /dev/null +++ b/jetty_conf/jetty-ssl.xml @@ -0,0 +1,64 @@ + + + + + + + + + + + + + + + + + + false + false + + + SSLv3 + + + + + TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256 + TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384 + TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 + TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 + TLS_RSA_WITH_AES_128_GCM_SHA256 + TLS_RSA_WITH_AES_256_GCM_SHA256 + TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256 + TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA384 + TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA + TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA + TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256 + TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384 + TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA + TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA + TLS_RSA_WITH_AES_128_CBC_SHA256 + TLS_RSA_WITH_AES_256_CBC_SHA384 + TLS_RSA_WITH_AES_128_CBC_SHA + TLS_RSA_WITH_AES_256_CBC_SHA + + + + + + + + + + + + + + + + + + + + diff --git a/jetty_conf/ssl.mod b/jetty_conf/ssl.mod new file mode 100644 index 0000000..77ceb76 --- /dev/null +++ b/jetty_conf/ssl.mod @@ -0,0 +1,34 @@ +# +# SSL Keystore module +# + +[depend] +server + +[xml] +etc/jetty-ssl.xml + +[ini-template] +### SSL Keystore Configuration +# define the port to use for secure redirection +jetty.secure.port=8443 + +## Setup a demonstration keystore and truststore +jetty.keystore=/opt/shibboleth-idp/credentials/idp-browser.p12 + +## Set the demonstration passwords. +## Note that OBF passwords are not secure, just protected from casual observation +## See http://www.eclipse.org/jetty/documentation/current/configuring-security-secure-passwords.html +jetty.keystore.password= + +### Set the client auth behavior +## Set to true if client certificate authentication is required +# jetty.ssl.needClientAuth=true +## Set to true if client certificate authentication is desired +# jetty.ssl.wantClientAuth=true + +## Parameters to control the number and priority of acceptors and selectors +# ssl.selectors=1 +# ssl.acceptors=1 +# ssl.selectorPriorityDelta=0 +# ssl.acceptorPriorityDelta=0 diff --git a/jetty_conf/start.ini b/jetty_conf/start.ini new file mode 100644 index 0000000..460dd32 --- /dev/null +++ b/jetty_conf/start.ini @@ -0,0 +1,28 @@ +# Required Jetty modules +--module=server +--module=deploy +--module=annotations +--module=resources +--module=logging +--module=requestlog +--module=https +--module=ssl +--module=servlets +--module=jsp +--module=jstl +--module=ext +--module=plus + +# Allows setting Java system properties (-Dname=value) +# and JVM flags (-X, -XX) in this file +# NOTE: spawns child Java process +--exec + +# IDP home +-Didp.home=/opt/shibboleth-idp + +# Maximum amount of memory that Jetty may use, at least 512M is recommended +-Xmx512m +# Maximum amount of memory allowed for the JVM permanent generation +-XX:MaxPermSize=128m + -- cgit v1.1