I'm not sure you can do this via dynamic config, but I remember there was a ticket about it.
You can set the secure client port via static configuration (zoo.cfg) by setting secureClientPort=... Andor On Mon, 2025-04-07 at 12:10 +0000, Andreas Mock wrote: > Hi all, > > relatively new to zookeeper I'm collecting all puzzle pieces to get > an ensemble (3.9.3) up and running as secure as possible. > > Now I face a situation where I can't find a solution or > documentation: > > 1. > https://zookeeper.apache.org/doc/r3.9.3/zookeeperAdmin.html states > that you can use secureClientPort to declare an additional port to > connect to via SSL. > 2. > But the newer configuration shall be done via new configuration > format due to > https://zookeeper.apache.org/doc/r3.9.3/zookeeperReconfig.html > > But I don't understand how to declare an encrypted and non-encrypted > port with the new config format. > Currently I have an ensemble up and running without encryption and > wanted to add secure ports one by one in the running ensemble. > > Does anybody has a hint for me. > > Best regards > Andreas >
