diff options
author | Trygve Laugstøl <trygvis@inamo.no> | 2012-12-22 00:20:59 +0100 |
---|---|---|
committer | Trygve Laugstøl <trygvis@inamo.no> | 2012-12-22 00:20:59 +0100 |
commit | 012b0864e95e120ea57433ab0e719cc6011c7647 (patch) | |
tree | 6052e299e368bc1021d0bb16f3bd1046538df8db /src/main/java/io/trygvis/esper/testing/Config.java | |
parent | a63ec924e5440b17434ecc91e84d1419ae39ef2a (diff) | |
download | esper-testing-012b0864e95e120ea57433ab0e719cc6011c7647.tar.gz esper-testing-012b0864e95e120ea57433ab0e719cc6011c7647.tar.bz2 esper-testing-012b0864e95e120ea57433ab0e719cc6011c7647.tar.xz esper-testing-012b0864e95e120ea57433ab0e719cc6011c7647.zip |
o Being more relaxed when validating ssl certificates.
Diffstat (limited to 'src/main/java/io/trygvis/esper/testing/Config.java')
-rw-r--r-- | src/main/java/io/trygvis/esper/testing/Config.java | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/main/java/io/trygvis/esper/testing/Config.java b/src/main/java/io/trygvis/esper/testing/Config.java index 225d289..c080a0b 100644 --- a/src/main/java/io/trygvis/esper/testing/Config.java +++ b/src/main/java/io/trygvis/esper/testing/Config.java @@ -59,6 +59,8 @@ public class Config { } public static Config loadFromDisk() throws IOException { + initSystemProperties(); + initLogging(); Properties properties = new Properties(); @@ -74,6 +76,12 @@ public class Config { trimToNull(properties.getProperty("database.password"))); } + private static void initSystemProperties() { + // Java 7 is more strict on checking matching host names or something similar. + // http://docs.oracle.com/javase/7/docs/technotes/guides/security/jsse/JSSERefGuide.html#Customization + System.setProperty("jsse.enableSNIExtension", "false"); + } + private static void initLogging() { LoggerFactory.getILoggerFactory(); // LoggerContext lc = (LoggerContext) LoggerFactory.getILoggerFactory(); |