How to rotate OpenSearch TLS certificates without downtime
You can rotate expiring OpenSearch certificates on a running cluster without a node restart when the Security plugin reloads them. Since OpenSearch 2.8, the Reload HTTP Certificates API reloads the HTTP layer certificates on a node without a restart, but the call only succeeds if the request presents a superadmin admin certificate. The Security plugin also provides a way to reload transport certificates and to read the certificates each node is currently presenting. Those two capabilities, plus the admin certificate, decide whether this work stays a routine change or turns into a rolling restart. Teams usually need this page when a REST or node certificate is close to expiry, when a certificate authority is being replaced, or when a security review asks for proof that the cluster can rotate keys on a schedule.
Before you touch a production node, confirm three things in your own environment. First, confirm that the admin certificate your team uses is mapped to the superadmin role in the Security configuration, since the reload call will be refused otherwise. Second, confirm the OpenSearch version on every node, because the HTTP reload API is documented from 2.8 onward, and a mixed-version cluster during a rolling upgrade may not behave the same way on every node. Third, decide who owns the new certificate material, its private keys and the trust chain, so the replacement files are distributed consistently to each node's configuration directory before any reload is triggered.
Treat the rotation as a per-node operation with a check after each step. Read the certificate each node presents, confirm the new subject, issuer and expiry date, then trigger the reload on that node and repeat the read. Verify client connections, cluster health and transport traffic between nodes before moving on, and keep the previous certificate files available until every node has been validated. Ask your implementation partner or internal team to document which certificates are reloadable through the API, which still need a restart in your version, and how the rollback path works if a node rejects the new material. Confirm these details against the Reload HTTP Certificates API documentation and the Certificates API documentation for your release.
Which certificate changes fit which rotation method
This table compares the three ways to put new certificates into service: reloading HTTP certificates, reloading transport certificates, and a rolling node restart with replaced files. Read each row against your change to see which method fits and what access you need before you start. The main takeaway is that the reload APIs avoid restarts only for the layers they cover, so confirm transport support on your exact version first.
| Method | Scope | Admin certificate needs | Restart need and when it fits |
|---|---|---|---|
| Reload HTTP certificates | REST layer certificates used by clients and tools on port 9200 | Requires a superadmin admin certificate, available since OpenSearch 2.8 | No node restart. Fits when only the REST certificate is expiring or changing. |
| Reload transport certificates | Node-to-node certificates on the transport layer | Needs an admin certificate with rights to call the reload API; confirm the required role on your version | Confirm on your target version whether a reload applies without restart. Fits only if the API is available and tested in a non-production cluster first. |
| Rolling node restart with replaced files | Any certificate file on disk, including transport and HTTP | Admin certificate is needed only for checks after each node returns, such as the certificates API | Restart each node in turn while the cluster stays green. Fits when a reload API is unavailable, when the CA changes, or when file paths change. |
| Get node certificates check | Certificates currently presented by each node | Requires admin access through the Security plugin certificates API | No restart. Run before and after every method to confirm each node serves the expected certificate and expiry date. |
| Changing the certificate authority | Trust chain on every node and every client | Admin certificate must trust the new chain before the switch | Usually needs a rolling restart and client trust updates. Plan this as a separate change, not a routine rotation. |
Rotation sequence for a live cluster
This sequence replaces expiring node and REST certificates one node at a time, so the cluster keeps serving traffic and every step has a check before the next one starts. It ends with a verified set of certificates on every node and a tested path back to the previous set.
Inventory certificates and expiry on every node
The platform team lists each node's transport and REST certificate, its issuer, its subject alternative names and its expiry date, and records them in a rotation sheet. Run the check against every node, not only the ones that expire first, because a single node with an older chain can fail after the others are updated. The step is done when every node appears in the sheet with a known expiry and an owner for its replacement.
Confirm the superadmin certificate and trust chain
Confirm that the admin certificate used for the Security plugin has the superadmin role and that the certificate chain it presents is trusted by the nodes that will validate it. The reload API requires this admin certificate, so a mismatch will block the reload on every node. Check the chain from a node's perspective, not from a workstation, and confirm the admin certificate is not close to expiry itself. The step is done when a test call with the admin certificate is accepted by each node.
Stage new node and REST certificates on each node
Place the new certificate and key files on one node at a time, using the paths and file names already in its configuration, and keep the previous files in place with a clear name so they can be restored. The running node keeps its current certificates until the reload call, so staging does not change live traffic. Confirm file permissions and ownership match the existing files, and that the new certificates are signed by the same trusted authority as the chain the cluster already uses. The step is done when each node has both the old and new files and the new files parse correctly.
Call the reload API node by node
Call the Reload HTTP Certificates API, and the transport reload API where transport certificates are changing, against one node at a time using the superadmin admin certificate. Each call reloads the certificates without restarting the node, but the node still handles its share of requests while the reload runs, so start with a node that is not the only holder of data for any shard. Wait for the response to report success before moving to the next node. The step is done when every node has returned a successful reload response.
Verify the certificate each node presents
After each reload, connect to the node's REST port and to its transport port and check the certificate presented, its serial number, issuer and expiry date. Compare these values with the new certificate, not the old one, because a node that reports the old certificate has not picked up the change. Use the certificates API to read node certificates where it is available in your version, and cross-check against the external connection. The step is done when the presented certificate matches the staged one on that node.
Check cluster health between nodes
Before moving to the next node, check cluster health and confirm that shard allocation is unchanged and that no node has left the cluster. A status that drops from green or stops recovering is a signal to pause the rotation and investigate before any other node is touched. Also confirm that client applications and dashboards can still connect over TLS. The step is done when health matches the state recorded before the rotation started and the node rejoins cleanly.
Run the rollback check before closing
Before the change is closed, confirm the rollback path with a documented test: restore the previous certificate files on one non-critical node, reload, verify the old certificate is presented, and then return the node to the new certificates. This shows the previous files are intact and that the reload procedure works in both directions. Record the result in the rotation sheet along with the new expiry dates. The step is done when the rollback test has passed on at least one node and the sheet shows the new expiry for every node.
Security risks during certificate rotation
Rotating certificates on a live cluster creates short windows where keys, admin credentials and trust chains are exposed or inconsistent. The cards below pair each risk with one control you can check before, during and after the reload. Confirm each control against your own key management and logging setup.
Protect keys during staging
New node and REST private keys often sit on a build host, in a shared directory or in a ticket attachment before they reach the cluster. Treat every staged key as a secret from the moment it is generated. Store it in a restricted location with file permissions limited to the service account, and confirm that the signing host is not the same machine as your general administration workstation. Check who can read the staging path, not just who runs the deployment.
Limit superadmin certificate holders
The Reload HTTP Certificates API requires a superadmin admin certificate, so anyone who holds that certificate can change the certificates that secure client traffic. Keep the list of holders short, issue named or per-purpose admin certificates where your tooling allows it, and remove access when a person changes role. Ask your security team to confirm who holds the key today and where it is stored.
- Feature introduced in
- 2.8
Avoid mixed trust chains
If nodes load a new certificate signed by a different certificate authority than the one clients trust, connections fail for some callers while others still succeed. This is most likely when the CA bundle is updated on some nodes and not others, or when a client truststore is updated after the server. Before reloading, verify that the new chain validates against every truststore in use, including Dashboards, ingest clients and monitoring agents. Reload in an order that keeps a trusted path available at each step.
Audit every reload action
A reload changes the certificate that every client sees, so it should leave a record. Enable and review the Security plugin audit log for the admin user that calls the reload and certificate APIs, and record the change in your change system with the node list, the certificate serial and the operator. Confirm that the audit configuration is on before the window opens, because a reload without a log entry is hard to explain later.
Certificates API docsKeep old keys out of backups
Old private keys and their PKCS#12 or PEM copies tend to remain in configuration snapshots, container layers, shared drives and backup sets long after the rotation. Remove or revoke superseded keys once every node serves the new certificate, and confirm that your backup policy excludes certificate directories or encrypts them with separate controls. Check the snapshot repository and the image registry as well as the host filesystem.
Verify each node's certificate
A reload can succeed on the API while one node keeps serving an old or unexpected certificate, which leaves a gap that is easy to miss. After the reload, query the certificate information on every node and compare serial numbers, expiry dates and subject names with the expected values. Record the result as evidence, and treat any node that differs as an incident until it is explained.
How a rotation moves through the nodes
A rotation starts with an inventory of which certificates expire and where each one is presented, then stages the new files on every node before anything reloads. The admin certificate is the key hand-off: it authorizes the reload calls that refresh the HTTP and transport layers node by node. After each reload, check the certificate each node now presents and the cluster health. Only when both are correct does the rotation continue; otherwise the team restores the previous files and reloads again.
Per-node phases of a certificate rotation, with the rollback decision point.
Questions teams ask about certificate rotation
How much effort does rotating OpenSearch TLS certificates take?
The effort depends mostly on how many nodes the cluster has, how many clients and services trust the current certificate authority, and how strictly change windows are controlled. Each node needs its certificate checked and replaced, and each client trust store needs the new chain before or during the change. A small cluster with one trust store and an open change window is a short task. A large cluster with many client applications, separate HTTP and transport certificates and a formal approval process takes considerably longer. Ask any partner to break the estimate into inventory, staging tests, node-by-node rollout, client updates and verification, and to state which of those steps assume your own test cluster.
What drives the cost of a certificate rotation project?
Cost follows the number of nodes, the number of distinct trust relationships and the level of change control your organization requires. Other cost drivers include the OpenSearch version in use, because the reload APIs and their requirements differ by release, and whether the cluster sits in a regulated environment that needs written change records. One-time costs cover the inventory, the rotation plan and the first run. Recurring costs appear when rotation becomes a scheduled task. Ask for a quote that lists these items separately so you can see which parts repeat each time certificates expire.
Can our in-house team rotate OpenSearch certificates without outside help?
Yes, if the team has administrative access to the cluster, understands the certificate chain your nodes use, and can test the change before touching production. The reload operation is documented by the project, so the work is mainly planning and verification. Teams that struggle usually lack an accurate inventory of which certificates exist, where they are stored and which clients pin or trust them. A useful self-assessment is whether someone on the team can list every node certificate, its expiry date and every system that validates it, and then reproduce the change on a non-production cluster.
What access and inputs does a certificate rotation need from our team?
The work needs an administrator certificate with superadmin rights, because the Reload HTTP Certificates API requires one. It also needs a current certificate inventory, the new certificate material and its chain, a list of clients and services that trust the authority, and a test cluster that matches production closely enough to catch trust failures. Change windows, rollback criteria and a named owner for each client application should be agreed before the work starts. Without these inputs, the rotation tends to stall at the first client that rejects the new chain.
Does rotating OpenSearch certificates require a node restart?
Not always. Since OpenSearch 2.8, the Reload HTTP Certificates API reloads HTTP layer certificates without restarting the node. The Security plugin also provides an API to reload transport certificates, and the certificates API can report which certificates each node is using. Confirm for your exact version whether the transport layer change needs a restart, and check that the new certificate is in place on every node before you remove the old one. Restarts remain a fallback when a configuration change requires one.
How do we check which certificate each node is serving?
Use the certificates API of the Security plugin to list the certificates each node reports, then compare subject, issuer, serial number and expiry date against your inventory. Run the check after every node change, not only at the end, because a partial rotation can leave a mix of old and new certificates in the cluster. Record the output as part of your change evidence. Teams that rely on monitoring alone often miss a node that was skipped during a rolling change.
What does an outside partner deliver for certificate rotation?
Most engagements are fixed-scope, so the scope, deliverables and timeline are agreed in writing before work starts. DeployOpen plans, implements, documents and supports self-hosted open-source platforms in your own infrastructure, so a rotation engagement would typically cover the certificate inventory, a tested rotation runbook, the node-by-node execution with verification at each step, and written evidence of the final state. DeployOpen does not issue audit reports or certifications, so any evidence it prepares is input to your own auditors. Ongoing rotation support is available as a retainer if your team wants the next expiry handled the same way.
What outside help covers and what stays with your team
A partner can take on the engineering work of a certificate rotation on a live OpenSearch cluster: building the inventory of every node and REST endpoint that presents a certificate, planning a staged rollout that reloads one node or one layer at a time, writing the verification runbook with the exact checks to run before and after each reload, and assembling the evidence a compliance reviewer will ask for, such as the before and after certificate details per node, the change record and the results of the post-change checks. The inventory is where most of the value sits. It should list each node, the layer it serves (HTTP or transport), the certificate subject and expiry, and the admin certificate that will authorize the reload, so that the rollout does not stop halfway because a node was missed. Confirm with the vendor documentation which reload path applies to your OpenSearch version before the plan is written, since the Reload HTTP Certificates API depends on the version in use.
Some decisions stay with your organization and should be made before any partner begins work. Your certificate authority policy, including which CA issues node and admin certificates, validity periods, key algorithms and whether an internal or public CA is used, is a governance choice tied to your security standards. Key custody is another: who generates private keys, where they are stored, who can read them and how the superadmin admin certificate is protected all determine the blast radius of a compromised key. Change approval also remains yours, because only your change board can accept the downtime window risk, the rollback criteria and the decision to proceed if a node fails verification.
The practical boundary is that a partner executes inside a plan your team has approved and owns the results. Your team should decide the CA and key policy, name the approvers and the rollback owner, and provide access to the cluster and its certificate stores. In return, you should ask any partner to state in writing which steps they will perform on your nodes, which evidence they will deliver, and which checks they expect you to sign off. Expect the handover to include the runbook and the inventory so that your operators can repeat the rotation at the next expiry without the partner.
How DeployOpen plans and delivers certificate rotation
DeployOpen scopes certificate rotation for OpenSearch as a planned change to a running cluster, not a one-off file swap. The work covers the node and REST certificates, the admin certificate the reload APIs require, and the checks that confirm every node serves the new chain before the old certificates are retired.
How we scope
- Inventory every node, its HTTP and transport certificates, and the expiry date of each one
- Confirm which cluster version applies, since the HTTP reload API depends on OpenSearch 2.8 or later
- Agree in writing which superadmin admin certificate will be used for reload calls and who holds it
- Engagements are fixed-scope, so the written scope names the nodes, clusters and checks covered
How we build
- Stage the new certificate files on each node and validate the chain against the configured CA
- Run the reload calls node by node, checking cluster health between steps so no node is left unverified
- Check the certificate served by each node after reload, comparing subject, issuer and expiry dates
- Test client connections and any automation that pins the old certificate before the cutover
How we hand over
- Deliver a runbook with the exact reload sequence, rollback steps and the health checks to run
- Document the certificate inventory, expiry dates and the owner of each certificate and key
- Record the admin certificate handling and access rules so future rotations can follow the same path
- Walk your operations team through a live rotation so they can repeat it without us
How we support
- Ongoing support, upgrades and continuous testing are available as retainers
- Rotation can be repeated on your schedule, with the runbook updated after each change
- Ask for the support scope, response expectations and the owner of changes to the runbook in the quote
- Confirm with your team how certificate expiry alerts are routed before the first rotation

