]> WPIA git - gigi.git/blobdiff - doc/scripts/generateTruststore.sh
Cleanup doc, add instructions for setting up a local run.
[gigi.git] / doc / scripts / generateTruststore.sh
diff --git a/doc/scripts/generateTruststore.sh b/doc/scripts/generateTruststore.sh
new file mode 100644 (file)
index 0000000..6a9e03b
--- /dev/null
@@ -0,0 +1,10 @@
+# this script generates a simple self-signed keypair
+
+wget -N http://www.cacert.org/certs/root.crt
+wget -N http://www.cacert.org/certs/class3.crt
+
+keytool -importcert -keystore ../../config/cacerts.jks -file root.crt -alias root -storepass "changeit"
+keytool -importcert -keystore ../../config/cacerts.jks -file class3.crt -alias class3 -storepass "changeit"
+keytool -importcert -keystore ../../config/cacerts.jks -file jetty.crt -alias own -storepass "changeit"
+
+keytool -list -keystore ../../config/cacerts.jks -storepass "changeit"