When adding trusted agents to a cluster without shutting down most of the nodes, you need to invoke the verifyClusterCertificate.pl script to confirm that the certificate files from the node you selected and from ZooKeeper match.
This procedure applies for Electric Flow versions 6.2 and after.
1. Go to https://electric-cloud.sharefile.com/f/foea14c1-88c7-438e-8fbf-8141729284a1 to download the verifyClusterCertificate.pl script.
2. Put verifyClusterCertificates.pl in the root of server data directory.
Example: On Windows, use C:\ProgramData\Electric Cloud\ElectricCommander.
3. Open the command line terminal, and change the directory to the root of server data directory.
Example: on Windows, enter cd C:\ProgramData\Electric Cloud\ElectricCommander
4. Run the script.
Example: On Windows, enter:
C:\ProgramData\Electric Cloud\ElectricCommander>ecperl verifyClusterCertificates.pl
a. If the current node has a matched (correct) certificate authority (CA), the output is:
This cluster's node contains matched conf/security folder with published in ZooKeeper.
Current conf/security directory may be copied to other cluster's nodes.
Then go to the next step in the procedure to add trusted agents to a cluster in the ElectricFlow 6.2 Installation Guide.
b. If the current node an unmatched (incorrect) CA, the output is:
This cluster's node does not contain matched conf/security folder with published in ZooKeeper.
Current conf/security folder should be replaced with data from correct cluster's node.
To resolve the issue, put the data from the correct cluster’s node in the current conf/security directory, and run the verifyClusterCertificate.pl script again.