Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Note that with this property set the client could and should only connect to server’s “secureClientPort” secureClientPortwhich will be described shortly.

...

Code Block
themeEmacs
languagejs
zookeeper.ssl.keyStore.location="/path/to/your/keystore"
zookeeper.ssl.keyStore.password="keystore_password"
zookeeper.ssl.trustStore.location="/path/to/your/truststore"
zookeeper.ssl.trustStore.password="truststore_password"

Server

ZooKeeper server can use Netty by setting property:

Code Block
themeEmacs
languagejs
zookeeper.serverCnxnFactory="org.apache.zookeeper.server.NettyServerCnxnFactory"


ZooKeeper server also needs to provide a listening port to accept secure client connections. This port is different from and running in parallel with the known “clientPort”. It should be added in “zoo.cfg”:

Code Block
themeEmacs
languagejs
titlezoo.cfg
...
secureClientPort=2281

All secure clients (mentioned above) should connect to this port.


Then set up keystore and truststore environment like what client does.

Quorum

Not supported yet!

Authentication

...