openjdk 1.8.0_292 fails with unrecognized algorithm name: PBEWithSHA1AndDESede

Bug #1926634 reported by Paul Smith
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
openjdk-8 (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

After upgrading my Ubuntu 20.04 systems to the latest updates, which installed openjdk-8-jdk-headless version 1.8.0_292, I'm getting exceptions thrown in a variety of my code:

Caused by: java.security.KeyStoreException: Key protection algorithm not found: java.security.UnrecoverableKeyException: Encrypt Private Key failed: unrecognized algorithm name: PBEWithSHA1AndDESede
 at sun.security.pkcs12.PKCS12KeyStore.setKeyEntry(PKCS12KeyStore.java:677)
 at sun.security.pkcs12.PKCS12KeyStore.engineSetKeyEntry(PKCS12KeyStore.java:577)
 at java.security.KeyStore.setKeyEntry(KeyStore.java:1140)
 ... 43 more
Caused by: java.security.UnrecoverableKeyException: Encrypt Private Key failed: unrecognized algorithm name: PBEWithSHA1AndDESede
 at sun.security.pkcs12.PKCS12KeyStore.encryptPrivateKey(PKCS12KeyStore.java:921)
 at sun.security.pkcs12.PKCS12KeyStore.setKeyEntry(PKCS12KeyStore.java:614)
 ... 45 more
Caused by: java.security.NoSuchAlgorithmException: unrecognized algorithm name: PBEWithSHA1AndDESede
 at sun.security.x509.AlgorithmId.get(AlgorithmId.java:448)
 at sun.security.pkcs12.PKCS12KeyStore.mapPBEAlgorithmToOID(PKCS12KeyStore.java:938)
 at sun.security.pkcs12.PKCS12KeyStore.encryptPrivateKey(PKCS12KeyStore.java:895)
 ... 46 more

This code worked fine with all previous versions.

It looks like this is a bug in this version of OpenJDK; see https://bugs.openjdk.java.net/browse/JDK-8266261 and related bugs reported to OpenJDK. There are at least 3 bugs already filed against OpenJDK about this.

Can/should we downgrade openjdk-8 from this version until upstream can fix this bug?

Info:

$ apt-cache policy openjdk-8-jdk-headless
openjdk-8-jdk-headless:
  Installed: 8u292-b10-0ubuntu1~20.04
  Candidate: 8u292-b10-0ubuntu1~20.04
  Version table:
 *** 8u292-b10-0ubuntu1~20.04 500
        500 http://archive.ubuntu.com:80/ubuntu focal-updates/universe amd64 Packages
        500 http://security.ubuntu.com/ubuntu focal-security/universe amd64 Packages
        100 /var/lib/dpkg/status
     8u252-b09-1ubuntu1 500
        500 http://archive.ubuntu.com:80/ubuntu focal/universe amd64 Packages

Revision history for this message
Thorsten Glaser (mirabilos) wrote :

upstream reported as fixed in 8u302+

Changed in openjdk-8 (Ubuntu):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.