Konstantinos Kostarellis
2012-07-18 022931842214f04f9f4bdb1ba94f2d5feaae44e2
Added shell script equivalents to the cmd versions to generate the keystore
2 files added
12 ■■■■■ changed files
distrib/makekeystore.sh 5 ●●●●● patch | view | raw | blame | history
distrib/makekeystore_jdk.sh 7 ●●●●● patch | view | raw | blame | history
distrib/makekeystore.sh
New file
@@ -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"
distrib/makekeystore_jdk.sh
New file
@@ -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"