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
How to reset DRAC service via command line from the envision server. 37Number of Views Windows Eventing Collector GENERAL ERROR Error: 12030 24Number of Views Eserver or Aserver will not reconnect to the SQL DB after a DB restart 42Number of Views RSA announces the availability of a Self-Encrypting Hard Drive for the RSA SecurID Hardware Appliance 350 18Number of Views Checking service status of iptables in RSA Authentication Manager 8.4 returns 'Active: active (exited)'. 142Number of Views
Trending Articles
RSA Authentication Manager Patch Updates Deploying RSA Authenticator 6.2.2 for Windows Using DISM RSA Authenticator for iOS and Android Administrator Guide - Mobile Lock RSA SecurID software token .sdtid file fails to import into RSA SecurID Software Token 5.0 for Windows RSA Release Notes for RSA Authentication Manager 8.8
Don't see what you're looking for?