aboutsummaryrefslogtreecommitdiff
path: root/moaSig/moa-sig-lib/src
diff options
context:
space:
mode:
Diffstat (limited to 'moaSig/moa-sig-lib/src')
-rw-r--r--moaSig/moa-sig-lib/src/main/java/at/gv/egovernment/moa/spss/server/init/SystemInitializer.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/moaSig/moa-sig-lib/src/main/java/at/gv/egovernment/moa/spss/server/init/SystemInitializer.java b/moaSig/moa-sig-lib/src/main/java/at/gv/egovernment/moa/spss/server/init/SystemInitializer.java
index a1bb145..28231e6 100644
--- a/moaSig/moa-sig-lib/src/main/java/at/gv/egovernment/moa/spss/server/init/SystemInitializer.java
+++ b/moaSig/moa-sig-lib/src/main/java/at/gv/egovernment/moa/spss/server/init/SystemInitializer.java
@@ -48,6 +48,7 @@ import at.gv.egovernment.moaspss.logging.LoggingContextManager;
import at.gv.egovernment.moaspss.util.Constants;
import at.gv.egovernment.moaspss.util.DOMUtils;
import iaik.asn1.ObjectID;
+import iaik.pkcs.pkcs12.PKCS12KeyStore;
import iaik.server.ConfigurationData;
import iaik.utils.RFC2253NameParser;
@@ -171,6 +172,12 @@ public class SystemInitializer {
iaikConfiguration = new IaikConfigurator().configure(config);
runInitializer(config);
+
+ // set Fallback mode in IAIK KeyStore implementation to 'true' to fix problems default behavior of JVM
+ PKCS12KeyStore.setUseJKSFallBack(true);
+ Logger.info("Set fallback mode in: " + PKCS12KeyStore.class.getSimpleName()
+ + " to :" + PKCS12KeyStore.getUseJKSFallBack());
+
Logger.info(new LogMsg(msg.getMessage("init.01", null)));
} catch (final MOAException e) {