Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

JCE cannot authenticate the provider SunJCE

User_S4FJFJun 23 2021

we use WAS85 in our project with java 7 version. Recently jdk version on Websphere has been updated to java 8 . Post this Patching, we are getting below error when application is trying to encrypt data. Provider we use is SUNJCE. Application is able to add the SUNJCE provider but getting error at Cipher desCipher = Cipher.getInstance(DES/ECB/NoPadding, SUNJCE);
Error: JCE cannot authenticate the provider SunJCE.
Our Application refers to a jar named say A.jar in which it has reference to sunjce_provider.jar.
Tried adding sunjce_provider.jar under folder under jdk1.8.../jre/lib/ext on application server and adding SUNJCE Provider name in java.security under jdk1.8.../jre/lib/security as well.
Any suggestions on How to resolve the issue?

Comments
Post Details
Added on Jun 23 2021
3 comments
1,660 views