Hi CJK
It seems you're following the distributed deployment update process. Please make sure that you have created the certificates first, following the steps mentioned in the documentation here: Distributed Deployment Guide - Adding a Server Node.
We recommend you utilize pre-existing root-ca keys to generate certificates for new nodes. Perform the steps below on your existing Wazuh server node to generate the certificates.
Create a config.yml file in the /root directory to add the new Wazuh server node(s):
touch /root/config.ymlEdit the /root/config.yml file to include the node name and IP of the new node:
nodes:
# Wazuh server nodes
server:
- name: <EXISTING_WAZUH_SERVER_NODE_NAME>
ip: <EXISTING_WAZUH_SERVER_IP_ADDRESS>
node_type: master
- name: <NEW_WAZUH_SERVER_NODE_NAME>
ip: <NEW_WAZUH_SERVER_IP>
node_type: workerReplace the values with your node names and their corresponding IP addresses.
Extract the wazuh-certificates.tar file.
mkdir wazuh-install-files && tar -xf ./wazuh-certificates.tar -C wazuh-install-filesDownload and run ./wazuh-certs-tool.sh to create the certificates for the new Wazuh server node using the pre-existing root-ca keys:
curl -sO https://packages.wazuh.com/4.7/wazuh-certs-tool.sh
bash wazuh-certs-tool.sh -A wazuh-install-files/root-ca.pem wazuh-install-files/root-ca.keyCopy the newly created certificates to the wazuh-install-files folder making sure not to replace the admin certificates:
cp wazuh-certificates/<NEW_WAZUH_SERVER_NODE_NAME>* wazuh-install-files
cp wazuh-certificates/<EXISTING_WAZUH_SERVER_NODE_NAME>* wazuh-install-filesCompress the certificates folder into a new wazuh-certificates.tar file and copy it to the new Wazuh server node(s). You can make use of the scp utility to securely copy the compressed file:
tar -cvf ./wazuh-certificates.tar -C ./wazuh-install-files/ .
scp wazuh-certificates.tar <TARGET_USERNAME>@<TARGET_IP>:
This will copy the certificates to the home directory of the logged in user on the target system. You can change this to specify a path to your installation directory.
Then you need to Configure existing components to connect with the new node following the steps mentioned here:
https://documentation.wazuh.com/4.7/user-manual/upscaling/adding-server-node.html#id2Once the certificates have been created and copied to the new node(s), you can now proceed with installing and configuring the Wazuh server node. For that refer
https://documentation.wazuh.com/4.7/user-manual/upscaling/adding-server-node.html#wazuh-server-node-s-installationFollow these steps and document to add the worker node.
Hope this helps