java.security.NoSuchAlgorithmException: SHA-256 MessageDigest not available
Originally Published: 2010-07-23
Article Number
Applies To
IBM JVM 1.5
Issue
0 [main] DEBUG com.custom.security.crypto.CryptoService - Pluggable provider is initiated.
44 [main] ERROR com.custom.security.crypto.SecureHashAlgorithmProvider - SHA-256 MessageDigest not available
java.security.NoSuchAlgorithmException: SHA-256 MessageDigest not available
at sun.security.jca.GetInstance.getInstance(GetInstance.java:158)
at java.security.Security.getImpl(Security.java:691)
at java.security.MessageDigest.getInstance(MessageDigest.java:146)
at com.custom.security.crypto.SecureHashAlgorithmProvider.<init>(SecureHashAlgorithmProvider.java:67)
at com.custom.security.crypto.CryptoProvider.digest(CryptoProvider.java:55)
at com.custom.security.crypto.CryptoService.digest(CryptoService.java:74)
at samples.CryptoSample.main(CryptoSample.java:26)
SHA message digest initiation failed
Resolution
Adding the following to the java command line typically solves this issue:
-Djava.ext.dirs=*/jdk/jre/lib/ext
Related Articles
Scan of RSA Certificate Manager 6.7 show vulnerabilities with Apache 1.3.33 38Number of Views How to map an Active Directory external identity source to a universal group for Authentication Manager 8.x 601Number of Views Users from an external identity source are listed as disabled in the RSA Authentication Manager 8.x Security Console 229Number of Views RSA PrimeKit Quick Install Guide 148Number of Views After updating the certificates for RSA Identity Governance & Lifecycle, WildFly reports error: JBAS015299: The KeyStore /… 371Number of Views
Trending Articles
Quick Setup Guide - Passwordless Authentication in Windows MFA Agent for Active Directory RSA Authentication Manager 8.9 Release Notes (January 2026) RSA Governance & Lifecycle 8.0.0 Administrators Guide RSA MFA Agent 2.3.6 for Microsoft Windows Installation and Administration Guide RSA MFA Agent 2.5 for Microsoft Windows Installation and Administration Guide
Don't see what you're looking for?