aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Lenz <thomas.lenz@egiz.gv.at>2015-09-14 16:02:31 +0200
committerThomas Lenz <thomas.lenz@egiz.gv.at>2015-09-14 16:02:31 +0200
commite822a65b487de2891eacc19b717e744a1af0c87d (patch)
tree7ad528396bfc00b58f8cb0ce74b14dd7bb266d8e
parent59ea59a630324123207c55cc1e9ca6498aa002e0 (diff)
downloadmoa-id-spss-e822a65b487de2891eacc19b717e744a1af0c87d.tar.gz
moa-id-spss-e822a65b487de2891eacc19b717e744a1af0c87d.tar.bz2
moa-id-spss-e822a65b487de2891eacc19b717e744a1af0c87d.zip
fix allowed SSL Cipher problem in MOA-ID-Proxy
-rw-r--r--id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/proxy/MOAIDProxyInitializer.java14
-rw-r--r--id/server/proxy/pom.xml2
2 files changed, 14 insertions, 2 deletions
diff --git a/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/proxy/MOAIDProxyInitializer.java b/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/proxy/MOAIDProxyInitializer.java
index 91df96027..6a35b175d 100644
--- a/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/proxy/MOAIDProxyInitializer.java
+++ b/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/proxy/MOAIDProxyInitializer.java
@@ -63,6 +63,7 @@ import at.gv.egovernment.moa.id.util.AxisSecureSocketFactory;
import at.gv.egovernment.moa.id.util.MOAIDMessageProvider;
import at.gv.egovernment.moa.id.util.SSLUtils;
import at.gv.egovernment.moa.logging.Logger;
+import at.gv.egovernment.moa.util.MiscUtil;
/**
* Web application initializer
@@ -82,7 +83,18 @@ public class MOAIDProxyInitializer {
Logger.setHierarchy("moa.id.proxy");
// Restricts TLS cipher suites
- System.setProperty("https.cipherSuites", "SSL_RSA_WITH_RC4_128_SHA,SSL_RSA_WITH_RC4_128_MD5,SSL_RSA_WITH_3DES_EDE_CBC_SHA");
+ if (MiscUtil.isEmpty(System.getProperty("https.cipherSuites")))
+ System.setProperty(
+ "https.cipherSuites",
+ "TLS_DH_anon_WITH_AES_128_CBC_SHA" +
+ ",TLS_DHE_RSA_WITH_AES_128_CBC_SHA" +
+ ",TLS_DHE_DSS_WITH_AES_128_CBC_SHA" +
+ ",TLS_RSA_WITH_AES_128_CBC_SHA" +
+ ",TLS_RSA_WITH_AES_256_CBC_SHA" +
+ ",SSL_DH_anon_WITH_3DES_EDE_CBC_SHA" +
+ ",SSL_RSA_WITH_3DES_EDE_CBC_SHA"
+ );
+// System.setProperty("https.cipherSuites", "SSL_RSA_WITH_RC4_128_SHA,SSL_RSA_WITH_RC4_128_MD5,SSL_RSA_WITH_3DES_EDE_CBC_SHA");
// load some jsse classes so that the integrity of the jars can be verified
// before the iaik jce is installed as the security provider
diff --git a/id/server/proxy/pom.xml b/id/server/proxy/pom.xml
index 3d4d8c74d..111e13949 100644
--- a/id/server/proxy/pom.xml
+++ b/id/server/proxy/pom.xml
@@ -20,7 +20,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>MOA.id.server</groupId>
<artifactId>moa-id-proxy</artifactId>
- <version>2.0.0</version>
+ <version>2.0.1</version>
<packaging>war</packaging>
<name>MOA ID-Proxy WebService</name>