Details
-
Improvement
-
Status: Resolved
-
Trivial
-
Resolution: Fixed
-
3.5.4, 3.6.0
-
None
Description
In org.apache.zookeeper.common.X509Util.org.apache.zookeeper.common.X509Util.createSSLContext exception messages contains keystore related messages instead of truststore messages for truststore location/password checks:
if (trustStoreLocationProp == null && trustStorePasswordProp == null) { LOG.warn("keystore not specified for client connection"); } else { if (trustStoreLocationProp == null) { throw new SSLContextException("keystore location not specified for client connection"); } if (trustStorePasswordProp == null) { throw new SSLContextException("keystore password not specified for client connection"); } try { trustManagers = new TrustManager[]{ createTrustManager(trustStoreLocationProp, trustStorePasswordProp)}; } catch (TrustManagerException e) { throw new SSLContextException("Failed to create KeyManager", e); } }