java.lang.IllegalStateException: Cipher not initialized

java.lang.IllegalStateException: Cipher not initialized

If you are getting the error “java.lang.IllegalStateException: Cipher not initialized” during the weblogic startup after importing the client certificates to keystores ,follow the below steps to fix this.

By default -Dweblogic.security.SSL.nojce parameter is set to false. If Dweblogic.security.SSL.nojce is set to false, then weblogic will be use the default JCE providers configured with JDK.

To enable weblogic to use the inbuilt jce provider functionality for weblogic SSL implementation set the -Dweblogic.security.SSL.nojce parameter is set to true .

Set the -Dweblogic.security.SSL.nojce=true into the setDomainEnv.sh for Admin and managed severs and restart the servers.

The error java.lang.IllegalStateException: Cipher not initialized will disappear after this change.

 

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>