0018173: Java 1.8.0.292.b10-0.el8_3 update break Wildfly based applications using PKCS12 keystores

0018173: Java 1.8.0.292.b10-0.el8_3 update break Wildfly based applications using PKCS12 keystores

Java 1.8.0.282.b08-2.el8_3 update break Wildfly based applications (running a privately maintained copy of Wildfly 17), when the TLS keystore is located on a PKCS12 file. The exception thrown is:<br />
<br />
java.security.KeyStoreException: Key protection algorithm not found: java.security.UnrecoverableKeyException: Encrypt Private Key failed: unrecognized algorithm name: PBEWithSHA1AndDESede<br />
at sun.security.pkcs12.PKCS12KeyStore.setKeyEntry(PKCS12KeyStore.java:677)<br />
at sun.security.pkcs12.PKCS12KeyStore.engineSetEntry(PKCS12KeyStore.java:1384)<br />
at java.security.KeyStore.setEntry(KeyStore.java:1557)<br />
at org.jboss.as.domain.management.security.FileKeystore.load(FileKeystore.java:135)<br />
… 11 more<br />
Caused by: java.security.UnrecoverableKeyException: Encrypt Private Key failed: unrecognized algorithm name: PBEWithSHA1AndDESede<br />
at sun.security.pkcs12.PKCS12KeyStore.encryptPrivateKey(PKCS12KeyStore.java:921)<br />
at sun.security.pkcs12.PKCS12KeyStore.setKeyEntry(PKCS12KeyStore.java:614)<br />
… 14 more<br />
Caused by: java.security.NoSuchAlgorithmException: unrecognized algorithm name: PBEWithSHA1AndDESede<br />
at sun.security.x509.AlgorithmId.get(AlgorithmId.java:448)<br />
at sun.security.pkcs12.PKCS12KeyStore.mapPBEAlgorithmToOID(PKCS12KeyStore.java:938)<br />
at sun.security.pkcs12.PKCS12KeyStore.encryptPrivateKey(PKCS12KeyStore.java:895)<br />
… 15 more

* This article was originally published here

Leave a Reply

Your email address will not be published. Required fields are marked *