SimpleACME
Sign inCreate account →
Software guides

Rotate HashiCorp Vault listener certificates without disturbing storage or sealing

Rotate Vault TCP listener certificates using stable paths and SIGHUP while preserving storage, seal configuration, mutual TLS and HA health.

Vault's public HTTPS listener is an authentication boundary in front of a secrets system. A certificate change should therefore be intentionally narrower than a server rebuild: keep the storage backend, seal configuration and cluster identity intact while replacing the certificate presented to clients. This guide focuses on that boundary and on verifying a rotation without making a dangerous assumption about Vault's availability state.

Release assumption: an existing supported Vault release using an HCL TCP listener and a Linux systemd service. The procedure uses the documented SIGHUP certificate-reload behavior rather than depending on the newer automatic reload interval available in some versions. Check your exact release and unit before applying it. Existing initialization, unseal or auto-unseal, storage and HA arrangements are prerequisites and are deliberately outside this certificate-only change.

The example address is https://vault.example.com:8200. The listener port and the separate cluster communication path are not interchangeable. A publicly trusted certificate on the client listener does not replace Vault's internal cluster TLS mechanisms, and neither path should be changed merely to make a browser display a padlock.

Step 1: Separate listener identity from Vault health

Record the current listener, api_addr, cluster_addr, service user and TLS file paths. Review whether clients connect directly to nodes or through a load balancer. In an HA deployment, identify active and standby nodes before scheduling changes. Keep existing storage configuration exactly as it is; replacing it with a short example from an HTTPS article can make an established cluster appear to have lost its data.

vault version
sudo systemctl cat vault
sudo install -d -m 0700 /root/vault-tls-before
sudo cp -a /etc/vault.d /root/vault-tls-before/
VAULT_ADDR=https://vault.example.com:8200 vault status

Vault status has meaningful nonzero exits for some states, so record the reported initialized and sealed fields rather than treating every nonzero result as a TLS problem. Do not put an administrative token into a command example or diagnostic transcript. Certificate inspection and basic health requests do not require publishing secrets.

Keep the current certificate pair in protected backup storage. Record its fingerprint and expiry and ensure you can reach the host using a recovery path independent of Vault. If your SSH access itself relies on freshly issued Vault credentials, arrange an approved break-glass method before starting. An identity service must not be its own only repair mechanism.

Step 2: Give the ACME client a narrow DNS capability

Prepare vault.example.com in SimpleACME, activate paid update access and add the exact supplied CNAME for _acme-challenge.vault.example.com. Ordinary address records for Vault remain unchanged. A DNS challenge registration is not a Vault policy, token or secret engine and should never be described as one.

Use the documented Certbot integration with existing registration credentials. The client contacts the certificate authority and retains the certificate private key. SimpleACME accepts authenticated TXT updates for that delegated registration; it does not issue the certificate or need permission to edit unrelated production DNS records. The API reference is the authoritative description of the update operation.

This split is valuable for a secrets service because its renewal process does not need a broad DNS-provider API credential. It is still a credential that must be protected: control of a challenge response can affect certificate authorization for the delegated name. Limit the host and operators that can access it, and keep it out of Vault audit transcripts or ordinary shell debug output.

A private listener can use DNS-01 without an inbound HTTP challenge port. Public DNS must expose the challenge delegation, and the issuing client needs outbound access. A prepared demo domain will not perform updates until paid access is active, so confirm that entitlement before investigating a deliberate authorization failure as a network outage.

Step 3: Install the pair at stable listener paths

Keep the file paths stable across renewals. Vault's documented SIGHUP behavior reloads the certificate and key at the paths established when the server started; editing those paths in HCL is not equivalent to a supported live listener reconfiguration. For an initial path change, plan a normal node restart under your existing HA and unseal procedures.

Inspect the renewed certificate for vault.example.com, an acceptable validity window and the intended intermediate chain. Verify its public key matches the private key before deployment. Then install dedicated copies readable by the Vault service group. These commands assume the package user and group are both vault; inspect your actual unit first.

sudo install -d -o root -g vault -m 0750 /etc/vault.d/tls
sudo install -o root -g vault -m 0640 \
  /etc/letsencrypt/live/vault.example.com/fullchain.pem /etc/vault.d/tls/fullchain.pem
sudo install -o root -g vault -m 0640 \
  /etc/letsencrypt/live/vault.example.com/privkey.pem /etc/vault.d/tls/privkey.pem
sudo -u vault test -r /etc/vault.d/tls/privkey.pem

Merge the following listener properties into the existing HCL rather than replacing the full server configuration. Retain other listener controls, including any required client-certificate authentication. Do not turn off mutual TLS just because a shorter example omits it. The official listener reference documents certificate paths and TLS settings. Vault TCP listener.

listener "tcp" {
  address       = "0.0.0.0:8200"
  tls_disable   = 0
  tls_cert_file = "/etc/vault.d/tls/fullchain.pem"
  tls_key_file  = "/etc/vault.d/tls/privkey.pem"
}

Bind and firewall the API according to your existing access design. Using all interfaces here makes the example explicit; it is not a recommendation to expose Vault broadly. Verify that api_addr advertises the intended HTTPS endpoint and that cluster_addr continues to identify the correct cluster path. See the separate Vault server configuration reference for those boundaries.

Step 4: Reload the running listener and inspect the result

For certificate replacement at unchanged paths, send SIGHUP to the main Vault process through systemd. Inspect the service's ExecReload before using systemctl reload: not every custom unit defines it. Sending the documented signal directly through systemctl avoids assuming a reload command exists in the unit.

sudo systemctl kill --kill-who=main --signal=HUP vault.service
sudo journalctl -u vault -n 80 --no-pager
openssl s_client -connect vault.example.com:8200 \
  -servername vault.example.com -verify_return_error </dev/null
VAULT_ADDR=https://vault.example.com:8200 vault status

Compare the newly served certificate's serial or fingerprint with the staged one. An unchanged listener can keep working with the old certificate if a replacement was rejected, so continued connectivity is not sufficient evidence of a successful rotation. A malformed chain, unreadable key or mismatched pair must be visible in your deployment outcome.

Use /v1/sys/health carefully if a monitoring system checks it. Vault distinguishes active, standby, sealed and uninitialized states using response codes; not all healthy operational roles return an ordinary 200. Preserve the load balancer's intended health semantics rather than changing it to accept every response during a certificate rollout.

In HA environments, validate each node directly with the correct SNI name where practical. A healthy load-balanced request can conceal a stale certificate on one backend. Rotate in a controlled sequence, avoiding unnecessary simultaneous restarts and preserving quorum. This article's signal operation does not replace your organization's node maintenance procedure.

Step 5: Build a rotation record that can support rollback

A robust deployment stage takes a lock, checks the candidate pair, backs up the current pair, installs both files and signals Vault only after both are present. Sequential replacement without a lock can expose a mismatched pair to another deployment job. Keep file permissions consistent when promoting a new generation, and apply required security labels before signaling.

If the replacement cannot be loaded, restore the previous unexpired certificate and matching key at the same paths, then send SIGHUP again and recheck the served identity. This rollback does not alter storage, unseal state, policies or tokens. Never reinitialize Vault to repair an HTTPS certificate error. Initialization is a completely different, potentially destructive operation.

For a failed initial listener configuration change, restore the prior HCL and follow the established restart and unseal plan. Do not restart an entire HA cluster simply because one certificate deployment failed. Diagnose the smallest affected component first and preserve a working route for clients wherever possible.

Track certificate expiry externally and deployment success internally. Record the issued certificate, installed generation, serving nodes and reload result without storing private keys in general logs. SimpleACME challenge history can explain when DNS authorization changed, but it cannot establish that Vault is unsealed, operational or using the replacement. Those are distinct facts that require application-side checks.

Preserve mutual TLS and health-check semantics

If your existing listener requires client certificates, retain that requirement and the configured client CA during the server-certificate rotation. A server leaf certificate and a client-authentication CA serve different purposes. Replacing the former does not require widening the latter, and removing a client-certificate requirement to make a test request succeed would silently change who can connect.

Use a representative authorized client to check mutual TLS after activation. A bare curl request may be rejected before it reaches a Vault API handler, which can be correct behavior for that listener. Record whether the test included the required client identity without storing the client key or certificate password in general logs. The acceptance criterion is that the established authenticated transport continues working, not that every unauthenticated request receives a friendly response.

Health probes also need a defined viewpoint. A load balancer may intentionally send unauthenticated requests with specific query options, whereas an operator uses vault status through a named endpoint. Preserve the expected active and standby interpretation for each consumer. An indiscriminate change to accept sealed nodes as healthy can conceal a real service problem while making a certificate maintenance dashboard appear green.

Finally, keep listener key access narrower than ordinary application token access. Applications that read secrets through Vault do not need the HTTPS private key or the ACME registration credentials. Distinct filesystem permissions and automation identities make that separation practical even when renewal runs on the same host. Review those permissions after package upgrades or service hardening changes, because a new sandbox rule can break future deployment without changing today's running listener.

Frequently asked questions

Will SIGHUP unseal a sealed Vault server?

No. Certificate reload and unsealing are separate operations. Preserve your configured seal mechanism and authorized recovery process. A sealed response after successful TLS indicates application state, not a reason to disable HTTPS.

Can I change the TLS file paths during a reload?

Do not depend on that. Keep stable paths for renewal and consult your version's reload semantics. Treat listener path or topology changes as startup configuration changes requiring the normal maintenance process.

Does the public certificate secure Vault's cluster traffic too?

The client-facing TCP listener and Vault cluster communication have different roles. This guide changes the public listener certificate only. Retain the cluster configuration and consult the official HA documentation for internal security and node communication.

Should renewal credentials be available to every Vault client?

No. Only the controlled ACME renewal process needs the delegated update credentials. Ordinary Vault clients need the server's trusted identity and their own application authentication, not permission to update its DNS challenge.

KEEP EXPLORING

A little more clarity.

ONE CNAME. A REPEATABLE WORKFLOW.

Your next certificate. A little less complicated.

Keep your DNS provider and your ACME client.
Prepare your domain before activating paid updates.

Create your account →Explore the integrations