aboutsummaryrefslogtreecommitdiff
path: root/moaSig
diff options
context:
space:
mode:
authorThomas <>2021-03-24 11:17:37 +0100
committerThomas <>2021-03-24 11:17:37 +0100
commit5150e4414d6db8f87404247249c004530afd80b3 (patch)
treed7fabbb487faa4245f18a02499cecf00fd53f362 /moaSig
parent578ad0d6bc408edf9e6c875156054374f5fd8337 (diff)
downloadmoa-sig-5150e4414d6db8f87404247249c004530afd80b3.tar.gz
moa-sig-5150e4414d6db8f87404247249c004530afd80b3.tar.bz2
moa-sig-5150e4414d6db8f87404247249c004530afd80b3.zip
activate fall-back mode in IAIK-JCE software key-store implementation
Diffstat (limited to 'moaSig')
-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) {