SXI Forum

A place to collect usefull tips, tricks and implementation strategies.

You are not logged in.

#1 18-01-2019 11:02:47

LaurenD
XLayer Dev
Registered: 22-11-2018
Posts: 3

Adding a certificate file to XLayer's jre/security/cacerts file

Some of our customers have a certificate on their mail server that expires every few years.
When this happens, we need to make the Java runtime environment trusts the certificate. To do this we need to import it into the JRE certificate store (which is XLayer’s jre/security/cacerts file).

Step 1 - Get the certificate file from the customer (A xxx.crt file)
Step 2 - Import the certificate into Xlayer’s jre/security/cacerts file.
       
        i.    Make sure you are in the C:\Program Files\Southern X Integrators\jre\bin directory as you need to use the keytool utility to import it.
       
        ii.    Command Line Query: Keytool -import -alias alias -keystore path-to-jre/lib/security/cacerts -file path-to-certificate-file
               Actual Query Used: keytool -import -alias gcasarray -keystore "C:\Program Files\Southern X Integrators\jre\lib\security\cacerts" -file "C:\Program Files\Southern X Integrators\jre\lib\security\gcasarray_datacentrix_co_za.crt"
       
        iii.    The gcasarray_datacentrix_co_za.crt file was moved into the same directory as the cacerts file (C:\Program Files\Southern X Integrators\jre\lib\security) for convenience, it does not have to be there for the above command to work.
       
        iv.    Just remember to add the double quotes (" ") to your file path if there are files with spaces in the names. For example, "C:\Program Files\Southern X Integrators".

You will be prompted for the keystore password, which is by default changeit.

This URL is where the above information was found: https://www.grim.se/guide/jre-cert

Last edited by LaurenD (14-03-2019 13:23:14)

Offline

Board footer

Powered by FluxBB