Running with ibm-java-1.8 we get the following Exception:
Caused by: java.lang.NullPointerException at org.bouncycastle.jcajce.provider.asymmetric.rsa.BCRSAPrivateKey.getAlgorithm(BCRSAPrivateKey.java:79) at com.ibm.crypto.provider.bf.supportsParameter(Unknown Source) at javax.crypto.Cipher.a(Unknown Source) at javax.crypto.Cipher.init(Unknown Source) at javax.crypto.Cipher.init(Unknown Source) at org.bouncycastle.operator.jcajce.JceAsymmetricKeyUnwrapper.generateUnwrappedKey(JceAsymmetricKeyUnwrapper.java:109) at org.bouncycastle.cms.jcajce.JceKeyTransRecipient.extractSecretKey(JceKeyTransRecipient.java:208) at org.bouncycastle.cms.jcajce.JceKeyTransEnvelopedRecipient.getRecipientOperator(JceKeyTransEnvelopedRecipient.java:26) at org.bouncycastle.cms.KeyTransRecipientInformation.getRecipientOperator(KeyTransRecipientInformation.java:48) at org.bouncycastle.cms.RecipientInformation.getContentStream(RecipientInformation.java:169) at org.bouncycastle.cms.RecipientInformation.getContent(RecipientInformation.java:150) at org.jboss.resteasy.security.smime.EnvelopedInputImpl.getEntity(EnvelopedInputImpl.java:168) ... 76 more
We didn't have this error in CD19.
Both CD19 and CD20 run with ibm-java-1.8 version 8.0.6.6.
Find attached:
- complete stacktrace (log.txt)
- war file CryptoTest.war to reproduce the issue (copy it to standalone/deployments and POST some encrypted payload to url http://localhost:8080/CryptoTest/smime/encrypted)
The server CryptoTest.war is taken from RESTEasy test org.jboss.resteasy.test.crypto.CryptoTest#testEncryptedInput and the code handling the POST request is the following (method org.jboss.resteasy.test.crypto.resource.CryptoEncryptedResource#post):
@Path("/smime/encrypted") public class CryptoEncryptedResource { @POST public void post(EnvelopedInput<String> input) { String str = input.getEntity(CryptoCertResource.privateKey, CryptoCertResource.cert); Assert.assertEquals("input", str); } }
The code generating the POST can be found in method org.jboss.resteasy.test.crypto.CryptoTest#testEncryptedInput.
- is related to
-
JBEAP-21536 [GSS](7.4.z) WFLY-14698 - Caching of managed beans in WebInjectionContainer can cause memory leaks in distributed JSF applications following session timeout
- Closed
-
JBEAP-21118 List of JIRA resolved in this release of EAP 7.4.0 for RHEL-7
- Closed
-
JBEAP-21119 List of JIRA resolved in this release of EAP 7.4.0 for RHEL-8
- Closed
-
JBEAP-21120 List of JIRA resolved in this release of EAP 7.4.0
- Closed
- relates to
-
JBEAP-21478 (7.4.z) The Bouncy Castle bcmail module is missing the java.se dependency
- Closed
-
WFLY-14688 The Bouncy Castle bcmail module is missing the java.se dependency
- Closed