diff options
author | Konstantinos Kostarellis <kosta.grails@gmail.com> | 2012-07-18 08:52:30 +0200 |
---|---|---|
committer | Konstantinos Kostarellis <kosta.grails@gmail.com> | 2012-07-18 08:52:30 +0200 |
commit | 022931842214f04f9f4bdb1ba94f2d5feaae44e2 (patch) | |
tree | 8b43e9044fb7debcad560618596b04782119e226 /distrib | |
parent | a01257b8a1ace8e8b13e6a3b25aebb0348610409 (diff) | |
download | gitblit-022931842214f04f9f4bdb1ba94f2d5feaae44e2.tar.gz gitblit-022931842214f04f9f4bdb1ba94f2d5feaae44e2.zip |
Added shell script equivalents to the cmd versions to generate the keystore
Diffstat (limited to 'distrib')
-rw-r--r-- | distrib/makekeystore.sh | 5 | ||||
-rw-r--r-- | distrib/makekeystore_jdk.sh | 7 |
2 files changed, 12 insertions, 0 deletions
diff --git a/distrib/makekeystore.sh b/distrib/makekeystore.sh new file mode 100644 index 00000000..59bba90d --- /dev/null +++ b/distrib/makekeystore.sh @@ -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 index 00000000..97e5dc90 --- /dev/null +++ b/distrib/makekeystore_jdk.sh @@ -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 |