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
Users from an external identity source are listed as disabled in the RSA Authentication Manager 8.x Security Console 234Number of Views Scan of RSA Certificate Manager 6.7 show vulnerabilities with Apache 1.3.33 40Number of Views How to map an Active Directory external identity source to a universal group for Authentication Manager 8.x 602Number of Views Checking service status of iptables in RSA Authentication Manager 8.4 returns 'Active: active (exited)'. 140Number of Views After updating the certificates for RSA Identity Governance & Lifecycle, WildFly reports error: JBAS015299: The KeyStore /… 389Number of Views
Trending Articles
RSA MFA Agent 2.5 for Microsoft Windows Installation and Administration Guide How to download and install the AFX Server Archive in RSA Identity Governance & Lifecycle The Template ({Connector Template Name}) has missing file content error when creating AFX Connectors in RSA Identity Gover… Downloading RSA Authentication Manager license files or RSA Software token seed records Troubleshooting RSA MFA Agent for Microsoft Windows
Don't see what you're looking for?