Configure Ranger Admin Database for SSL-Enabled MySQL (Ranger SSL)
When an SSL-enabled database is configured for use with Ranger, you must add certain configurations to Ranger
-
In Ambari>Ranger>Configs>Advanced>Custom
admin-properties, add the following parameters:
db_ssl_enabled=Truedb_ssl_required=Truedb_ssl_verifyServerCertificate=Truejavax_net_ssl_keyStore=/etc/ranger/admin/keystorejavax_net_ssl_keyStorePassword=rangerjavax_net_ssl_trustStore=/etc/ranger/admin/truststorejavax_net_ssl_trustStorePassword=ranger
Change keystore and truststore file paths according to your environment.
If certificate verification is not required, you can set value
falsein propertydb_ssl_verifyServerCertificate. In this case, keystore and truststore file location need not to be valid and/or mandatory. -
In Ambari>Ranger>Configs>Advanced>Custom
ranger-admin-site, add the following parameters:
ranger.db.ssl.enabled=trueranger.db.ssl.required=trueranger.db.ssl.verifyServerCertificate=trueranger.keystore.file=/etc/ranger/admin/keystoreranger.keystore.password=ranger
Change keystore file path according to your environment.
If certificate verification is not required, then you can set value
falsein propertyranger.db.ssl.verifyServerCertificate. In this case, keystore and truststore file location need not to be valid and/or mandatory. -
In Ambari>Ranger>Configs>Advanced>Advanced
ranger-admin-site, add the following parameters:
ranger.truststore.file=/etc/ranger/admin/truststoreranger.truststore.password=password
- Install/restart Ranger.

