FOMEMA – SSL Certificate renewal issue in JRE

FOMEMA – SSL Certificate renewal issue in JRE

Error Log:

javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target (JDK 1.7)

java.lang.RuntimeException: Could not generate DH keypair. (JDK 1.6)

Problem:

JRE running the ChemoLIMS has the expired SSL certificate in its keystore.

Solution:

Update the JRE keystore file with the valid SSL certificate for JDK. Applicable to JDK/JRE 1.7 and above.

If the JDK version is below 1.7, upgrade to JDK 1.7 (ChemoLIMS) or JDK 1.8 (ChemoLIMS CNX)

Steps to fix the issue:

  1. Get the .crt file. eg “fomemamy.crt
  2. Run command prompt as Administrator
  3. Locate the <JRE_HOME>\bin directory
  4. Execute

    keytool -list -keystore ..\lib\security\cacerts

  5. Check number of certificates available. eg “Your keystore contains 88 entries
  6. Execute

    keytool -import -alias fomemamy -keystore ..\lib\security\cacerts -file d:\fomemamy.crt

  7. Repeat the step no. 4 and check number of certificates available. eg “Your keystore contains 89 entries
  8. Restart the chemolims application server (tomcat)

    If prompt for password, the default password should be : ‘changeit’

Reference:

https://www.java-samples.com/showtutorial.php?tutorialid=210

Total 2 Votes:
0

Tell us how can we improve this post?

+ = Verify Human or Spambot ?

Admin

Website: