

M ServerHello: The server responding back to acknowledge we're talking in TLS now.
M Certificate: This is a copy of the certificate that is installed on the server.
M ServerKeyExchange: This is part of the protocol used to allow both devices to arrive at the same symmetric key to use after the TLS handshake
M CertificateRequest: Only used if the server wants to verify the client with a certificate. This can be conveyed as a form of authentication.
M ServerHelloDone: The server is done with it's part of the TLS handshake.
A Certificate: Only provided if needed; see CertificateRequest above.
A ClientKeyExchange: This is the companion to ServerKeyExchange to make sure both sides have a symmetric key.
A CertificateVerify: Part of CertificateRequest and Client-Side TLS.
A ChangeCipherSpec: This is usually the indication that we're done with everything and were' ready to start talking with encryption.
A Finished: This is the end of the client side.
M ChangeCipherSpec: The server is agreeing to the cipherspec.
M Finished: It's all done and we're fully encrypted now.
At this time when it's done we will see the files on both Agent Side/Manager Side



Every Wazuh agent sends data to the Wazuh manager via a secure way called OSSEC message protocol. This protocol encrypts messages using a pre-shared key. In a fresh install, if you didn’t register and configure your agent during the installation time, the agent can’t communicate with the manager due to the lack of this pre-shared key.
The registration process consists of a mechanism to create a trusted relationship between the Manager and an Agent. This process could be done in a Manager itself or with a registration service. This service runs on the Manager, where an Agent could request a pre-shared key using some credentials. The Manager will reply with the key and store the new Agent in a local database.
Another approach is using the Wazuh API, this is just a wrapper for local registration on Wazuh manager.
1 - [Question] I think it's method simples to Agent Registration. Is this correct? We only are careful about the trusted network which will permit Agent Registration with the Manager Side
2 - [Question] I don't know where we will modify client key on a server/insert more trust network/Do we have to need restart Manager Side? please help me clarify.
Regards,
The auto-enrollment functionality also allows the agent to request a new key in case of losing the connection with the manager. If this happens, the agent will check if the manager IP is defined in the ossec.conf and if it is, it will request a new key by default every 10 seconds up to 5 consecutive times. Both the number of request attempts and the frequency these keys are requested can be customized on the ossec.conf.
The agent enrollment can still be done using the agent-auth, but with the auto-enrollment, there is no need to request the key. It is worth mentioning that all the agents from previous versions are still 100 % compatible with the 4.x version.
Having said so, the simplest method is using the agent enrollment plus deployment variables. With only one step, you can deploy and register your agent.
Reference:
- https://wazuh.com/blog/wazuh-4-0-released/
Let us know if you have further questions.
Regards,
Miguel Casares

--
You received this message because you are subscribed to a topic in the Google Groups "Wazuh mailing list" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/wazuh/mrv86AtO4IQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to wazuh+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/wazuh/371fbed3-bdaa-4b6e-9d57-933dcede5e7bn%40googlegroups.com.