Wednesday, November 8, 2017

javax.net.ssl.SSLKeyException in Node Manager status

Problem : Could not start node manager

Problem Explanation : I have changed my machine(It got currupted) and use the existing HDD partition to again run the machine. All was right but node manager was not running.

Error : javax.net.ssl.SSLKeyException

Solution : This issue has two solutions as,

A. Disable the hostname verification
B. Recreate the certificates

A. Disable the hostname verification ,

1. In the Admin console for your domain, go to Environment -> Servers -> AdminServer.
2. Click on the SSL tab.
3. Expand the “Advanced” section at the bottom.
4. Set Hostname Verification to None.
5. Save and activate the changes.



B. Recreate the certificates ,

1. First of all set the WLS enviornment varibales using,

$MIDDLEWARE_HOME/wlserver_10.3/server/bin/.setWLSEnv.sh

2. Backup the Demoidentity.jks keystore located in,

$MIDDLEWARE_HOME/wlserver_10.3/server/lib/DemoIdentity.jks

3. Generate the private key of the keystore using the following command:

java utils.CertGen -cn hostname -keyfilepass DemoIdentityPassPhrase -certfile newcert -keyfile newkey

Note : Here I got error "utils.CertGen not found"
Solution : For this we have need to set CLASSPATH manually as,

$export CLASSPATH=$CLASSPATH:/stage/oracle/middleware/wlserver_10.3/server/lib/weblogic.jar

After this run the above command again.

4. Import the generated key in the Demoidentity.jks using the following command:

java utils.ImportPrivateKey -keystore DemoIdentity.jks -storepass DemoIdentityKeyStorePassPhrase -keyfile newkey.pem -keyfilepass DemoIdentityPassPhrase -certfile newcert.pem -alias demoidentity.

5. Now restart the WebLogic Server.

No comments:

Post a Comment