Enabling SSL/TLS for OpsCenter and Agent communication - Tarball Installations
To enable SSL for tarball installations, edit the configuration file and run a script to generate the keys used by OpsCenter and the agents.
address.yaml
The location of the address.yaml file depends on the type of installation:- Package installations: /var/lib/datastax-agent/conf/address.yaml
- Tarball installations: install_location/conf/address.yaml
opscenterd.conf
The location of the opscenterd.conf file depends on the type of installation:- Package installations: /etc/opscenter/opscenterd.conf
- Tarball installations: install_location/conf/opscenterd.conf
Prerequisites
[agents] ssl_certfile
in
opscenterd.conf is in a .pem
format, run the following command to convert the format:openssl x509 -outform der -in /install_location/ssl/opscenter.pem -out /install_location/ssl/opscenter.der
- [agents] ssl_certfile
- The location of the SSL certificate used for SSL traffic between OpsCenter and the DataStax Agents. The default location is /var/lib/opscenter/ssl/opscenter.der for package installations and install_location/ssl/opscenter.der for tarball installations.
For more information about SSL cert file formats, see converting SSL certificates.
Procedure
- Optional:
Warning: If the SSL files already exist in the install_location/ssl directory, they are not automatically recreated. Before runningRun the OpsCenter setup.py script:
setup.py
, remove the old SSL files from that directory.sudo install_location/bin/jython install_location/bin/setup.py
The script generates the SSL keys and certificates used by the OpsCenter daemon and the agents to communicate with one another in the following directory: install_location/ssl -
Open opscenterd.conf in an editor and add an
[agents]
section with theuse_ssl
option set to enable SSL. See configuring the agent for ssl for more details on theuse_ssl
option.sudo vi install_location/conf/opscenterd.conf
[agents] use_ssl = true ssl_keyfile = install_location/ssl/opscenter.key ssl_certfile = install_location/ssl/opscenter.der agent_keyfile = install_location/ssl/agentKeyStore agent_keyfile_raw = install_location/ssl/agentKeyStore.key # for non-Java clients agent_certfile = install_location/ssl/agentKeyStore.der
- Restart the OpsCenter daemon.
-
If you need to connect to a cluster in which agents have already been deployed,
log in to each of the nodes and reconfigure the
address.yaml file. Reconfigure the agents on
all nodes.
Tip: If you do not want to manually edit all of the node configuration files, follow the installing DataStax agents automatically procedure.
- After opscenterd and all agents have been configured and restarted, verify proper agent connection through the Agent Status tab.