Configuring SSL for Hue
Minimum Required Role: Configurator (also provided by Cluster Administrator, Full Administrator)
Hue as an SSL Client
Hue acts as an SSL client when communicating with Oozie, HBase and core Hadoop services. This means it may have to authenticate authenticate HDFS, MapReduce, and YARN daemons, as well as the HBase Thrift Server, and will need their certificates (or the relevant CA certificate) in its truststore.
Deploying the Hue Truststore:
You can create the Hue truststore by consolidating certificates of all SSL-enabled servers (or a single CA certificate chain) that Hue communicates with into one file. This will generally include certificates of all the HDFS, MapReduce and YARN daemons, and other SSL-enabled services such as Oozie..
$ keytool -exportcert -keystore hadoop-server.keystore -alias foo-1.example.com \ -storepass example123 -file foo-1.cert $ openssl x509 -inform der -in foo-1.cert > foo-1.pem
cat foo-1.pem foo-2.pem ... > huetrust.pem
- Open the Cloudera Manager Admin Console and navigate to the Hue service.
- Click Configuration.
- In the Search field, type Hue Service Environment to show the Hue Service Environment Advanced Configuration Snippet (Safety Valve) property (found under the category).
- Click the Value column to enable editing, and add the REQUESTS_CA_BUNDLE property set to the path of the Hue truststore in PEM format.
- Click Save Changes.
- Restart the Hue service.
Hue as an SSL Server
Perform the following steps to enable SSL for the Hue web server.
- Open the Cloudera Manager Admin Console and navigate to the Hue service.
- Click Configuration.
- In the Search field, type SSL to show the Hue SSL properties (found under the Hue Server Default Group category).
- Edit the following SSL properties according to your cluster configuration.
Hue SSL Properties Property Description Enable HTTPS Enable HTTPS for the Hue web server. Local Path to SSL Certificate Path to the SSL certificate on the host running the Hue web server. Local Path to SSL Private Key Path to the SSL private key on the host running the Hue web server. Hue only supports a key without a passphrase. - Click Save Changes.
- Restart the Hue service.