-
Notifications
You must be signed in to change notification settings - Fork 0
/
sense-rm.sh
executable file
·38 lines (33 loc) · 1.17 KB
/
sense-rm.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#!/bin/bash
# resolve links - $0 may be a softlink
PRG="$0"
while [ -h "$PRG" ]; do
ls=`ls -ld "$PRG"`
link=`expr "$ls" : '.*-> \(.*\)$'`
if expr "$link" : '/.*' > /dev/null; then
PRG="$link"
else
PRG=`dirname "$PRG"`/"$link"
fi
done
PRGDIR=`dirname "$PRG"`
BASEDIR=`cd "$PRGDIR" >/dev/null; pwd`
KEYSTORE=/Users/hacksaw/x509/keystore.p12
TRUSTSTORE=/Users/hacksaw/x509/truststore.p12
PASSWORD="changeit"
STORETYPE="PKCS12"
java -Xmx1536m -Djava.net.preferIPv4Stack=true \
-Dapp.home="$BASEDIR" \
-Dbasedir="$BASEDIR" \
-Dcom.sun.xml.bind.v2.runtime.JAXBContextImpl.fastBoot=true \
-Djavax.net.ssl.keyStore=$KEYSTORE \
-Djavax.net.ssl.keyStorePassword=$PASSWORD \
-Djavax.net.ssl.keyStoreType=$STORETYPE \
-Djavax.net.ssl.trustStore=$TRUSTSTORE \
-Djavax.net.ssl.trustStorePassword=$PASSWORD \
-Djavax.net.ssl.trustStoreType=$STORETYPE \
-Dlogback.configurationFile=config/logback.xml \
-jar target/nsi-dds-client-1.0-SNAPSHOT-Main.jar \
-server https://sense-rm.es.net:8000/dds \
-shell $*
#-Djavax.net.debug=ssl:handshake:verbose:keymanager:trustmanager -Djava.security.debug=access:stack:certpath \