Unable to deploy WAR containing Bouncy Castle on JBoss EAP 5.0

Solution Verified - Updated -

Issue

We are upgrading from JBoss EAP 4.3 to 5.0, basically the same ear file is working in 4.3 but having the following exception in 5.0.
We included the bouncy castle jar in our ear lib/.

It looks like there is a bug on the JBoss Server. https://jira.primekey.se/browse/ECA-1113

java.io.IOException: error constructing MAC: java.security.NoSuchProviderException: JCE cannot authenticate the provider BC
     at org.bouncycastle.jce.provider.JDKPKCS12KeyStore.engineLoad(Unknown Source)
     at java.security.KeyStore.load(KeyStore.java:1185)
     ...
  • Getting UnrecoverableKeyException: no match when Reading Key from Keystore when using Bouncy Castle.

Environment

  • JBoss Enterprise Application Platform (EAP) 5.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content