How to use .jks certificate to configure server side SSL in Apache Zeppelin
- User
How to use .jks certificate to configure server side SSL in Apache Zeppelin
- Assistant
To configure server side SSL in Apache Zeppelin using a .jks certificate, you can follow these steps:
-
Generate a keystore file (.jks) and a self-signed SSL certificate using a tool like
keytool. Replacekeystore.jkswith your desired filename and provide necessary details when prompted.keytool -genkey -keyalg RSA -alias my_alias -keystore keystore.jks -validity 3650 -
Place the generated keystore file in a secure location accessible to the Apache Zeppelin server.
-
Open the
zeppelin-site.xmlfile located in theconffolder of the Apache Zeppelin installation directory. -
Add the following configuration properties to enable SSL and specify the keystore file and password:
<property> <name>zeppelin.ssl</name> <value>true</value> </property> <property> <name>zeppelin.ssl.keystore.path</name> <value>/path/to/keystore.jks</value> </property> <property> <name>zeppelin.ssl.keystore.password</name> <value>keystore_password</value> </property>
-
- User
is change in cloudera/hadoop configuration is also required if server side SSL authentication is done in Apache Zeppelin
- Assistant
Yes, if you have enabled server-side SSL authentication in Apache Zeppelin, you also need to make changes in the Cloudera/Hadoop configuration to ensure secure communication between Apache Zeppelin and the Hadoop cluster.
-
Open the Cloudera/Hadoop configuration file
core-site.xmllocated in the/etc/hadoop/confdirectory on your Cloudera cluster. -
Add the following configuration properties to enable SSL and specify the truststore file and password:
<property> <name>hadoop.ssl.enabled</name> <value>true</value> </property> <property> <name>hadoop.ssl.server.conf</name> <value>ssl-server.xml</value> </property> <property> <name>hadoop.ssl.client.conf</name> <value>ssl-client.xml</value> </property> <property> <name>hadoop.ssl.server.truststore.location</name> <value>/path/to/keystore.jks</value> </property> <property> <name>hadoop.ssl.server.truststore.password</name> <value>keystore_password</value> </property>
-