New Community Ranking System
Our Community ranking system has recently been updated. You may notice changes in user rankings and receive system messages or notifications. If you have questions about how the new ranking works, please refer to the announcement post for more details (click here).
How to replace the self-signed SSL certificate in EcoStruxure IT Gateway
Troubleshooting
How to troubleshoot and solve issues configuring the EcoStruxure IT Gateway
Search in
Improve your search experience:
Exact phrase→Use quotes " "(e.g., "error 404")
Wildcard→Use * for partial words(e.g., build*, *tion)
AND / OR→Combine keywords(e.g., login AND error, login OR sign‑in)
Keep it short→Use 2–3 relevant words, not full sentences
Filters→Narrow results by section(Knowledge Base, Users, Products)
Send a co-worker an invite to the portal.Just enter their email address and we'll connect them to register. After joining, they will belong to the same company.
You have entered an invalid email address. Please re-enter the email address.
This co-worker has already been invited to the Exchange portal. Please invite another co-worker.
Please enter email address
Send InviteCancel
Invitation Sent
Your invitation was sent.Thanks for sharing Exchange with your co-worker.
Contact support for information about Gateway versions older than 1.16.
IMPORTANT: An imported SSL certificate signed by a trusted certificate authority or a CA certificate imported to the keystore will not persist through an EcoStruxure IT Gateway update.
You must import the certificate again after you update your Gateway software.
The Java keytool for Gateway can be accessed in the \EcoStruxureITGateway\<gateway_version>\jre\bin\ directory.
For Windows it is recommended to add this location to your Environment Variables → PATH for ease of use.
For Linux it is recommended to create an alias for ease of use: alias keytool=/opt/EcoStruxureITGateway/<gateway_version>/jre/bin/keytool
Windows
These command examples are formatted for use in the Windows command prompt. Using PowerShell requires using single quotes instead of the double quotes displayed below.
EcoStruxure IT Gateway stores the user interface SSL certificates in two Java keystore files in the \EcoStruxureITGateway\<gateway_version>\conf\keystore\ directory:
dcos.keystore (PrivateKeyEntry)
dcos.truststore (trustedCertEntry)
Important: Including the SAN or Subject Alternative Name extension is required if accessing the Gateway user interface via the IP address of the Gateway server. ex. https://10.x.x.x.
In this example the Common Name (CN) and Subject Alternative Name (SAN) should be the IP address of the Gateway server.
Note: If your CA provided you with a .p12 file then this can be converted to a dcos.keystore by using the following command:
Rename the existing dcos.keystore and dcos.truststore
example: dcos.keystoreDefault
Open a command prompt and change the directory to C:\Program Files\EcoStruxureITGateway\<current Gateway install version>\conf\keystore (custom Gateway installs may be in a different location)
Type the following command to create a new dcos.keystore:
You will first be prompted to enter a new password for the dcos.keystore you just created.
Note: Write down or remember your password, you will need it in a later step.
You will then be asked to enter the following information:
Note: The following values need to match values present on the certificate signing authority (CA). Some are required by the CA, and others may be optional depending on the CA configuration.
The first value (CN) must match the hostname or FQDN (Fully Qualified Domain Name) of the server where EcoStruxure IT Gateway is installed
Verify that the file dcos.keystore now exists in C:\Program Files\EcoStruxureITGateway\<gateway_version>\conf\keystore\ and that the SAN or Subject Alternative Name is present.
keytool.exe -list -v -keystore dcos.keystore
An example of the file:
SubjectAlternativeName [
IPAddress: 10.x.x.x
]
Edit the application-gateway-prod.yml file; set the key-store-password to the password you created in step 6 above.
Note: If your password uses any special characters you will want to use single quotes in the application-gateway-prod.yml file
Step 2: Create a certificate signing request (CSR) and new SSL certificate signed by a trusted CA
Note: The CSR generated by the Java keytool does not always honor the SAN. If this is the case then generate the CSR using the tool provided by your CA. Be sure to include the SAN extension and use the same values for CN, OU, O, L, ST, C as used to create the dcos.keystore.
Open a command prompt and change the directory to C:\Program Files\EcoStruxureITGateway\<current Gateway install version>\conf\keystore and enter the following to create the newGWcert.csr in the same directory:
Provide the certificate signing request (CSR) to your certificate signing authority (CA). This could be a CA run by your company, or it might need to be sent to a third-party Certificate Authority. You will receive a new signed certificate and the root certificate from your CA.
Note: You will need both the new signed certificate and root certificate for later steps.
Step 3: Import the Root certificate and Web Server SSL certificate to the EcoStruxure IT Gateway keystore
Copy the root CA certificate (we will call this rootca.crt) and newGWcert.crt to the server where EcoStruxure IT Gateway is installed.
Note:Root and Web Server SSL certificates may end in .crt or .cer. If the CA issued .pem files then you will need to copy/paste from BEGIN CERTIFICATE to END CERTIFICATE into a file and save as .crt or .cer.
Open a command prompt and change the directory to C:\Program Files\EcoStruxureITGateway\<gateway_version>\conf\keystore.
Import the root CA certificate by typing the following command (this will create a new dcos.truststore and import the root certificate in that trust store):
Make sure the CA root certificate and intermediate certificate (if applicable) is imported to local Trusted Root Certification Authorities on all computers that will be used to access the Gateway user interface.
Right-click on CA root certificate
Select Install Certificate
Choose Windows Local Computer
Select Place all certificates in the following store > Browse
Choose Trusted Root Certification Authorities
Start the EcoStruxureITGateway-x.x.x.x service.
EcoStruxure IT Gateway will now use the new signed certificate. No SSL Certificate security warning will be displayed by the browser when the Gateway user interface is launched.
Note: If you are still seeing 'Not Secure' in your web browser try clearing your cookies, closing your browser and re-open.
Linux
EcoStruxure IT Gateway stores the user interface SSL certificates in two Java keystore files in the /opt/EcoStruxureITGateway/<gateway_version>/conf/keystore directory:
dcos.keystore (PrivateKeyEntry)
dcos.truststore (trustedCertEntry)
Note: All commands must be run as root or sudo
Important: Including the SAN or Subject Alternative Name extension is required if accessing the Gateway user interface via the IP address of the Gateway server. ex. https://10.x.x.x
In this example the Common Name (CN) and Subject Alternative Name (SAN) should be the IP address of the Gateway server.
Note: If your CA provided you with a .p12 file then this can be converted to a dcos.keystore by using the following command:
You will first be prompted to enter a new password for the dcos.keystore you just created.
Note: Write down or remember your password, you will need it in a later step.
You will then be asked to enter the following information:
Note: The following values may need to match values present on the certificate signing authority (CA). Some are required by the CA, and others may be optional depending on the CA configuration.
The first value (CN) must match the hostname or FQDN (Fully Qualified Domain Name) of the server where EcoStruxure IT Gateway is installed
Verify that the file dcos.keystore now exists in /opt/EcoStruxureITGateway/<gateway_version>/conf/keystore/
Edit the application-gateway-prod.yml file; set the key-store-password to the password you created in step 6 above.
Note: If your password uses any special characters you will want to use single quotes in the application-gateway-prod.yml file
Step 2: Create a certificate signing request (CSR) and new SSL certificate signed by a trusted CA
SSH into the Linux server and change the directory to /opt/EcoStruxureITGateway/<gateway_version>/conf/keystore and enter the following to create the newGWcert.csr in the same directory:
Provide the certificate signing request (CSR) to your certificate signing authority (CA). This could be a CA run by your company, or it might need to be sent to a third-party Certificate Authority. You will receive a new signed certificate and the root certificate from your CA.
Note: You will need both the new signed certificate and root certificate for later steps.
Step 3: Import the Root certificate and Web Server SSL certificate to the EcoStruxure IT Gateway keystore
Copy the root CA certificate (we will call this rootca.crt) and newGWcert.crt to the server where EcoStruxure IT Gateway is installed.
Note:Root and Web Server SSL certificates may end in .crt or .cer. If the CA issued .pem files then you will need to copy/paste from BEGIN CERTIFICATE to END CERTIFICATE into a file and save as .crt or .cer.
SSH into the Linux server and change directory to /opt/EcoStruxureITGateway/<gateway_version>/conf/keystore.
Import the root CA certificate by typing the following command (this will create a new dcos.truststore and import the root certificate in that trust store):
Make sure the root CA certificate is imported to the internet browser on all the computers/browsers that will be used to access the Gateway user interface.
Mac Local Computer:
Open Keychain Access
Select System
Go to the top menu and click File > Import Items
Choose your CA root certificate file (.cer, .crt, or .pem) and click Open
Enter your Mac user password to allow the change
Double click on CA root certificate
Click the dropdown next to Trust
Change When using this certificate to Always Trust
Enter your Mac user password again to allow the change
EcoStruxure IT Gateway will now use the new signed certificate. No SSL Certificate security warning will be displayed by the browser when the Gateway user interface is launched.
I would recommend under the Create a new keystore for the trusted SSL certificate for Step 4 to add argument '-validity 365' or any number, to set the number of days the certificate will be valid for, otherwise the default will be 3 months' time.
I'm struggeliung now with this instruction to setup a EcoStruxure IT Gateway for almost a week. But got is solved. Could you please review on the points below and advise?
The instruction always is refering to 2 keystore files (the "dcos.keystore" and "dcos.truststore"). No explaination why the RootCA should be loaded into a file "root.truststore". If you follow this instruction, the dialog ask you to create a container password. To allow the application to access the container, its password and filename need to get added to the "application-installer.yaml" file, same as the entries for the other 2 containers.
The instruction does not advise how to install intermediate certificates if your CA requires to do so. If you skip this step, you cant add the server certificate itself getting an error in "keytool error: java.lang.Exception: Failed to establish chain from reply".
My findings in short:
verify Java keystore content
stop Gateway service
stop Gateway database service
delete the dcos.keystore AND the dcos.truststore
generate a new dcos.keystore and provide the requested information as necessary. The values entered will be issued for the CSR with next step:
CN - FQDN of the server
OU - e.g. company name
O - e.g. department name
S - state
C - country
confirm the summary with "yes" or "no" to walk thru steps again.
Create CSR file and handover to your CA.
Your CA may provide you ideally with indidividual CRT files. If you receive PEM - that file can be opened with a plain texteditor and each section starting with "----BEGIN CERTIFICATE----" and ending with "----END CERTIFICATE----" can be saved in separate files. Usually the first section is the server cert, the second section an Intermediate and the last section the root certificate. Then rename files extension into CRT and check the content.
Upload the certificates provided by your CA to server.
Load the RootCA.CRT to your dcos.truststore and use alias "root". Because you deleted the dcos.truststore in step 3 you will be prompted to set a password. Check the password value in file "application-installer.yaml" and use same there.
If your CA requires an intermediate certificate to install, load the Intermediate.CRT to your dcos.truststore and use alias "intermediate". If your CA didn't provide, goto next step.
Load the Server.CRT into your dcos.keystore and use alias "dcos". (Here I couldn't get further with the following error message:
keytool error: java.lang.Exception: Failed to establish chain from reply
Solution to establish the chain:
Load the provided RootCA.crt into the "dcos.keystore" and use alias "root".
Load the provided Intermediate.crt into the "dcos.keystore" and use alias "intermediate".
Load the provided Server.crt into the "dcos.keystore" and use alias "dcos". You shouldn't get an error anymore.
Verify the content of "dcos.keystore". There should be now 3 entries separated with double lines of stars "*********" :
PrivateKeyEntry with key and 3 certificates ending section with separators ********
TrustedCertEntry "root" ending section with separators *********
TrustedCertEntry "intermediate" ending section with separators *********
Now you need to remove the TrustedCertEntries 2+3 from keystore by using command "keytool.exe -delete -alias root -keystore dcos.keystore" and "keytool.exe -delete -alias intermediate -keystore dcos.keystore". (Note: This step was required otherwise the webserver is still seen with a certificate not verified issuer.)
One more time verify the content of "dcos.keystore". There should now only 1 PrivateKeyEntry with Key and 3 subrecords with certificates.
Our development team notices the same exact problem as what wavecoma's comment says. The linux procedure needs to be reviewed to reflect any new changes to the directory when there's a new gateway version.
The certificate generated will not be trusted without a "Subject Alternate Name". For that you need to add one when generating the CSR (change fqdn.hostname and put your gateway IP instead of 10.1.2.3):
I just installed the new 2.3.0.10 and confirm the updated instructions for SSL certificate replacement much better now. Many thanks ...
3 suggestions:
Consider (optional) to install an intermediate certificate if your CA require it. It needs to be installed in keystore between steps 8 and 9 to establish the secure chain.
Our company security scanners claim few days after release 10 vulnerabilities related to SSL crypto implementation and Python version. Probably the RSA is not best choice to secure the keystores?
Can we have a modern crypto algorithm curve to use like ed25519 for keystores encryption?
Any instructions/ideas how to update parts of the gateway?
What about the update procedure which currently require to re-run the certificate excercise?
For my knowledge the keystore is static as long you dont update the certificates or keystore password. Can we not just backup and restore the keystores folder after update?