diff options
author | Thomas <> | 2021-03-24 11:17:37 +0100 |
---|---|---|
committer | Thomas <> | 2021-03-24 11:17:37 +0100 |
commit | 5150e4414d6db8f87404247249c004530afd80b3 (patch) | |
tree | d7fabbb487faa4245f18a02499cecf00fd53f362 /moaSig/moa-sig-lib/src/main/java/at/gv/egovernment | |
parent | 578ad0d6bc408edf9e6c875156054374f5fd8337 (diff) | |
download | moa-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/moa-sig-lib/src/main/java/at/gv/egovernment')
-rw-r--r-- | moaSig/moa-sig-lib/src/main/java/at/gv/egovernment/moa/spss/server/init/SystemInitializer.java | 7 |
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) { |