From b96ba211210ca40988e14aca990e42c1946ad7ef Mon Sep 17 00:00:00 2001 From: Jakob Heher Date: Fri, 3 Jun 2022 09:39:08 +0200 Subject: fix SSL cacerts loading --- pdf-over-gui/src/main/java/at/asit/pdfover/gui/Main.java | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'pdf-over-gui/src/main/java') diff --git a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/Main.java b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/Main.java index c4832f7b..607120a7 100644 --- a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/Main.java +++ b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/Main.java @@ -26,6 +26,7 @@ import org.slf4j.Logger; import org.slf4j.LoggerFactory; import at.asit.pdfover.gui.workflow.StateMachineImpl; +import iaik.security.provider.IAIK; /** * Main entry point for production @@ -54,6 +55,9 @@ public class Main { // force loading the IAIK JCE IAIK.addAsProvider(); + // force keystore type (Adoptium JRE 17 still ships with JKS) + System.setProperty("javax.net.ssl.trustStoreType", "jks"); + StateMachineImpl stateMachine = new StateMachineImpl(args); log.debug("Starting stateMachine ..."); //$NON-NLS-1$ -- cgit v1.2.3