When first installed, Cloud Exchange automatically generates a self-signed SSL certificate, so connections to the web interface are encrypted over HTTPS by default. You can replace this self-signed certificate with a certificate provided by your organization.
There are two SSL-related folders created on the file system:
If you want to add your own SSL certificate(s), you can add them to the
The
After that, run the setup script using the command
ssl_certs and ca_certs.If you want to add your own SSL certificate(s), you can add them to the
ta_cloud_exchange/data/ssl_certs directory, or /opt/cloudexchange/cloudexchange/data/ssl_certs in the VM version. The name of the certificate file should be cte_cert.crt and cte_cert_key.key. The steps below explain how to do this.The
ca_certs directory is used, for example, when you configure a plugin for an on-premises product (like MISP, QRadar etc.) that has a self signed SSL certificate issued by your organization. In this case, you need to put your CA certs in the ca_certs directory to add them to the trust chain.After that, run the setup script using the command
sudo ./setup so that appropriate file permissions are attained by the certificates you added in the ca_certs directory.Standalone Deployment
When you have the certificate(s) you want to use for connecting to Cloud Exchange, follow these steps to install your private certificate(s) to securely access Cloud Exchange.
- Log in to your Cloud Exchange host via CLI.
- Browse to the directory based on your deployment type:
- Containerized Deployment:
$ cd ta_cloud_exchange/
- CE as a VM Deployment:
$ cd /opt/cloudexchange/cloudexchange/
- Containerized Deployment:
- Execute the command
$ sudo ./stop. - Go to the directory holding the certificates:
$ cd data/ssl_certs
- Remove the existing certificates using these commands:
$ sudo rm -rf cte_cert.crt $ sudo rm -rf cte_cert_key.key
- After the existing SSL certificate is removed, you can install your private SSL certificate. Copy the new certificates to
data/ssl_certsas per your deployment type:- Containerized Deployment:
$ cd ta_cloud_exchange/data/ssl_certs $ sudo cp -r <Path_of_SSL_Certificate> .
- CE as a VM Deployment:
$ cd /opt/cloudexchange/cloudexchange/data/ssl_certs $ sudo cp -r <Path_of_SSL_Certificate> .
- Containerized Deployment:
- Restart Cloud Exchange using the command
$ sudo ./start.
HA Deployment
Do not run
./setup on any node while replacing certificates in an HA deployment. Do not modify the files in the mongodb_rabbitmq_certs directory.- Stop the Cloud Exchange nodes. Stop the secondary nodes first, and then the primary node.
- If you are on Cloud Exchange v6.0.0 or later, you can stop the nodes from the UI. Go to Settings > General > Node Configurations, stop the secondary nodes first, and then stop the primary node.
- Otherwise, log in to each node via CLI, browse to the directory
ta_cloud_exchange/, or/opt/cloudexchange/cloudexchange/, and execute the command$ sudo ./stop. Run it on each secondary node first, and then on the primary node.
- Log in to each Cloud Exchange node via CLI and browse to the directory where Cloud Exchange is installed, based on the deployment type:
- Containerized Deployment:
$ cd ta_cloud_exchange/
- CE as a VM Deployment:
$ cd /opt/cloudexchange/cloudexchange/
- Containerized Deployment:
- On the primary node:
- Remove the existing certificates from the shared directory and the local directory, using these commands:
$ sudo rm -f /opt/shared/data/config/ssl_certs/cte_cert.crt /opt/shared/data/config/ssl_certs/cte_cert_key.key $ sudo rm -f data/ssl_certs/cte_cert.crt data/ssl_certs/cte_cert_key.key
- Copy the new certificates to both directories:
$ sudo cp <Path_of_SSL_Certificate>/cte_cert.crt <Path_of_SSL_Certificate>/cte_cert_key.key /opt/shared/data/config/ssl_certs/ $ sudo cp <Path_of_SSL_Certificate>/cte_cert.crt <Path_of_SSL_Certificate>/cte_cert_key.key data/ssl_certs/
- Set the permissions for the shared directory:
$ sudo chown 1001:1001 /opt/shared/data/config/ssl_certs $ sudo chmod 755 /opt/shared/data/config/ssl_certs $ sudo chmod 644 /opt/shared/data/config/ssl_certs/cte_cert.crt $ sudo chmod 644 /opt/shared/data/config/ssl_certs/cte_cert_key.key
- Set the permissions for the local directory:
$ sudo chown -R 1001:1001 data/ssl_certs $ sudo chmod -R 755 data/ssl_certs $ sudo find data/ssl_certs -type f -exec chmod 644 {} + $ sudo chmod 600 data/ssl_certs/cte_cert_key.key - Start the primary node using the command
$ sudo ./start, and verify that the Cloud Exchange UI is accessible with the new certificate.
- Remove the existing certificates from the shared directory and the local directory, using these commands:
- On each secondary node, one at a time:
- Copy the certificates from the shared directory to the local directory:
$ sudo rm -f data/ssl_certs/cte_cert.crt data/ssl_certs/cte_cert_key.key $ sudo cp /opt/shared/data/config/ssl_certs/cte_cert.crt /opt/shared/data/config/ssl_certs/cte_cert_key.key data/ssl_certs/
- Set the permissions for the local directory using the commands:
$ sudo chown -R 1001:1001 data/ssl_certs $ sudo chmod -R 755 data/ssl_certs $ sudo find data/ssl_certs -type f -exec chmod 644 {} + $ sudo chmod 600 data/ssl_certs/cte_cert_key.key - Start Cloud Exchange using the command
$ sudo ./start.
- Copy the certificates from the shared directory to the local directory:
- In the Cloud Exchange UI, go to Settings > General > Node Configurations, and verify that all nodes are listed.

