From: James Moger Date: Fri, 30 Nov 2012 21:20:24 +0000 (-0500) Subject: Fixed regression on expiration date of CA and SSL certs X-Git-Tag: v1.2.0~49 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=e377dce8818ecd55bb599a8532376cf55e56381a;p=gitblit.git Fixed regression on expiration date of CA and SSL certs --- diff --git a/src/com/gitblit/authority/GitblitAuthority.java b/src/com/gitblit/authority/GitblitAuthority.java index ed942e58..d97a8e39 100644 --- a/src/com/gitblit/authority/GitblitAuthority.java +++ b/src/com/gitblit/authority/GitblitAuthority.java @@ -345,6 +345,7 @@ public class GitblitAuthority extends JFrame implements X509Log { X509Metadata metadata = new X509Metadata("localhost", caKeystorePassword); setMetadataDefaults(metadata); + metadata.notAfter = new Date(System.currentTimeMillis() + 10*TimeUtils.ONEYEAR); X509Utils.prepareX509Infrastructure(metadata, folder, this); return true; }