Bug 1960024
Summary: | JDK-8266279: 8u292 NoSuchAlgorithmException unrecognized algorithm name: PBEWithSHA1AndDESede | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | Mike Millson <mmillson> |
Component: | java-1.8.0-openjdk | Assignee: | Andrew John Hughes <ahughes> |
Status: | CLOSED ERRATA | QA Contact: | OpenJDK QA <java-qa> |
Severity: | high | Docs Contact: | |
Priority: | unspecified | ||
Version: | 7.9 | CC: | aakhtar, ahughes, aipatil, asaji, casantos, dmasirka, jandrlik, jreznik, jvanek, jwright, laszomor, mbabacek, musman, pesilva, sgehwolf, yoliynyk, zzambers |
Target Milestone: | rc | Keywords: | Triaged, ZStream |
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | java-1.8.0-openjdk-1.8.0.292.b10-2.el7_9 | Doc Type: | If docs needed, set a value |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2021-07-21 12:50:25 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Mike Millson
2021-05-12 19:51:11 UTC
This looks to be an 8u-only issue which seems fixed by the backport of JDK-8242565. At least the reproducer from JDK-8266279 fails for me for unpatched JDK 8u, passes with JDK 11 and passes with patched JDK 8u (patch from JDK-8242565). Unpatched JDK 8u: $ java -showversion -cp bcprov-jdk15on-168.jar:. TestAlgorithm openjdk version "1.8.0_292" OpenJDK Runtime Environment (build 1.8.0_292-b10) OpenJDK 64-Bit Server VM (build 25.292-b10, mixed mode) Exception in thread "main" java.security.NoSuchAlgorithmException: unrecognized algorithm name: PBEWithSHA1AndDESede at sun.security.x509.AlgorithmId.get(AlgorithmId.java:448) at javax.crypto.EncryptedPrivateKeyInfo.<init>(EncryptedPrivateKeyInfo.java:137) at TestAlgorithm.main(TestAlgorithm.java:8) Patched JDK 8u: $ java -showversion -cp bcprov-jdk15on-168.jar:. TestAlgorithm openjdk version "1.8.0_292-internal" OpenJDK Runtime Environment (build 1.8.0_292-internal-b05) OpenJDK 64-Bit Server VM (build 25.292-b05, mixed mode) JDK 11u: $ java -showversion -cp bcprov-jdk15on-168.jar:. TestAlgorithm openjdk version "11.0.11" 2021-04-20 OpenJDK Runtime Environment 18.9 (build 11.0.11+9) OpenJDK 64-Bit Server VM 18.9 (build 11.0.11+9, mixed mode, sharing) There is also this github issued against BouncyCastle (which seems related): https://github.com/bcgit/bc-java/issues/941 Some (possible) workarounds are discussed there. *** Bug 1964531 has been marked as a duplicate of this bug. *** Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (Important: java-1.8.0-openjdk security and bug fix update), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHSA-2021:2845 The fix is also in the new RHEL 8.4 update to 8u302: https://access.redhat.com/errata/RHSA-2021:2776 |