From 12c31ef28e1396f652f6f80f84480c0833182150 Mon Sep 17 00:00:00 2001
From: James Moger <james.moger@gitblit.com>
Date: Wed, 21 Mar 2012 20:01:30 -0400
Subject: [PATCH] Restore the leading hunk of the first line of a fragment

---
 distrib/makekeystore.cmd |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/distrib/makekeystore.cmd b/distrib/makekeystore.cmd
index 34a11b2..b141380 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
-@keytool -keystore keystore -alias localhost -genkey -keyalg RSA -dname "CN=localhost, OU=Git:Blit, O=Git:Blit, L=Some Town, ST=Some State, C=US"
\ No newline at end of file
+@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"

--
Gitblit v1.9.1