ZOOKEEPER-4990: accept ssl.* in client config
Summary:
- Allow ZKClientConfig to fall back to server-style ssl.* keys when zookeeper.ssl.* is absent.
- Add test coverage for the fallback and precedence behavior.
- Document zkCli TLS client.properties usage.
Motivation: Client config files copied from zoo.cfg (ssl.* keys) don’t populate zookeeper.ssl.* today, which can lead to TLS handshake failures. This makes zkCli client configuration compatible with server-style keys while keeping zookeeper.ssl.* as the preferred form.
Validation:
- mvn -pl zookeeper-server -Dtest=ZKClientConfigTest test (Passed)
All checks are passing and test coverage has been added.
When convenient, could a committer please review and merge if everything looks good?
Thank you for your time.
Oh, I see know. These properties already work fine in the client config if the zookeeper. prefix is present. You actually want to use your zoo.cfg server config file for client configuration without modification.