From dbba5fd0f644e5b36ec92bedf1ddf28ea04c601b Mon Sep 17 00:00:00 2001 From: Thomas <> Date: Mon, 24 Jun 2024 10:50:25 +0200 Subject: fix(moa): broken certificate loader from URL --- pdf-as-moa/src/main/java/at/gv/egiz/pdfas/moa/MOAConnector.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pdf-as-moa/src/main/java') diff --git a/pdf-as-moa/src/main/java/at/gv/egiz/pdfas/moa/MOAConnector.java b/pdf-as-moa/src/main/java/at/gv/egiz/pdfas/moa/MOAConnector.java index df155006..8c07875a 100644 --- a/pdf-as-moa/src/main/java/at/gv/egiz/pdfas/moa/MOAConnector.java +++ b/pdf-as-moa/src/main/java/at/gv/egiz/pdfas/moa/MOAConnector.java @@ -133,7 +133,7 @@ public class MOAConnector implements ISignatureConnector, try { URL certificateURL = new URL(certificateValue); is = certificateURL.openStream(); - this.certificate = new X509Certificate(); + this.certificate = new X509Certificate(is); } catch (MalformedURLException e) { logger.error(certificateValue + " is not a valid url but starts with http!"); -- cgit v1.2.3