Use the following instructions to set up HTTPS for Ganglia.
Set up the truststore for Ambari Server.
Set up the Ganglia server.
Log into the Ganglia server host.
Create a self-signed certificate on the Ganglia server host. For example:
openssl genrsa -out $gserver.key 2048 openssl req -new -key $gserver.key -out $gserver.csr openssl x509 -req -days 365 -in $gserver.csr -signkey $gserver.key -out $gserver.crt
Where
$gserver
is the Ganglia server hostname.Install SSL on the Ganglia server host.
yum install mod_ssl
Edit the SSL configuration file on the Ganglia server host.
Using a text editor, open:
/etc/httpd/conf.d/ssl.conf
Add lines setting the certificate and key file names to the files you created above. For example:
SSLCertificateFile = $gserver.crt SSLCertificateKeyFile = $gserver.key
Restart the
httpd
service on the Ganglia server host.service httpd restart
Set up and restart the Ambari Server.
Log into the Ambari Server.
Add the cert to the truststore on the Ambari Server host.
ambari-server setup-ganglia-https
The setup script uses the truststore path and password you added to
ambari.properties
above.Restart the Server
ambari-server restart