From 7a34b0e3f74448365c19fab8f0457920d8d0f9bb Mon Sep 17 00:00:00 2001 From: Tobias Kellner Date: Thu, 18 Sep 2014 17:48:51 +0200 Subject: Use SHA256 for generated SSL certificate --- BKUWebStart/src/main/java/at/gv/egiz/bku/webstart/TLSServerCA.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/BKUWebStart/src/main/java/at/gv/egiz/bku/webstart/TLSServerCA.java b/BKUWebStart/src/main/java/at/gv/egiz/bku/webstart/TLSServerCA.java index bb81c94b..4b817ae1 100644 --- a/BKUWebStart/src/main/java/at/gv/egiz/bku/webstart/TLSServerCA.java +++ b/BKUWebStart/src/main/java/at/gv/egiz/bku/webstart/TLSServerCA.java @@ -100,7 +100,7 @@ public class TLSServerCA { caCert.setValidNotBefore(date.getTime()); date.add(Calendar.YEAR, CA_VALIDITY_Y); caCert.setValidNotAfter(date.getTime()); - caCert.sign(AlgorithmID.sha1WithRSAEncryption, caKeyPair.getPrivate()); + caCert.sign(AlgorithmID.sha256WithRSAEncryption, caKeyPair.getPrivate()); log.debug("successfully generated MOCCA TLS Server CA certificate " + caCert.getSubjectDN()); } @@ -143,7 +143,7 @@ public class TLSServerCA { date.add(Calendar.YEAR,SERVER_VALIDITY_Y); date.add(Calendar.HOUR_OF_DAY, -1); serverCert.setValidNotAfter(date.getTime()); - serverCert.sign(AlgorithmID.sha1WithRSAEncryption, caKeyPair.getPrivate()); + serverCert.sign(AlgorithmID.sha256WithRSAEncryption, caKeyPair.getPrivate()); log.debug("successfully generated MOCCA TLS Server certificate " + serverCert.getSubjectDN()); caKeyPair = null; -- cgit v1.2.3