Unable to deploy WAR containing Bouncy Castle on JBoss EAP 5.0
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 matchwhen 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 of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
