keytool -genkey -keyalg RSA -alias ranger-admin -keystore ranger-admin-keystore.jks -storepass changeit -validity 360 0keysize 2048
In the above command, enter the FQDN of Ranger admin host for the 'Common Name' field (What is your first and last name).
chmod 400 ranger-admin-keystore.jks
- Uncheck ranger.service.http.enabled and ensure that the External URL points to https and runs on port 6182 (default HTTPS port).
- ranger.https.attrib.keystore.file: the location of Ranger admin keystore file created above (/etc/ranger/admin/conf/ranger-admin-keystore.jks)
- ranger.service.https.attrib.keystore.pass: the keystore password entered above (changeit)
- ranger.service.https.attrib.keystore.keyalias: alias entered above (ranger-admin)
- ranger.service.https.attrib.clientAuth: want
- ranger.service.https.attrib.ssl.enabled: true
- ranger.service.https.port: 6182
- ranger.service.https.attrib.keystore.file: should be the same as ranger.https.attrib.keystore.file
- ranger.service.https.attrib.client.auth: should be the same as ranger.service.https.attrib.clientAuth