]> source.dussan.org Git - gitblit.git/commitdiff
Fixed regression on expiration date of CA and SSL certs
authorJames Moger <james.moger@gitblit.com>
Fri, 30 Nov 2012 21:20:24 +0000 (16:20 -0500)
committerJames Moger <james.moger@gitblit.com>
Fri, 30 Nov 2012 21:20:24 +0000 (16:20 -0500)
src/com/gitblit/authority/GitblitAuthority.java

index ed942e58f760e8e60d3d9ec793bc6faea7b79713..d97a8e3938fd27edfdeefb370254cdba10e11629 100644 (file)
@@ -345,6 +345,7 @@ public class GitblitAuthority extends JFrame implements X509Log {
 \r
                X509Metadata metadata = new X509Metadata("localhost", caKeystorePassword);\r
                setMetadataDefaults(metadata);\r
+               metadata.notAfter = new Date(System.currentTimeMillis() + 10*TimeUtils.ONEYEAR);\r
                X509Utils.prepareX509Infrastructure(metadata, folder, this);\r
                return true;\r
        }\r