Replacing Wazuh self-signed certificates with your own CA

Replacing the self-signed certificates Wazuh generates with certificates from your own CA covers the indexer, server, dashboard and API, and needs a renewal plan before the first expiry.

On this page

Why replacing Wazuh self-signed certificates with your own CA matters

Replace the generated self-signed certificates in a Wazuh deployment with certificates from your own certificate authority (CA) before the platform holds production data or collects from production agents. A private CA gives auditors, agents and internal clients one trust anchor they can verify, and it gives your team one place to manage issuance, revocation and renewal. Self-signed certificates work for a lab, but they push every client toward trusting or bypassing individual certificates, which is hard to defend in a security review.

The certificates touch four components. The Wazuh indexer stores alerts and must be reached securely by the server and dashboard. The Wazuh server receives agent data and exposes the API, and the Wazuh dashboard is the web interface analysts and auditors use. The Wazuh agents on endpoints also depend on trusting the manager. According to the Wazuh components documentation, these four parts make up the platform, so a certificate plan that covers only the dashboard leaves the other interfaces on default trust. Confirm in your own environment which hostnames, IP addresses and subject names each component presents, because a mismatch causes failures that look like outages.

The need is sharpest before go-live, for three reasons: agent enrollment and dashboard access will be wired to the trust chain, certificate lifetimes will eventually expire, and renewal must not depend on one person remembering a manual step. Decide early who owns the CA, how long issued certificates last, how renewals are scheduled and how a rotation is tested without taking the platform down. Ask your security team whether an internal CA already exists before generating anything new.

Which Wazuh certificates a custom CA must cover

A Wazuh deployment presents certificates on several surfaces, and each one is trusted by a different client. Replacing the generated self-signed set means issuing a certificate for each surface from the same CA chain, then distributing that chain to every client that verifies it. Check each surface separately, because a single wrong chain can break one path while the others appear healthy.

Indexer transport and HTTP certificates

The indexer uses one certificate for node-to-node transport and another for its HTTP interface. Transport certificates let indexer nodes in a cluster trust each other, while HTTP certificates secure the API that the server and dashboard call. If the transport chain is wrong, nodes fail to join the cluster. If the HTTP chain is wrong, the server and dashboard cannot write or query alerts. Confirm the exact file names, keystore entries and paths for your installed version in the documentation before replacing anything.

Wazuh components

Wazuh server and agent-facing certificates

The Wazuh server presents certificates that agents and cluster peers use when they connect for enrollment and ongoing communication. Agents must trust the chain that the server presents, so distributing the new CA root to endpoints is part of the change, not an afterthought. A mismatch typically shows up as agents that stop reporting after a server restart. Confirm which certificate files the server reads for agent communication and for cluster traffic in your version's documentation.

Wazuh dashboard certificate

The dashboard serves the web interface that analysts and administrators use, and browsers check its certificate against their trust store. A certificate issued by your internal CA only appears trusted if the root is installed on managed workstations. The dashboard also connects back to the indexer and server, so its trust settings must match the chain used by those components. Confirm the dashboard certificate and CA file paths for your installed version before changing the browser trust configuration.

Wazuh server API on the management port

The server API listens on the management port and is called by the dashboard, scripts and automation. Clients that call the API must trust the certificate it presents, so any automation that pins the old self-signed certificate will fail once it is replaced. Review every integration, script and CI job that calls the API, and plan a window to update their trust configuration. Confirm the API certificate settings and the port in the documentation for your version.

How certificates from your CA reach each Wazuh component

The diagram starts at your internal certificate authority, which signs one certificate for each Wazuh component: the indexer, the server, the dashboard and the API. Each component then loads its own certificate and the CA root, so the parts can verify one another. Agents, browsers and administrators' tools need the same root in their trust stores, or they will show trust errors. The renewal loop at the bottom reissues certificates before they expire and repeats the distribution, so a renewal is handled as a planned change rather than an outage.

Your CA signs each Wazuh component's certificate, and clients trust the CA root.

Certificate source options and when each fits

This table compares three sources for the certificates on the Wazuh indexer, server, dashboard and API: the generated self-signed set, an enterprise or internal CA, and a publicly trusted certificate on the dashboard only. Read each row against your own trust boundary and renewal ownership, and use the last row to decide which path fits your environment.

OptionTrust scopeWho renewsOperational effort and fit
Generated self-signed certificatesOnly the components that share the generated chain trust each other; browsers and agents need manual trust or exceptionsThe installer or the operator who regenerates them, usually with no external recordLowest setup effort; suits lab, proof-of-concept or isolated test environments, not regulated production
Enterprise or internal CATrusted by hosts and browsers that receive the root certificate from your PKI or endpoint policyYour PKI team, through its issuance and renewal process and tracked expiry datesModerate setup with a CSR and chain handling per component; fits organizations that already run an internal PKI
Publicly trusted certificate on the dashboard onlyTrusted by browsers for the dashboard hostname; indexer, server and API still need internal trustWhoever runs the ACME or purchase process, which must work with your DNS and network designAdds public DNS and reachability requirements; the Let's Encrypt and NGINX path is covered in the sibling dashboard TLS topic
Indexer and server trust between nodesNeeds a chain that every Wazuh node and the API client accepts, so one CA usually covers the clusterSame owner as the chosen CA; plan a single renewal calendar for all componentsCertificate changes touch several services at once, so schedule them in a maintenance window
Agent-facing trustAgents must trust the manager identity during enrollment; a separate guide covers agent certificate verificationDepends on whether your CA or Wazuh's own tooling issues the manager certificateConfirm the enrollment trust model before you replace the server certificate
Air-gapped or offline networksInternal CA is usually the only practical option because public issuance needs outbound reachabilityInternal PKI team, with root distribution handled through images or configuration managementPlan root distribution and renewal procedures before first deployment
Best fit for regulated productionInternal CA covering all four components, with a documented chain and inventoryNamed PKI owner with alerts well before expiryConfirm with your assessor which evidence (issuance records, expiry monitoring) they expect

How to move Wazuh from self-signed certificates to your CA

This sequence replaces the generated self-signed certificates on the Wazuh indexer, server, dashboard and API with certificates from your own CA, with a backup and a verification check at each stage.

  1. Inventory certificates and deployment layout

    Record every Wazuh component in scope: indexer nodes, server nodes (including any cluster workers), the dashboard and the API endpoint. For each, note the host names and IP addresses, the certificate and key file paths in use, the expiry dates of the current certificates, and whether the deployment is all-in-one or distributed. Confirm the installed Wazuh version and install method, because the file layout and commands differ between versions and between installers, Docker, Kubernetes and configuration management. Done when you have a written table that maps every component to its current certificate files and its owner.

  2. Agree naming and SAN requirements with the PKI owner

    Work with the team that runs your certificate authority to define the subject names and subject alternative names for each component. Include every host name, short name and IP address that clients use to reach the service, including load balancer names if agents or the dashboard connect through one. Agree key type, key size, validity period and whether the certificates need extended key usage for server or client authentication. Ask the PKI owner which root and intermediate certificates clients must trust, and how revocation is published. Done when the PKI owner signs off on a request sheet listing each certificate and its SAN values.

  3. Generate keys and certificate signing requests

    Generate a private key and a certificate signing request for each component on a host you control, keeping the private keys off shared storage. Restrict file permissions on the key files so only the service account can read them. Submit each CSR to your CA using the approved request sheet. Check each CSR before submission with a command that prints its subject and SAN values, and confirm they match the sheet. Done when every CSR matches the request sheet and every private key is stored at a path you have recorded.

  4. Issue, chain and validate the new certificates

    Retrieve the signed certificates and build the full chain file that includes the intermediate certificates. Confirm each certificate's subject, SAN values, validity dates and issuer, and confirm that the private key matches the certificate by comparing their public key fingerprints. Verify that the chain validates against the root certificate that your clients trust. Done when each component has a certificate, key and chain file that pass these checks, and the root certificate that agents and browsers need is identified and distributed through your normal channel.

  5. Back up the current configuration and certificates

    Before changing anything, copy the Wazuh configuration directory, the existing certificate and key files, and any keystore or security configuration on each node to a location outside the live path. Record checksums of the copies. Take a snapshot of the indexer data if your platform supports it, and confirm the cluster is healthy first. Note the current service state so you can roll back. Done when you have a tested backup set for every node and a written rollback procedure with the exact files to restore.

  6. Replace certificates one component at a time

    Replace certificates in the order the Wazuh documentation for your installed version specifies, which typically covers the indexer first, then the server and its API, then the dashboard. Update the paths in each component's configuration file and keep the trust store consistent across nodes so the remaining components can still verify each other during the change. Apply the changes to one node or component, test it, then move on. Where a cluster is involved, follow the documented rolling order so the service stays available. Done when each component starts with its new certificate and its configuration points to the new files.

  7. Restart services in the documented order

    Restart the components in the order the documentation for your version requires, checking the health of each one before starting the next. For the indexer, confirm the cluster returns to a healthy state after each node restarts. For the server, confirm the daemons start cleanly and that no certificate errors appear in the logs. Restart the dashboard last. Done when every service reports running, the indexer cluster reports healthy status, and the logs for each component show no certificate or handshake errors.

  8. Verify endpoints, agents and renewal tracking

    Test each endpoint from a client that trusts your CA: open the dashboard in a browser, call the API over HTTPS, and confirm the indexer responds with the expected certificate. Check that agents still connect and report, and that agent connections validate the manager certificate if you have enabled that setting. Record each certificate's expiry date in your renewal calendar and assign an owner for renewal, including the steps to reload the services after a renewal. Done when every endpoint and a sample of agents verify the new certificates, and the renewal schedule is recorded.

Planning certificate renewals so Wazuh does not go dark

Expiry is the most common cause of an outage after a move to a custom CA, because the certificates that were issued work silently until the day they lapse, and by then the indexer, server, dashboard, API and agents may all fail at once. Before the cutover is signed off, write a renewal register that lists every certificate and key in the deployment, its expiry date, the team that owns it, the exact reload or restart step that activates a new file, and how the new trust anchor reaches each agent. Agent trust deserves its own line item, because a manager certificate that changes without the matching CA in the agents' trust path will stop enrollment and communication even when the central components are healthy. Confirm the expiry and reload procedure for each component against the Wazuh documentation for your installed version rather than relying on memory from the initial build.

Test the renewal in a non-production copy before the first real expiry approaches. Clone the deployment, issue a short-lived replacement certificate from the same CA, run the documented steps in order, and then verify that the indexer cluster health is green, the dashboard and API log in, and a test agent reconnects and keeps reporting. Repeat the exercise on each renewal, because the register and the steps drift over time. Add the certificate checks to the same routine as your backups and Wazuh upgrades: take a backup before any certificate change, and rerun the renewal test after each upgrade. Wazuh 4.14 is the current release line, and its patch releases arrived roughly every one to two months in 2026, so a renewal procedure that passed on one patch level should not be assumed to pass on the next without a retest.

Set alerts well before expiry, not on the day it lapses. Assign a named owner for each entry in the register and a backup owner who can run the procedure during an absence. Ask your CA team to confirm how renewal requests are approved, how long issuance takes and whether the root or intermediate certificate has its own expiry that would invalidate every leaf certificate at once. Those answers decide whether a renewal is routine or an emergency, and they belong in the plan before the first certificate expires.

Security controls for keys, trust stores and admin access

Once your own certificate authority issues the indexer, server, dashboard and API certificates, the CA becomes the most sensitive trust anchor in the deployment. The cards below cover the controls that protect it, from private key files and the root key to who can reissue certificates and how changes are recorded. Confirm each control against your own key management policy and the Wazuh documentation for your release before you apply it.

Private key file protection

Every leaf private key that Wazuh reads, such as the keys for the indexer, server, dashboard and API, should be readable only by the service account that needs it, with the owner and mode set explicitly on each file and its parent directory. Check that backups, configuration management repositories and support bundles do not copy these keys in plain text. Keep the key paths in your change record so a permissions review can be repeated after each upgrade or renewal. Confirm the expected owners and modes in the Wazuh documentation for your release.

Offline CA root key storage

The root key of your certificate authority signs intermediate or leaf certificates, so its compromise affects every Wazuh component that trusts it. Many teams keep the root key offline, on an HSM or an encrypted medium held under dual control, and use a subordinate issuing CA for day-to-day signing. Write down who can access the root, how access is logged and how the key is recovered if the custodian leaves. Confirm these requirements against your internal PKI policy.

Limiting who can reissue certificates

Certificate reissuance should be a defined, approved task rather than something any administrator with shell access can do. Restrict signing rights on the issuing CA to named roles, require a second approver for certificates that name new hostnames or IP addresses, and keep the certificate signing requests in a reviewed queue. This matters most during renewals, when a rushed reissue can introduce a wrong subject alternative name. Confirm the approval workflow with your PKI owner.

Distributing trust to agents

Agents need the CA certificate to verify the manager, and any change to that trust store has to reach every endpoint without opening a path for an attacker to enroll. Distribute the root or issuing CA certificate through your normal configuration management channel, and keep enrollment protections such as an enrollment password in place during the change. Test the rollout on a small agent group before the full fleet. Confirm the trust and enrollment steps in the Wazuh agent identity documentation for your release.

Logging certificate changes

Record every certificate issuance, renewal, revocation and trust store change with the requester, approver, serial number, subject names and expiry date. Keep these records outside the Wazuh deployment so that an attacker who gains admin access to Wazuh cannot erase the trail. Compare the expiry inventory with the dates on your renewal calendar at least monthly. Confirm log retention requirements with your compliance owner.

Separating admin access from signing

The people who administer the Wazuh servers, indexers and dashboard should not also hold the keys to sign their own certificates. Keep the Wazuh administrator accounts and the CA signing rights in separate groups, and review both groups on the same schedule. This separation limits what a single compromised administrator account can do during a certificate change. Confirm how these roles map to your identity provider and access model.

Questions teams ask before replacing Wazuh certificates

What drives the effort and cost of replacing Wazuh self-signed certificates?

The main cost driver is how many components and nodes must change, not the certificate step itself. Each indexer node, server node, the dashboard and the API need certificates issued from your CA, and each one must be configured, restarted and verified in the right order. Distributed deployments with several indexer or server nodes take longer than an all-in-one install. Cost also rises with the number of places certificates are referenced, such as load balancers, reverse proxies and monitoring probes. Ask any quote to list the nodes in scope, who signs certificates, and whether the work includes testing rollback. Most of the work is one-time, while renewal procedures recur.

How long does a certificate replacement take, and what sets the duration?

Duration depends on the size of the deployment, the change window available and how quickly your PKI team can issue certificates with the required attributes. Wazuh components restart during the change, so teams usually schedule it outside peak monitoring hours and confirm agent behavior first. Delays commonly come from waiting on certificate approvals, unclear subject names and DNS entries, and discovering that a downstream system pins the old CA. Ask for a written plan that lists the change window, the rollback point and the verification steps before any production node is touched.

What does the work need from our internal PKI and platform teams?

The PKI team needs to decide on the CA hierarchy, issue certificates for each component, and define key sizes, validity periods and extended key usage that match the Wazuh documentation. The platform team must provide hostnames, IP addresses and DNS names that appear in each certificate's subject alternative names, plus access to the nodes and a change window. Both teams should agree how the CA root is stored and who can sign. Ask your PKI team to confirm the internal CA can issue server and client certificates and that its trust chain is distributed to every system that talks to Wazuh.

Can an in-house team replace the certificates without outside help?

Yes, a capable in-house team can do this using the Wazuh documentation, provided it has Linux administration skills, access to the CA and a tested rollback plan. The work is mostly careful sequencing and verification rather than specialized engineering. Outside help is most useful when the deployment is distributed, when the team has not run the Wazuh cluster before, or when the change must be documented as evidence for an assessment. Whichever route you choose, agree in writing who owns each node, who approves the change and who signs off the verification results.

What happens to agents during the certificate switch?

Agents keep their current connection until the server presents a certificate they cannot verify, so the risk is a break in communication after the change rather than during it. If agents trust only the old CA, they will stop reporting once the server certificate changes. Plan to distribute the new CA certificate to agents before switching the server, confirm that a test agent reconnects, and then proceed across the fleet in stages. Check agent logs for certificate verification errors during the pilot. The agent-side trust configuration is covered in the agent identity verification topic.

How do we keep certificate renewals from lapsing?

Renewals lapse when expiry dates are not tracked and no one owns the renewal procedure. Record the issue and expiry date of every Wazuh certificate in an inventory, set alerts well before expiry, and assign a named owner. Test the renewal procedure in a non-production environment at least once so the steps are known before they are urgent. Confirm with your PKI team whether renewals are automated and whether the chosen validity period matches your policy. Expired certificates can stop agents and the dashboard from communicating, so treat renewal as a recurring operational task with a documented runbook.

How DeployOpen scopes and delivers certificate replacement for Wazuh

DeployOpen is a Chainscore Labs company that plans, implements, hardens, documents and supports self-hosted open-source platforms inside the client's own infrastructure, including their cloud accounts, data centers and air-gapped networks. For a certificate replacement, that means the work is done on your Wazuh indexer, server, dashboard and API nodes, against your certificate authority and your change process, with the results left in your environment. Most engagements of this kind are fixed-scope. Before work starts, the written scope names which components are in play (for example, whether the distributed layout needs the indexer, server and dashboard certificates replaced in one change window or in stages), which hostnames and subject alternative names each certificate must carry, which certificate files and keystore entries will change, and which agents and integrations will need attention afterward. Deliverables and timelines are agreed in the same document.

Scope also determines what evidence you receive. DeployOpen prepares controls and evidence for compliance assessments, such as configuration records, certificate inventories, validation output and the change record, so your compliance and security teams can review the result. DeployOpen does not issue audit reports, attestations or certifications. Independent auditors and certification bodies make those determinations, and the written scope should say so plainly. Ask the provider which artifacts they will hand over, in what format, and who keeps the certificate inventory after the work is finished. Certificates expire on a schedule, so the renewal process is part of the deliverable, not an afterthought. Confirm with your internal CA team how issuance, revocation and renewal reminders work before you agree on a scope.

Retainers are the usual way to cover what follows the initial change. They can include renewal support when certificates approach expiry, validation after Wazuh upgrades or certificate-related configuration changes, and updates to the runbook as your CA policy or the Wazuh release line changes. Because Wazuh 4.14 patch releases have arrived roughly every one to two months, confirm with the provider how they will check that certificate settings still hold after each planned upgrade. Ask for a quote built from the written scope, and ask how the retainer is priced, which events trigger work outside the retainer and what response expectations apply. DeployOpen does not publish a price list, so the quote is the point where cost components and recurring work become concrete for your environment.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.