1. Make sure you have your SSL certificate file
You can retrieve it through Google Chrome browser:

a. Enter the keystone URL/ URL address of the service end-point you need to connect to as the browser’s URL

b. Left-click on the lock symbol

c. Click the “Connection” tab

d. Click on “Certificate information”

e. Click on the tab “Details”

f. Click on “Copy to File”

g. Save the certificate to a local directory as a DER encoded binary  x.509.


2. Create a trustStore using keytool and import the certificate
keytool is a command-line tool which is found in the JRE/bin directory (it’s supposed to be already part of the your path)

Use the following command in order to create a trustStore and import the SSL certificate:

keytool -import -file <full-path-to-cert-file> -alias <alias-name-for-cert> -keystore <full-path-to-trustStore-file-including-jks-extension>

you will be asked to create a password for this trustStore.


keytool -import -file /opt/certs/openstackcert.cer -alias openstackcert -keystore /opt/certs/keystore/cacerts.jks

The first time you’ll use that command it will create a jks file as a trustStore repository and import the certificate that is part of the command to the trustStore.
If you’ll use that command afterwards with an existing trustStore file path it will only import a certificate to the existing trustStore.


3. Update the path to the trustStore reposirotry
Edit the file :

Add the next line at the end of the file:

JAVA_OPTS="$JAVA_OPTS -Djavax.net.ssl.trustStore=<full-path-to-trustStore-file-including-jks-extension>"

JAVA_OPTS="$JAVA_OPTS -Djavax.net.ssl.trustStore=

4. Set the disable-https-certificates-checking flag to false on the runtime.properties 

In order to make Hyperglance verify https certificates (the default is to accept all SSL certificates without checking them) you should edit the file : /opt/wildfly/standalone/deployments/hgs.ear/lib/common.jar/runtime.properties

Make sure that “collectors.disableHttpsCertChecking” is set to false:

collectors.disableHttpsCertChecking = false

5. Restart the server 

Issue the comand : sudo service wildfly restart

You will be asked to enter the the root's password (the default one is : hyperglance)