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
Checking service status of iptables in RSA Authentication Manager 8.4 returns 'Active: active (exited)'. 140Number of Views RSA SecurID Appliance 3.0 Model 250 - How to configure the DRAC 518Number of Views Users from an external identity source are listed as disabled in the RSA Authentication Manager 8.x Security Console 234Number of Views Configure the Telemetry Service 65Number of Views Scan of RSA Certificate Manager 6.7 show vulnerabilities with Apache 1.3.33 41Number of Views
Trending Articles
RSA Authentication Manager Upgrade Process RSA Release Notes for RSA Authentication Manager 8.8 RSA RADIUS Server service failed to start in the RSA Authentication Manager 8.1 Operations Console Microsoft Entra ID External MFA - Relying Party Configuration Using OIDC - RSA Ready Implementation Guide RSA Release Notes: Cloud Access Service and RSA Authenticators
Don't see what you're looking for?