]> source.dussan.org Git - gitblit.git/commitdiff
Added shell script equivalents to the cmd versions to generate the keystore 22/head
authorKonstantinos Kostarellis <kosta.grails@gmail.com>
Wed, 18 Jul 2012 06:52:30 +0000 (08:52 +0200)
committerKonstantinos Kostarellis <kosta.grails@gmail.com>
Wed, 18 Jul 2012 06:52:30 +0000 (08:52 +0200)
distrib/makekeystore.sh [new file with mode: 0644]
distrib/makekeystore_jdk.sh [new file with mode: 0644]

diff --git a/distrib/makekeystore.sh b/distrib/makekeystore.sh
new file mode 100644 (file)
index 0000000..59bba90
--- /dev/null
@@ -0,0 +1,5 @@
+#!/bin/sh
+# SET HOSTNAME to the server's hostname
+HOSTNAME=localhost
+rm keystore
+java -cp gitblit.jar:$PWD/ext/* com.gitblit.MakeCertificate --hostname $HOSTNAME --subject "CN=$HOSTNAME, OU=Gitblit, O=Gitblit, L=Some Town, ST=Some State, C=US"
diff --git a/distrib/makekeystore_jdk.sh b/distrib/makekeystore_jdk.sh
new file mode 100644 (file)
index 0000000..97e5dc9
--- /dev/null
@@ -0,0 +1,7 @@
+#!/bin/sh
+# --------------------------------------------------------------------------
+# SET HOSTNAME to the server's hostname
+# --------------------------------------------------------------------------
+HOSTNAME=localhost
+rm keystore
+keytool -keystore keystore -alias $HOSTNAME -genkey -keyalg RSA -dname "CN=$HOSTNAME, OU=Gitblit, O=Gitblit, L=Some Town, ST=Some State, C=US"
\ No newline at end of file