Skip to content

Commit

Permalink
add BC Security Provider to support EC explicit Keys
Browse files Browse the repository at this point in the history
  • Loading branch information
f11h committed Nov 3, 2022
1 parent 89f0bb4 commit 6484fc0
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down

0 comments on commit 6484fc0

Please sign in to comment.