OpenJDK 17 fails to verify jars with 'SHA-256 MessageDigest not available' in FIPS Mode

Solution Verified - Updated -

Issue

Using RHEL OpenJDK 17 and FIPS mode enabled, encountering failure when attempting to use jarsigner to verify a signed jar:

Error message: 'jar: processEntry caught: java.security.NoSuchAlgorithmException: SHA-256 MessageDigest not available'

Environment

  • Red Hat Enterprise Linux (RHEL) 9
  • Red Hat build of OpenJDK 17
  • FIPS

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