A simle shell script so that one can start sbt in debug mode, with the correct parameters for the keys, and with easy to set ssl options webid
authorHenry Story <henry.story@bblfish.net>
Fri, 21 Oct 2011 16:27:37 +0200
branchwebid
changeset 91 37b27728b071
parent 90 35f36ee52d0b
child 92 e1ff5771610f
A simle shell script so that one can start sbt in debug mode, with the correct parameters for the keys, and with easy to set ssl options
bin/rwsbt
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/bin/rwsbt	Fri Oct 21 16:27:37 2011 +0200
@@ -0,0 +1,25 @@
+#!/bin/bash 
+
+KS=/Volumes/Dev/Programming/w3.org/hg/read-write-web/keys/KEYSTORE.jks
+while [ $# -gt 0 ] 
+do 
+ case $1 in 
+  -d) PROPS="$PROPS -Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5005"
+   ;; 
+  -n) PROPS="$PROPS -Dnetty.ssl.keyStoreType=JKS -Dnetty.ssl.keyStore=$KS -Dnetty.ssl.keyStorePassword=secret" 
+   ;;
+  -j) PROPS="$PROPS -Djetty.ssl.keyStoreType=JKS -Djetty.ssl.keyStore=$KS -Djetty.ssl.keyStorePassword=secret"
+   ;;
+  -sslUnsafe) PROPS="$PROPS -Dsun.security.ssl.allowUnsafeRenegotiation=true"
+   ;; # see: http://download.oracle.com/javase/7/docs/technotes/guides/security/jsse/JSSERefGuide.html#workarounds
+  -sslLegacy) PROPS="$PROPS -Dsun.security.ssl.allowLegacyHelloMessages=true"
+   ;;
+  *) echo the arguments to use are -d
+   ;;
+  esac
+  shift 1
+ done
+
+
+export SBT_PROPS=$PROPS
+xsbt