summaryrefslogtreecommitdiffstats
path: root/distrib/makekeystore.cmd
diff options
context:
space:
mode:
Diffstat (limited to 'distrib/makekeystore.cmd')
-rw-r--r--distrib/makekeystore.cmd6
1 files changed, 5 insertions, 1 deletions
diff --git a/distrib/makekeystore.cmd b/distrib/makekeystore.cmd
index 2f10f24d..b1413801 100644
--- a/distrib/makekeystore.cmd
+++ b/distrib/makekeystore.cmd
@@ -1,2 +1,6 @@
+@REM --------------------------------------------------------------------------
+@REM Set HOSTNAME to the server's hostname
+@REM --------------------------------------------------------------------------
+@SET HOSTNAME=localhost
@del keystore
-@java -cp gitblit.jar;"%CD%\ext\*" com.gitblit.MakeCertificate --alias localhost --subject "CN=localhost, OU=Gitblit, O=Gitblit, L=Some Town, ST=Some State, C=US"
+@java -cp gitblit.jar;"%CD%\ext\*" com.gitblit.MakeCertificate --hostname %HOSTNAME% --subject "CN=%HOSTNAME%, OU=Gitblit, O=Gitblit, L=Some Town, ST=Some State, C=US"