Configuring TLS certificates for OpenSearch nodes and REST

Set up node-to-node and REST TLS on self-hosted OpenSearch with your own PKI, replace the demo certificates, and decide how clients and admins authenticate.

On this page

Why OpenSearch TLS certificates need planning before go-live

A security or platform team preparing a production OpenSearch cluster for an internal certificate review needs to know exactly which TLS layers are active before the first node joins. Transport TLS is on by default for node-to-node traffic, while REST TLS is off by default. The OpenSearch best practices call for your own PKI and for replacing all demo certificates, so the install-time certificates should never reach production. Teams usually need this work when a cluster moves from a lab or proof of concept into an environment that handles regulated or internal-only data, or when an auditor asks how cluster traffic and client connections are protected.

The work touches more than the nodes. Each node needs a certificate that its peers trust for transport traffic, and if REST TLS is enabled, the same nodes present certificates to every application, dashboard, pipeline and monitoring tool that calls the API. Admin tooling such as securityadmin.sh authenticates with an admin certificate, and clients that use certificate authentication for machine-to-machine access depend on a trusted issuing chain and on distinguished names that match the security configuration. Keystores and truststores hold these certificates and their private keys, so their format, passwords and file permissions become part of the build, not an afterthought. Confirm which certificate formats and Java keystore types your chosen OpenSearch version supports by checking the OpenSearch docs on configuring TLS certificates before you request certificates from your PKI team.

Plan the certificate inventory before go-live: which hostnames and subject alternative names each node certificate must carry, who issues and renews them, how the root and intermediate authorities are protected, and how a rotation will be applied without an outage. Ask your PKI team for lifetimes and renewal lead times in writing, and confirm whether your internal authority can issue client certificates for the service accounts that will call the API. A cluster that goes live with demo certificates, an unknown admin certificate or no rotation runbook will need an emergency change later, which is the situation this planning is meant to avoid.

How node, admin and client certificates fit together

The diagram starts with your internal CA, which issues separate certificates for node transport traffic, REST traffic, the admin identity used by securityadmin tooling, and client callers. Each node holds its own certificate in a keystore and trusts the CA through a truststore, and transport TLS is on by default while REST TLS must be enabled. Check that the admin certificate is the only identity mapped to admin rights and that each client certificate is traceable to one caller.

Certificate issuance, keystore and truststore placement, and the trust boundary around the cluster.

Which TLS configuration options fit which environment

This table compares the main TLS choices for an OpenSearch cluster: transport-only or REST TLS, a single internal CA or intermediate CAs, and client certificates or tokens for service callers. Read each row against your own network exposure, client types and rotation process, and treat the right-hand column as the default most teams should start from.

DecisionOptionWhat it changes for operations and rotationWhen it fits
REST layerTransport TLS onlyNode-to-node traffic is encrypted, but REST clients connect in plain HTTP unless you enable REST TLS. Fewer certificates to issue and renew.Clusters reachable only from a tightly controlled internal network, and only as a short-lived step while REST TLS is being planned.
REST layerTransport and REST TLSEvery client, dashboard, pipeline and health check must trust your CA and use HTTPS. Certificate expiry on the REST layer becomes an outage risk for all callers.Most production clusters, and any cluster that carries credentials or regulated data over the REST API.
Trust chainSingle internal CAOne root signs node, admin and REST certificates. Distributing trust is simple, but a root compromise or rotation affects everything at once.Smaller estates with one administrative owner and a documented offline root process.
Trust chainIntermediate CAsIssuing intermediates per environment or purpose limits blast radius and lets you rotate one issuer without replacing the root. Trust bundles are longer to maintain.Multi-environment estates, or organizations whose PKI policy requires separate issuing authorities.
Caller authenticationClient certificatesMachines authenticate at the TLS level with low per-request overhead. Each service needs a certificate, a renewal process and a mapped identity, so issuance and revocation become part of the runbook.Pipelines, collectors and other machine-to-machine callers that already run in an automated PKI.
Caller authenticationTokens or passwordsCredentials travel with each request and need their own rotation, storage and revocation. Teams can change them quickly, but leaked values are easier to replay.Human users signing in through an identity provider, or short-lived automation where your team has no certificate issuance path.
Admin accessDedicated admin certificateThe admin certificate is used by securityadmin tooling and must be kept separate from application certificates. Losing it can block security configuration changes.Any production cluster that manages security configuration as code or through scripted changes.

How to configure OpenSearch TLS with your own PKI

This sequence takes a cluster from demo certificates to node-to-node and REST traffic protected by certificates issued from your own certificate authority, with a check after each change so a failure is easy to isolate.

  1. Confirm the PKI and certificate requirements

    Your PKI or security team confirms which certificate authority will sign node, admin and client certificates, the validity period and key type your policy requires, and the host names and IP addresses each node is reached by. Record this list before anything is generated, because subject and SAN values are difficult to correct later. The step is done when the team has a written inventory of every node, its DNS names and IP addresses, and the owner of the CA. Confirm the exact TLS and key requirements with your PKI team and against the current OpenSearch security documentation for your version.

  2. Generate or obtain the CA and certificates

    Generate or obtain a root or intermediate CA from your PKI, then issue one certificate per node and one admin certificate, each signed by that CA and exported in a format the OpenSearch tooling accepts. Keep private keys off shared storage and restrict file ownership to the OpenSearch service account. The step is complete when each certificate chains to your CA and openssl or your PKI tool confirms the chain. Check the certificate guidance in the OpenSearch TLS documentation for the exact files your version expects.

  3. Set subject and SAN values on each certificate

    Set the subject distinguished name on each node certificate so it matches the values referenced in opensearch.yml, and add every DNS name and IP address clients and peer nodes use as subject alternative names. Admin certificates carry the distinguished name that the security configuration maps to the admin role, so the subject must match exactly, including ordering and spacing. The step is done when a test inspection of each certificate shows the expected subject and SAN entries and a hostname check against each node succeeds.

  4. Place keys and certificates in the keystore and truststore

    Import each node's private key and certificate into its keystore, and import the CA certificate into the truststore that the node uses to verify peers and clients. Set the file paths and passwords in opensearch.yml, and store the passwords in a secrets manager or a restricted file rather than in plain configuration shared between hosts. The step is done when each node starts with transport TLS using your certificates and the logs show no certificate or keystore errors.

  5. Enable REST TLS in the node configuration

    Transport TLS is on by default for node-to-node traffic, but the REST layer is off by default, so enable it in the node configuration and point it at the same keystore or a dedicated REST certificate, depending on your design. Restart nodes one at a time in a rolling fashion so the cluster stays available. The step is complete when a client connection over HTTPS to each node succeeds with the CA trusted and a plaintext request is refused. Confirm the rolling restart steps for your deployment method in the install documentation.

  6. Replace demo certificates and remove demo trust

    Remove the demo certificates and any configuration that trusts them, so that only certificates from your CA are accepted for nodes and admins. Update the security configuration so the admin certificate distinguished name is the mapped admin identity. Demo certificates are published with the install package and must not remain in production. The step is done when a search for the demo certificate subjects in the configuration and truststore returns nothing and the cluster health check still responds.

  7. Verify each node and client connection after each change

    After each change, check every node and every client path: the cluster health endpoint over HTTPS, the cluster-to-cluster and peer connections in the logs, and an admin call using the admin certificate. Also test a client certificate for machine-to-machine access, which the best practices recommend for API access because it authenticates at the TLS level. The sequence is finished when every node joins the cluster with your certificates, admin and client calls succeed, and failed connections return a clear certificate error during a deliberate negative test.

When client certificate authentication fits machine-to-machine access

The OpenSearch security best practices recommend client certificate authentication for machine-to-machine API access, because the identity is checked during the TLS handshake and the per-request overhead is low. That makes it a good fit for ingest pipelines, collectors and scheduled jobs that call the REST API continuously and never sign in interactively. Before you choose it, confirm with the current OpenSearch security documentation how the REST layer must be configured for client certificates in your version, since REST TLS is disabled by default and must be enabled first.

A pipeline or service that uses this method must hold a client certificate and its private key, signed by the same CA your cluster trusts for REST traffic, plus the CA chain it needs to verify the cluster. Each certificate's subject distinguishes one client from another, and the Security plugin maps that subject to an OpenSearch user through its configuration. Confirm the exact mapping settings, the way the distinguished name is matched, and how the mapped user's roles are assigned in the current docs before you issue certificates, because a loose subject pattern can grant more access than the certificate owner should have. Plan one certificate per service so that revoking one client does not affect the others.

Compared with API keys, client certificates avoid a bearer secret that travels in every request header, but they add certificate issuance, renewal and revocation work to your PKI, and rotation is tied to the certificate lifetime. Basic credentials are simpler to set up but send a reusable password on each call and carry the password-management burden you already have. Ask your team which lifecycle they can operate: if you already run an internal CA with automated renewal, certificates are a strong option; if not, API keys may be easier to revoke and audit for short-lived automation. Whichever you choose, test revocation and role scope in a non-production cluster first.

Security and operational risks in OpenSearch certificate setup

Certificates are where a TLS setup most often fails quietly: a demo file stays in place, a hostname check is skipped, or a key is readable by the wrong account. The cards below cover the risks that appear in most self-hosted clusters and the checks to run against each one before go-live and during routine operation.

Demo certificates left in place

The install-time demo setup ships with sample certificates that are publicly known, so any cluster still using them can be impersonated by anyone who has the same files. Transport TLS is on by default, which makes the demo material easy to overlook. Check every node and the REST layer for demo certificate files and confirm the chain traces back to your own PKI before the cluster takes production data.

Security best practices

Weak hostname and SAN validation

A certificate issued without the right subject alternative names will either fail verification or, if verification is loosened to get past errors, accept the wrong peer. Node and REST certificates should list every DNS name and IP address clients and peers use, including load balancer and service names. Test the hostname check from each client type, and treat any setting that disables verification as a finding to remove.

Private key handling and keystore permissions

Private keys and the keystore that holds them are the credentials an attacker needs to impersonate a node. Restrict read access to the service account that runs OpenSearch, keep keys out of shared configuration repositories and backups that are widely readable, and record who can copy the files. Confirm the keystore password is stored in a controlled place rather than in a script committed to version control.

Expiry tracking and rotation without downtime

Certificates expire on a fixed date, and an expired node certificate can stop nodes from joining or talking to each other, which looks like an outage. Keep an inventory of every certificate with its expiry date, alert well before that date, and rehearse rotation on a staging cluster. Confirm with your platform team how a node certificate change is rolled through the cluster one node at a time.

Admin certificate power over the security index

An admin certificate can apply security configuration, which means it can change roles, users and mappings across the cluster. Anyone holding that certificate effectively holds full control of access decisions. Issue admin certificates only to a small named group, store them in a vault with access logging, keep them off developer workstations where possible, and rotate them on a schedule separate from node certificates.

Audit logging of certificate-based access

Client certificate authentication is efficient for machine-to-machine calls, but it only helps your investigations if each certificate identity is recorded when it connects. Decide which certificate subjects are allowed to call the REST API, enable audit logging for those requests, and review logs for unknown subjects. Ask your team to confirm which audit categories are active in your version before relying on them.

Questions teams ask before configuring OpenSearch TLS

How much effort does a production OpenSearch TLS rollout take?

The effort depends mainly on how many nodes and clients the cluster has, how mature your existing PKI is, and how many systems must trust the new certificates. A small single-site cluster that reuses an internal certificate authority is far simpler than a multi-site cluster where each node role, the admin identity and every machine client need separate, documented certificates. Ask your team to inventory nodes, clients and trust stores before estimating. Any duration or fee should come from a written scope that lists those counts, not from a generic figure.

Does PKI maturity change how long TLS setup takes?

Yes. If your organization already issues certificates from an internal CA with templates, naming standards and an approval workflow, the work is mostly configuration and testing. If there is no CA, no agreed certificate profile or no inventory of existing certificates, the first phase is defining the trust model, key sizes, validity periods and who signs requests. That planning often takes longer than the OpenSearch changes themselves. Confirm these decisions with your security team before the build starts.

Can our own team configure OpenSearch TLS without outside help?

Often yes, if you have engineers who have run OpenSearch or Elasticsearch clusters and staff who can issue certificates. The OpenSearch documentation covers transport and REST TLS settings, certificate formats and the security configuration files. The risk areas are ordering the change so the cluster does not lose quorum during a rolling restart, and missing a client that still connects in plain text after REST TLS is enabled. A partner is most useful when the team lacks that operating experience or needs a written, reviewed change plan.

What do our PKI and security staff need to provide?

Expect to supply an internal root or intermediate CA or a clear signing process, certificate profiles for node, admin and client certificates, hostnames and subject alternative names for every node and load balancer, and the trust bundles that each client must hold. Security staff should approve key lengths, validity periods, private key storage and who may request admin certificates. They should also confirm how revocation is handled, because the cluster's trust depends on those answers. Ask for these decisions in writing so the configuration matches policy.

How is certificate rotation handled after the initial setup?

Rotation is an ongoing operational task, not a one-time project. Each certificate has a validity period, so the team needs a schedule, a tested procedure for replacing node certificates without downtime, and a way to update the admin and client certificates that tools depend on. Keystores and trust stores must be updated consistently across nodes. Automating issuance and reloading, where your platform supports it, reduces the manual steps. Check the OpenSearch certificate documentation for the reload and restart behavior of your version before you set the schedule.

Does DeployOpen issue certificates or provide compliance attestation for our TLS setup?

No. DeployOpen plans, implements, hardens and documents TLS configuration inside your infrastructure, and it prepares the configuration, procedures and evidence that your compliance assessors may review. Certificates are issued by your own PKI or CA, and any audit report, attestation or certification comes from an independent auditor or certification body. Ask your assessor early which evidence they need, such as configuration files, certificate inventories and rotation records, so the engagement scope covers it.

Why is REST TLS a separate step from node-to-node TLS?

Node-to-node transport TLS is enabled by default in OpenSearch, but REST TLS is disabled by default, so applications, dashboards and scripts can still send requests over plain HTTP until you change it. Enabling REST TLS changes how every client connects, so the team must update each client's trust store and endpoint configuration in the same change window. Inventory all clients, including pipelines and monitoring tools, before you switch REST TLS on.

Limits to confirm in your environment before rollout

TLS certificate changes touch every node, every client and the security configuration at once, so the limits are easy to get wrong in a live cluster. The cards below list the items to confirm against the current OpenSearch documents and your own environment before you schedule a rollout.

Supported certificate formats and keystores

Confirm which certificate formats and keystore types your OpenSearch version accepts for node, admin and REST certificates before you request them from your PKI. The keystore type and file format must match what the security configuration expects, and the chain you deliver must include every intermediate your clients trust. Check the current TLS configuration page for the version you run, since accepted formats are version-specific and can change between releases.

TLS configuration docs

Java and FIPS constraints

If you run in FIPS mode or have a federal or regulated cryptography requirement, confirm the certified Java runtime, the bundled cryptographic provider and the keystore types supported in that mode before you generate keys. Certificate algorithms, key lengths and keystore formats that work in standard mode may not be accepted under a FIPS provider. Ask your PKI team to issue test certificates against the exact runtime you will deploy, then validate a single test node before the fleet.

Rolling restarts during certificate change

Changing transport certificates on a running cluster requires a plan for nodes that trust both the old and new authorities during the transition. Confirm whether your version supports a rolling restart for certificate changes, and whether the cluster manager and data nodes need separate sequencing. Check cluster health and replica status between each node restart, and keep a rollback copy of the previous keystores on every node.

Interaction with the security plugin configuration

Certificate distinguished names feed directly into the security plugin: the admin certificate identity, node certificate DN matching and any plugins.security.nodes_dn entries must match the subjects you issue. A mismatch can lock out administrators or stop nodes from joining. Confirm these entries in the security configuration files and test the admin certificate with the security administration tool before you remove the old certificates.

Installer-generated versus your own certificates

The demo installer creates certificates and trust settings that are meant for evaluation only, and the best practices say to replace all demo certificates with your own PKI. Confirm which demo files, trust stores and distinguished names the installer created, then remove or disable each one on every node. Do not assume that replacing only the node certificates also replaces the admin or REST trust path.

Security best practices

Client certificate authentication for automation

Client certificate authentication suits machine-to-machine API access because it authenticates at the TLS level with low overhead. Confirm how your version maps certificate subjects to security roles, how the client certificate policy applies to REST and whether your pipelines and monitoring agents can present a certificate. Plan a renewal and revocation process for each client certificate, since a expired client certificate stops automation without a clear error.

What a fixed-scope TLS engagement covers

A fixed-scope TLS engagement starts with a written inventory of every OpenSearch cluster in scope, including node names, roles, hostnames, load balancers, Dashboards instances, and any clients that call the REST API with certificates. The inventory is the basis for the rest of the work, because it determines which certificates are needed, which Subject Alternative Names each one must carry, and which systems will break if a certificate chain changes. Ask the provider to list the components they will examine and to name the environments, such as development, staging and production, that the scope covers.

The next step is a PKI review of your existing certificate authority, issuance process, validity periods, and revocation approach. The review confirms whether your organization can issue separate node and admin certificates, whether client certificates for machine-to-machine access will come from the same authority, and who approves renewals. The written scope should then cover certificate design, the opensearch.yml settings for transport and REST TLS, the keystore and truststore layout, and the replacement of demo certificates. Each of these items should appear as a named deliverable with an acceptance check, so both parties know when the work is complete.

The scope also needs a rollout plan and a verification step. The rollout plan covers the order of node restarts, how a cluster stays available during the change, and the rollback path if a node fails to join. Verification should show that transport and REST connections use your certificates, that unauthenticated clients are refused, and that the cluster reports healthy status afterward. DeployOpen does not publish a price list. A quote follows from the written scope, so the inventory and PKI review are the inputs that most affect the number. Ask for the quote to list each deliverable separately, to state which items are one-time and which recur at renewal, and to say what you must provide, such as access windows, certificate authority access, and a named contact for approvals.

How DeployOpen scopes and delivers OpenSearch TLS work

DeployOpen plans and implements OpenSearch TLS inside your own infrastructure, starting from your PKI and your node and REST topology. We scope the work in writing, build and test it in your environment, and hand over the configuration, certificates and runbooks your team needs to operate it.

How we scope

  • Inventory every node, cluster manager, data, ingest and coordinating role that needs certificates before any configuration changes
  • Confirm with your PKI owners which CA chain, certificate lifetimes and renewal process apply to transport and REST traffic
  • Agree in writing whether REST TLS and client certificate authentication for machine clients are included in the fixed scope

How we build

  • Replace demo certificates with certificates issued from your own PKI on a staging cluster before production
  • Enable and verify node-to-node TLS and REST TLS in a rolling sequence so cluster health stays green throughout
  • Configure the keystore and truststore, admin and node certificates, and client certificate authentication, then test each path

How we hand over

  • Deliver the final configuration files, certificate inventory and trust chain documentation for your compliance and security reviewers
  • Document the rotation procedure, including how a node certificate is replaced without taking the cluster offline
  • Walk your operations team through verification commands, failure symptoms and the escalation path before sign-off

How we support

  • Ongoing support, upgrades and continuous testing are available as a retainer after handover
  • Retest TLS settings after OpenSearch version upgrades and after any change to your PKI or certificate authority
  • Agree support scope, response expectations and rotation coverage in the written contract before work starts

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.