]> WPIA git - gigi.git/blobdiff - doc/scripts/generateKeys.sh
Cleanup doc, add instructions for setting up a local run.
[gigi.git] / doc / scripts / generateKeys.sh
diff --git a/doc/scripts/generateKeys.sh b/doc/scripts/generateKeys.sh
new file mode 100755 (executable)
index 0000000..b5b94fc
--- /dev/null
@@ -0,0 +1,6 @@
+# this script generates a simple self-signed keypair
+
+openssl genrsa -out jetty.key 4096
+openssl req -new -key jetty.key -out jetty.csr -subj "/CN=localhost" -config selfsign.config
+openssl x509 -req -days 365 -in jetty.csr -signkey jetty.key -out jetty.crt
+openssl pkcs12 -inkey jetty.key -in jetty.crt -export -passout pass: -out ../../config/keystore.pkcs12