-
Task
-
Resolution: Done
-
Major
-
None
-
None
With openjdk-1.8.0.292, LdapTestCase#testLdapKeyStoreCopyRemoveAlias has started failing with the following exception:
java.security.KeyStoreException: Key protection algorithm not found: java.security.UnrecoverableKeyException: Encrypt Private Key failed: unrecognized algorithm name: PBEWithSHA1AndDESede at java.security.KeyStore.setKeyEntry(KeyStore.java:1140) at org.wildfly.security.keystore.LdapKeyStoreSpi.engineSetKeyEntry(LdapKeyStoreSpi.java:318) at java.security.KeyStore.setKeyEntry(KeyStore.java:1140) at org.wildfly.extension.elytron.LdapTestCase.testLdapKeyStoreCopyRemoveAlias(LdapTestCase.java:370) Caused by: java.security.UnrecoverableKeyException: Encrypt Private Key failed: unrecognized algorithm name: PBEWithSHA1AndDESede ... 4 more Caused by: java.security.NoSuchAlgorithmException: unrecognized algorithm name: PBEWithSHA1AndDESede ... 4 more
This a known JDK 8 issue that will be fixed in version 301:
https://bugs.openjdk.java.net/browse/JDK-8258401
As mentioned in the above bug report, they will be updating the default encryption algorithm that's used with PKCS12 to a stronger algorithm so PBEWithSHA1AndDESede will no longer be used by default.
For now, we'll need to update the test so that a stronger encryption algorithm gets used.
- is cloned by
-
JBEAP-21814 Fix test failure in WF-Core LdapTestCase that happens with openjdk-1.8.0.292
-
- Closed
-
- relates to
-
WFLY-14745 Fix test failures in AutomaticSelfSignedCertificateNotGeneratedTestCase that happen with openjdk-1.8.0.292
-
- Closed
-