Getting "java.security.NoSuchAlgorithmException: Algorithm HmacPBESHA256 not available" when trying to configure PKCS12 keystore in elytron

Solution Verified - Updated -

Issue

  • Failed to add pkcs12 keystore to the elytron subsystem with the following error:
 /subsystem=elytron/key-store=qsKeyStore:add(path=server.keystore,relative-to=jboss.server.config.dir,type=PKCS12,credential-reference={clear-text=secret})
Failure: {"WFLYCTL0080: Failed services" => {"org.wildfly.security.key-store.qsKeyStore" => "WFLYELY00004: Unable to start the service.
    Caused by: java.io.IOException: Integrity check failed: java.security.NoSuchAlgorithmException: Algorithm HmacPBESHA256 not available
    Caused by: java.security.NoSuchAlgorithmException: Algorithm HmacPBESHA256 not available"}}

Environment

  • Red Hat JBoss Enterprise Application Platform (JBoss EAP)
    • 7.4
  • OpenJDK
    • 11.0.6

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content