Configure WebHCat Server to use SSL Encryption

About this task

You can configure WebHCat REST-API to use SSL (Secure Sockets Layer) encryption. The following WebHCat properties are added to enable SSL:
templeton.use.ssl
Default value: false
Description: Set this to true for using SSL encryption for  WebHCat server
        
templeton.keystore.path
Default value: <empty string>
Description: SSL certificate keystore location for WebHCat server
          
templeton.keystore.password
Default value: <empty string>
Description: SSL certificate keystore password for WebHCat server
            
templeton.ssl.protocol.blacklist
Default value: SSLv2,SSLv3
Description: SSL Versions to disable for WebHCat server
            
templeton.host
Default value: 0.0.0.0
Description: The host address the WebHCat server will listen on

Modifying the webhcat-site.xml file:

Procedure

Configure the following properties in the webhcat-site.xml file to enable SSL encryption on each node where HWebHCat is installed:
<!-- WebHCat SSL -->
<property>
  <name>templeton.use.ssl</name>
  <value>true</value>
</property>
            
<property>
  <name>templeton.keystore.path</name>
  <value>/opt/mapr/conf/ssl_keystore</value>
</property>
            
<property>
  <name>htempleton.keystore.password</name>
  <value><ssl-keystore-password></value>
</property>
NOTE After running /opt/mapr/server/configure.sh -R, all properties needed to enable SSL encryption for WebHCat are added automatically to webhcat-site.xml on the Mapr-SASL secure cluster.
To check status of WebHCat server configured for SSL encryption, use following command:
curl -k 'https://<user>:<password>@<host>:50111/templeton/v1/status'