diff --git a/src/main/java/eu/europa/ec/dgc/gateway/connector/DgcGatewayConnectorUtils.java b/src/main/java/eu/europa/ec/dgc/gateway/connector/DgcGatewayConnectorUtils.java index 132bf71..7da1edf 100644 --- a/src/main/java/eu/europa/ec/dgc/gateway/connector/DgcGatewayConnectorUtils.java +++ b/src/main/java/eu/europa/ec/dgc/gateway/connector/DgcGatewayConnectorUtils.java @@ -106,7 +106,9 @@ void init() throws KeyStoreException, CertificateEncodingException, IOException public boolean trustListItemSignedByCa(TrustListItemDto certificate, X509CertificateHolder ca) { ContentVerifierProvider verifier; try { - verifier = new JcaContentVerifierProviderBuilder().build(ca); + verifier = new JcaContentVerifierProviderBuilder() + .setProvider(new BouncyCastleProvider()) + .build(ca); } catch (OperatorCreationException | CertificateException e) { log.error("Failed to instantiate JcaContentVerifierProvider from cert. KID: {}, Country: {}", certificate.getKid(), certificate.getCountry());