To set up each of your Linux servers for the Sensor Gateway installation, follow this procedure.
- Provision an SSL signed certificate.
- CA-signed certificate is preferred. For more information, see Sensor Gateway Certificates.
- Self-signed certificate. However, it requires pushing these certificates into the trust store of each sensor workload.
- Private key.
- If you have a CA-signed certificate or an internal certificate that has an Online Certificate Status Protocol (OCSP) responder, you may have to provision the entire certificate chain. The Sensor Gateway uses the certificate and its chain to get the OCSP response and staple it with every request. This ensures that the sensors do not reach out to the OCSP responders directly.
You can generate the Certificate Chain file by using any online service that offers a certificate chain composition. For more information, see Create a Certificate Chain File.
- Acquire a Static IP for each Sensor Gateway server.
- Reserve a DNS entry. For example,
To install the Sensor Gateway in your environment, map its DNS to the IP that you previously allocated to the server.
Use the DNS mapping to IP if you plan to configure your Sensor Gateway with its FQDN.
- Ensure that sensors can reach the Sensor Gateway.
- Ensure that port 443 is open on the Sensor Gateway.
- Ensure that the Sensor Gateway has connectivity to the Internet. The Sensor Gateway must have connectivity to Carbon Black Cloud. However, it might need to reach out to CA providers to get Online Certificate Status Protocol (OCSP) responses for the validity of its digital certificate.
- Log into your server and ensure OpenSSL is installed.
If not already, install OpenSSL using a system package manager.
- Prepare the certificates.
- Name the SSL Certificate file as sgw_certificate.pem.
- Name the SSL Certificate Private Key file as sgw_key.pem.
- (Omit this step if you are using a self-signed certificate.) Name the SSL Certificate Chain file as sgw_chain.pem.
- (Omit this step if you are using a self-signed certificate.) To verify if the certificate is valid, run the command:
openssl verify -CAfile sgw_chain.pem sgw_certificate.pemIf the certificate is valid, you get the response: sgw_certificate.pem: OK
- Create /data folder at the root level and make the following subfolders on your server.
- /data/certs - Stores certificates, keys, and optionally, certificate chain file.
- /data/logs - Stores the logs generated at runtime.
- Copy the certificate, the private key, and the chain file in the /data/certs directory.
Note: You do not need the chain file if you are using self-signed certificate.
- Download the installation script https://prod.cwp.carbonblack.io/sgw/installer/linux/1.0.0/sensor_gw_install.zip.
The script installs and sets up the Sensor Gateway on each server individually.
- Acquire the Sensor Gateway registration key.
- Log into the Carbon Black Cloud console with your account credentials.
- Navigate to the Add API Key. page and click
- Enter a name and select Custom from the Access Level type drop-down menu.
- Select Sensor Gateway from the Custom Access Level drop-down menu.
- Save the API Secret Key and the API ID.
You are prompted to use them when installing the Sensor Gateway.
What to do next
Install the Sensor Gateway.