Uploaded image for project: 'WildFly Core'
  1. WildFly Core
  2. WFCORE-5383

Fix test failure in LdapTestCase that happens with openjdk-1.8.0.292

    XMLWordPrintable

Details

    Description

      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.
       

      Attachments

        Issue Links

          Activity

            People

              szaldana Sonia Zaldana (Inactive)
              fjuma1@redhat.com Farah Juma
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: