ERROR - Not able to create SSL server context. Reason: Not able to open or read KeyStore '/opt/hivemq/conf/xxxxx.p12' with type 'JKS'

This article explains how to fix errors when you observe “Not able to create SSL server context. Reason: Not able to open or read KeyStore ‘XXX' with type 'JKS’“

 Instructions

Please check the following options to resolve the issue.

  1. Verify if your password for Keystore is configured correctly in config.xml. Do a quick test by opening the Keystore file using Keystore Explorer with the same password.

  2. Verify if Keystore is not corrupted.

  3. Verify if your password does contain '$' or any special character in the beginning of the password, if yes, then change the password

  4. If all of the above is correct (i.e. the keystore JKS is present at the path, the passwords are correct), then make sure that the JDK version of the Java that generated the keystore JKS matches with the JDK version of the Java that is trying to read the JKS.
    We have observed the error when the file was generated with JDK 18 and loaded by the JDK 11.