Creating the keystore.jks and truststore.jks files
Enabling encryption between nodes secures the data that is transferred across nodes so that it cannot be accessed by unauthorized hosts. Create a keystore.jks for the private key and the associated certificate or certificate chain.
- Create a self-signed certificate by entering the following command:
keytool -genkey -alias <alias> -keyalg RSA -keysize <enter size> -keypass <password> -keystore cluster-keystore.jks -storepass <password>
- Export the self-signed certificate so that it can be added to the truststore as
the trusted certificate by entering the following command:
keytool -export -alias <alias> -file <certificate> -keystore cluster-keystore.jks -storepass <password>
- Create the cluster-truststore.jks file by entering the following command:
keytool -import -alias <alias> -file client.cer -keystore cluster-truststore.jks -storepass <password>
Previous topic Enabling encrypted communication between nodes Next topic Uploading the keystore and truststore files