summaryrefslogtreecommitdiff
path: root/pdf-over-gui
diff options
context:
space:
mode:
authorJakob Heher <jakob.heher@iaik.tugraz.at>2022-06-03 09:39:08 +0200
committerJakob Heher <jakob.heher@iaik.tugraz.at>2022-06-03 09:39:26 +0200
commitb96ba211210ca40988e14aca990e42c1946ad7ef (patch)
tree6a67ad688204f7cef1d2713c73d81433bbd5bfd5 /pdf-over-gui
parentedf712f42ea8ef226303a5e6ab747a7321b9b2ca (diff)
downloadpdf-over-b96ba211210ca40988e14aca990e42c1946ad7ef.tar.gz
pdf-over-b96ba211210ca40988e14aca990e42c1946ad7ef.tar.bz2
pdf-over-b96ba211210ca40988e14aca990e42c1946ad7ef.zip
fix SSL cacerts loading
Diffstat (limited to 'pdf-over-gui')
-rw-r--r--pdf-over-gui/src/main/java/at/asit/pdfover/gui/Main.java4
1 files changed, 4 insertions, 0 deletions
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$