summaryrefslogtreecommitdiff
path: root/BKUWebStart/src/main/java/at/gv
diff options
context:
space:
mode:
authorTobias Kellner <tobias.kellner@iaik.tugraz.at>2014-09-18 17:48:51 +0200
committerTobias Kellner <tobias.kellner@iaik.tugraz.at>2014-09-18 17:48:51 +0200
commit7a34b0e3f74448365c19fab8f0457920d8d0f9bb (patch)
tree3d11f98b18c9cec189d507301e5bdda447112947 /BKUWebStart/src/main/java/at/gv
parent4ec9635fd7d309be96c710ef1aad2f435e59dcff (diff)
downloadmocca-7a34b0e3f74448365c19fab8f0457920d8d0f9bb.tar.gz
mocca-7a34b0e3f74448365c19fab8f0457920d8d0f9bb.tar.bz2
mocca-7a34b0e3f74448365c19fab8f0457920d8d0f9bb.zip
Use SHA256 for generated SSL certificate
Diffstat (limited to 'BKUWebStart/src/main/java/at/gv')
-rw-r--r--BKUWebStart/src/main/java/at/gv/egiz/bku/webstart/TLSServerCA.java4
1 files 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;