diff options
author | James Moger <james.moger@gitblit.com> | 2012-11-23 10:38:38 -0500 |
---|---|---|
committer | James Moger <james.moger@gitblit.com> | 2012-11-23 10:38:38 -0500 |
commit | d8a0f1e6e9d2420be31200cf0554336e84eec843 (patch) | |
tree | 7c7d94756c8d0accbdce55217a58269494440d24 /distrib | |
parent | b423580c552ff2c2d47829b0e1632a77958fec68 (diff) | |
download | gitblit-d8a0f1e6e9d2420be31200cf0554336e84eec843.tar.gz gitblit-d8a0f1e6e9d2420be31200cf0554336e84eec843.zip |
Revised Gitblit GO certificate generation to use new X509 utility functions
Diffstat (limited to 'distrib')
-rw-r--r-- | distrib/authority.conf | 6 | ||||
-rw-r--r-- | distrib/gitblit.properties | 14 | ||||
-rw-r--r-- | distrib/makekeystore.cmd | 2 | ||||
-rw-r--r-- | distrib/makekeystore_jdk.cmd | 4 |
4 files changed, 23 insertions, 3 deletions
diff --git a/distrib/authority.conf b/distrib/authority.conf new file mode 100644 index 00000000..3e62e3c3 --- /dev/null +++ b/distrib/authority.conf @@ -0,0 +1,6 @@ +[new]
+ duration = 365 + organizationalUnit = Gitblit + organization = Gitblit + locality = Gitblit + stateProvince = NY diff --git a/distrib/gitblit.properties b/distrib/gitblit.properties index 1562c513..9daabde4 100644 --- a/distrib/gitblit.properties +++ b/distrib/gitblit.properties @@ -1137,6 +1137,20 @@ server.ajpBindInterface = localhost # RESTART REQUIRED
server.storePassword = gitblit
+# If serving over https (recommended) you might consider requiring clients to
+# authenticate with ssl certificates. If enabled, only https clients with the
+# a valid client certificate will be able to access Gitblit.
+#
+# If disabled, client certificate authentication is optional and will be tried
+# first before falling-back to form authentication or basic authentication.
+#
+# Requiring client certificates to access any of Gitblit may be too extreme,
+# consider this carefully.
+#
+# SINCE 1.2.0
+# RESTART REQUIRED
+server.requireClientCertificates = false
+
# Port for shutdown monitor to listen on.
#
# SINCE 0.5.0
diff --git a/distrib/makekeystore.cmd b/distrib/makekeystore.cmd index b1413801..8a72e03b 100644 --- a/distrib/makekeystore.cmd +++ b/distrib/makekeystore.cmd @@ -2,5 +2,5 @@ @REM Set HOSTNAME to the server's hostname
@REM --------------------------------------------------------------------------
@SET HOSTNAME=localhost
-@del keystore
+@del serverKeyStore.jks
@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"
diff --git a/distrib/makekeystore_jdk.cmd b/distrib/makekeystore_jdk.cmd index d3c9e949..121c6718 100644 --- a/distrib/makekeystore_jdk.cmd +++ b/distrib/makekeystore_jdk.cmd @@ -2,5 +2,5 @@ @REM Set HOSTNAME to the server's hostname
@REM --------------------------------------------------------------------------
@SET HOSTNAME=localhost
-@del 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 +@del serverKeyStore.jks
+@keytool -keystore serverKeyStore.jks -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 |