HashiCorp Vault PKI secrets engine for short-lived certificates

Vault's PKI secrets engine issues short-lived internal X.509 certificates, with ACME support on the open-source edition and EST, CMPv2, SCEP and CIEPS as Enterprise features. This page covers how to automate renewal, what the shorter lifetimes change, and what to check.

On this page

How can Vault renew short-lived certificates automatically?

On Vault, the PKI secrets engine can renew certificates in two ways: an ACME client can request and renew certificates through Vault's ACME endpoint, using a configured role and External Account Binding (EAB) to tie the client to an account, or an application can fetch a new dynamic certificate through the issue API, for example with vault write pki_int/issue/example-dot-com common_name=blah.example.com. The public CA/Browser Forum schedule cuts the maximum validity of publicly trusted Subscriber Certificates to 200 days from 2026-03-15, 100 days from 2027-03-15 and 47 days from 2029-03-15, so teams will want internal certificates to renew on a similar cadence, even though those public rules do not bind a private CA. Renewal has to be designed before the shorter lifetimes arrive, not after.

Three groups have to act. The PKI owner decides the role settings, the maximum TTL and whether ACME is enabled, and checks that the ACME max_ttl is set deliberately, since it defaults to 90 days (2160 hours) when unset. The platform team configures the mount, including the Link, Location and Replay-Nonce response headers that the ACME documentation requires, sets the cluster path, and generates EAB tokens with vault write -f /pki/acme/new-eab for each client that needs one. Application teams that hold certificates have to confirm that their clients renew on the new cadence and that they can reload certificates without downtime. Confirm the no_store setting on any ACME role, because ACME with a role requires no_store=false.

Before you commit to a pattern, check three limits in the Vault documentation for your version. ACME does not support ML-DSA key types, so post-quantum certificates will need a different issuance path. Certificates fetched at startup and held in memory can avoid being written to disk, but applications then need a reload step when a certificate renews. ACME revocation is available through the revokeCert request, but revoking an ACME account does not revoke its existing certificates, so the revocation process has to cover both. Confirm which ACME features and external policy options your Vault edition supports, since the documentation marks some issuance protocols and policy values as Enterprise only.

What the 200, 100 and 47 day limits mean for Vault-issued certificates

This table compares the three publicly trusted Subscriber Certificate limits in the CA/Browser Forum TLS Baseline Requirements with the Vault settings that govern internal certificates. Read each row for how often renewals happen and which manual steps stop working. The main takeaway is that the public schedule does not set Vault's internal lifetimes, which come from the role's max_ttl and the ACME max_ttl default.

Schedule or settingRenewals per year (approximate)What stops working by hand
Public certificates from 2026-03-15 (200 days)About 2 renewals per year per certificateManual renewals tied to a yearly calendar may still work, but reuse of domain validation for 200 days needs tracking
Public certificates from 2027-03-15 (100 days)About 4 renewals per year per certificateYearly or twice-yearly manual renewal schedules fail, and each renewal needs a tracked owner
Public certificates from 2029-03-15 (47 days, 10-day validation reuse)About 8 renewals per year per certificateAny manual renewal process fails, and domain validation must be refreshed at least every 10 days
Vault role max_ttl (internal certificates)Set by the role's max_ttl, so the count depends on that valueConfirm the role's max_ttl in your Vault configuration, since it is not set by the public schedule
Vault ACME max_ttl when unsetDefault of 90 days (2160 hours), about 4 renewals per year per certificateCheck that the default fits your renewal process, and set it explicitly if it does not
Scope of the public rowsApplies to publicly trusted Subscriber Certificates onlyVault-issued internal certificates are not governed by these public limits, so confirm internal policy separately

How Vault issues and delivers certificates

The Vault PKI secrets engine issues dynamic X.509 certificates on request rather than storing a fixed set of certificates in advance. You mount the engine, define a role that sets the domains a certificate may cover and the TTLs it may use, and then issue a certificate against that role. The Vault intermediate CA quick start shows the pattern: mount the engine at a path such as pki_int, set the maximum lease TTL with vault secrets tune, generate an intermediate CA, have the root sign it, import the signed certificate with set-signed, create a role with allowed_domains, allow_subdomains and max_ttl, and issue with vault write pki_int/issue/<role>. The CA chain that clients need comes from this intermediate setup, so confirm that the chain your clients receive includes the intermediate and that the root they trust matches the one that signed it.

The Vault PKI documentation says short TTLs keep the certificate revocation list short, because relatively short lifetimes make revocation less likely to be needed. It also says that an application can fetch its certificate at startup, hold it in memory and discard it at shutdown without writing it to disk. If you plan to use ACME with this engine, the role used for ACME issuance must have no_store=false, and the ACME max_ttl defaults to 90 days (2160 hours) when it is not set. Check these two settings before you enable ACME, because they decide whether the certificates are stored and how long they can last.

The sources listed on this page do not describe how every client reloads a new certificate after issuance, so do not assume that a web server, load balancer or agent will pick up a renewed certificate without a restart or reload step. Test the reload path for each client you run, including what happens when the certificate changes while the process is running. Check each client's own documentation for its reload behavior, and confirm that the process can fetch a fresh certificate before the current one expires.

Which automation options Vault supports

Vault's PKI secrets engine can act as an ACME server, so ACME clients can request and renew certificates from an internal CA without a separate ACME service. ACME must be enabled on the mount, and the mount's response headers must be tuned so clients can read the Link, Location and Replay-Nonce headers. The default_directory_policy setting controls what happens to requests that do not match a role, and the documented values are forbid, sign-verbatim, role:role_ref and, on Enterprise, external-policy.

  • Mount tuning: Run vault secrets tune -allowed-response-headers=Link -allowed-response-headers=Location -allowed-response-headers=Replay-Nonce pki/ before enabling ACME.
  • Base URL: Set the cluster path with `vault write pki/config/cluster path= using your own address.
  • Enablement: Enable ACME with vault write pki/config/acme enabled=true and set default_directory_policy, eab_policy and allowed_roles to match your design.
  • Role requirement: A role used with ACME must have no_store=false, and the ACME max_ttl defaults to 90 days (2160 hours) when unset.
  • Limits: ACME does not support ML-DSA key types, and revoking an ACME account does not revoke its existing certificates.

Before relying on ACME, confirm the default_directory_policy value you need and the External Account Binding behavior in the Vault PKI ACME documentation for your version.

Set up ACME on Vault in order

This sequence turns a Vault PKI mount into an ACME endpoint that issues short-lived certificates to clients that speak the protocol. Each step builds on the one before, so the order matters: the intermediate CA comes first, then the mount, cluster path, roles, ACME settings and External Account Binding tokens.

  1. Create the intermediate CA first

    Follow the Vault intermediate CA quick start before touching ACME. Enable the engine at a separate path with vault secrets enable -path=pki_int pki, set its maximum lease TTL with vault secrets tune -max-lease-ttl=43800h pki_int, and generate the CSR with vault write pki_int/intermediate/generate/internal. Have the root sign the CSR with vault write pki/root/sign-intermediate, then import the result with vault write pki_int/intermediate/set-signed. You know this step is done when the intermediate mount returns its signed certificate. The quick start's example values are illustrative, so replace the common name and TTLs with your own.

  2. Tune the mount for ACME response headers

    Allow the response headers that ACME clients read by running vault secrets tune -allowed-response-headers=Link -allowed-response-headers=Location -allowed-response-headers=Replay-Nonce pki/ against the PKI mount. Without these headers, ACME clients cannot follow links or track nonces during account and order requests. Run the command against the mount you intend to use for ACME. You know this step is done when the tune command completes and the mount's configuration lists the three headers.

  3. Set the ACME cluster path

    Tell Vault the base URL that ACME clients will use to reach it by writing `vault write pki/config/cluster path= The hostname in the sources is an example, so substitute the address your clients resolve. Clients build their directory and order URLs from this value, so a wrong address causes failures later even when issuance itself works. Check that the path matches the address exposed by your load balancer or ingress. You know this step is done when the cluster configuration returns the path you set.

  4. Create the issuing role with no_store false

    Create a role that ACME can issue against, and set no_store=false on it. The Vault issuance API documents that ACME with a role requires this setting, and that the ACME max_ttl defaults to 90 days (2160 hours) if you leave it unset. Confirm the TTL you want for the role, since that default governs how long ACME-issued certificates may last. Check the role's allowed domains and subdomain settings against the names your clients will request. You know this step is done when reading the role back shows no_store set to false.

  5. Enable ACME with its policy settings

    Enable the ACME endpoint with vault write pki/config/acme enabled=true, then set default_directory_policy, eab_policy and allowed_roles in the same write. The sources show default_directory_policy="role:role-acme-a", eab_policy="always-required" and allowed_roles="role-acme-a,role-acme-b" as an example, and list forbid, sign-verbatim and role:role_ref as the other directory policy values. The external-policy value is listed as Enterprise only. Choose the policy that matches how you want clients to be scoped. You know this step is done when the ACME configuration reads back with your chosen values.

  6. Generate External Account Binding tokens

    Create an External Account Binding token for each client account by running vault write -f /pki/acme/new-eab. The token ties a client's ACME account registration to a Vault-issued credential, which is what eab_policy checks when it is set to require EAB. Give each token to the client through your normal secret handling process, and record which client received it. You know this step is done when the command returns a key identifier and HMAC key that the client can use to register.

  7. Account for VAULT_DISABLE_PUBLIC_ACME

    Decide whether Vault should force EAB for every ACME instance by setting the VAULT_DISABLE_PUBLIC_ACME environment variable on the server. The sources say this variable force-enables EAB for all ACME instances, so it overrides a more permissive eab_policy setting. Set it before you expose the endpoint to clients, and verify the effective behavior by attempting a registration without a token. You know this step is done when an unauthenticated registration attempt is refused.

  8. Confirm client validation and reload steps

    The validation method and the steps needed to reload a service after renewal depend on the ACME client you choose, so confirm both in that client's documentation before go-live. Point the client at the directory URL served by your Vault cluster path, and test one issuance end to end against a non-production name. The sources do not cover ACME key types beyond noting that ML-DSA is unsupported, so check your client's supported key algorithms as well. You know this step is done when a test certificate is issued, installed and picked up by the service without manual intervention.

What must be in place before enabling Vault PKI

Enabling the Vault PKI secrets engine for short-lived certificates depends on a few decisions made before any mount is tuned. The cards below cover the Vault version, the edition needed for protocols beyond ACME, the cluster address ACME clients will reach, the CA hierarchy, and the permissions needed to configure it.

A Vault version with PKI and ACME

Confirm that the Vault release you run includes both the PKI secrets engine and the ACME feature before planning the rollout. The ACME documentation describes the configuration you will apply, so check the release notes for the version you plan to deploy to confirm the feature set. Test on a non-production cluster first, since you will tune mounts and enable ACME on it. Record the exact version so your later configuration matches what the documentation describes.

Vault ACME docs

Enterprise edition for specific protocols

The PKI documentation marks EST, CMPv2, SCEP and CIEPS as Enterprise features, and lists external-policy as an Enterprise directory policy. If your devices or clients need any of these protocols, you need the Enterprise edition. ACME and the standard API issuance paths are not listed as Enterprise-only in the sources. Confirm the edition requirement against your client list before choosing a license.

Vault PKI docs

A reachable cluster address

ACME clients must reach the Vault cluster at a stable address, which you set as the ACME base URL in the cluster path configuration. The documentation gives an example path under the /v1/pki API route on a cluster hostname. Decide the hostname, confirm that clients on each network segment can resolve and reach it, and make sure load balancers or proxies pass the required headers. Use an address that will not change, because it is embedded in the ACME directory that clients use.

A CA hierarchy with imported signatures

Plan a root or intermediate CA before you issue leaf certificates. The quick start generates a CSR from the intermediate mount, signs it with the parent CA, and imports the signed certificate back with set-signed. Decide who holds the root key, how long the intermediate lives, and where the trust chain must be distributed so that clients accept the issued certificates. Settle these before the first issuance, because changing the hierarchy later means reissuing certificates.

Intermediate CA quick start

Permissions to tune and configure

The setup requires permission to enable the PKI mount, tune its lease settings, write PKI configuration, and create roles and ACME settings. Give these rights to a small group of platform or PKI administrators, and separate them from the rights used by applications that request certificates. Review the policies you grant before enabling ACME, because the default directory policy and allowed roles determine which certificates ACME clients can obtain.

How to confirm Vault renewals keep happening

Confirming that Vault renewals keep happening means checking three things against each other: the expiry date on every certificate a workload holds, the TTL set on the role that issued it, and the issuance activity Vault records. Start by comparing the not_after value of each issued certificate with the max_ttl of the role it came from, using the issue or fetch responses your clients log. If a certificate is close to expiry and no newer issuance appears for the same common name, renewal has stopped. Vault's PKI secrets engine documentation describes the dynamic, short-lived certificates it generates and why short TTLs keep CRLs small, so the role TTL is the main number to track. The sources listed on this page do not specify a monitoring product or alert thresholds, so choose both from your own renewal interval and expiry tolerance.

Next, watch issuance in Vault's audit logs. Every request to the pki or pki_int mount that issues a certificate leaves an entry, so a steady stream of issue calls per role shows renewals are running. For ACME, the Vault PKI ACME documentation covers the directory, account and order flow that clients use, and the ACME revokeCert request appears in the same record. Note one behavior from the issuance API documentation: an ACME role must have no_store=false, and the ACME max_ttl defaults to 90 days (2160 hours) when unset. If you rely on a lifetime other than the default, set it explicitly and confirm that the issued certificates match it. Revoking an ACME account does not revoke its existing certificates, so a deactivated client can still hold valid certificates until they expire.

Set alerts to fire before the renewal window closes, not after expiry. Alert on a certificate that has not been reissued within the period you expect, and alert on any audit gap for a role that normally issues often. Keep the issuance record for as long as an auditor or customer may ask for it: the audit log entries, the role definitions in effect at each point, the mount tuning, and the ACME settings. The Vault intermediate CA quick start shows the mount, CA and role steps that define what a certificate can be, so keep those configuration changes with the logs. Confirm your retention period and where the logs are stored against your own compliance requirements, because the sources do not set either.

Questions people ask about Vault short-lived certificates

Does Vault PKI support ACME for issuing certificates?

Yes. The Vault PKI secrets engine lists ACME as an issuance protocol. To use it, you tune the mount so the ACME response headers (Link, Location and Replay-Nonce) are allowed, set the cluster path for the ACME base URL, and enable ACME with a default directory policy and a list of allowed roles. The Vault PKI docs also list EST, CMPv2, SCEP and CIEPS, which are marked as Enterprise features. The ACME documentation states that ACME does not support ML-DSA key types, so confirm the key types you need before choosing this path. Check the exact commands and the Enterprise boundary for your Vault version in the Vault PKI ACME documentation.

Which ACME client works with Vault's PKI ACME endpoint?

The sources on this page do not name a specific ACME client for Vault's PKI endpoint, so confirm compatibility before you commit to one. Any client you choose must be able to use External Account Binding if your configuration requires it. Vault's ACME setting eab_policy can be set to always-required, and External Account Binding tokens are created with vault write -f /pki/acme/new-eab. The VAULT_DISABLE_PUBLIC_ACME environment variable forces EAB on for all ACME instances. Check the Vault PKI ACME documentation and your chosen client's own documentation to confirm which client options and EAB flows they support.

How often do Vault short-lived certificates need to renew?

Renewal frequency depends on the TTL you set on the role and on the ACME max_ttl setting. The Vault PKI issuance API states that the ACME max_ttl defaults to 90 days (2160 hours) if it is not set. The intermediate CA quick start shows an example role with max_ttl=72h, which is an illustrative value that would require renewal roughly every few days. Pick the TTL that matches how often your applications can reload certificates, then schedule renewal ahead of expiry. Check the role and ACME settings in your own environment, since the defaults apply unless you override them.

What happens when a certificate renewal fails in Vault?

The sources on this page do not describe Vault's retry or failure behavior during renewal, so check the Vault PKI documentation and test this in your own environment. What the sources do say is that certificates can be fetched and held in memory at application startup and discarded at shutdown without being written to disk. A renewal failure therefore leaves the application with its current in-memory certificate until it expires. Plan monitoring that alerts on renewal errors well before the certificate's expiry time, and rehearse a failed renewal during testing.

Can Vault issue internal and wildcard certificates?

The intermediate CA quick start shows a role with allowed_domains=example.com and allow_subdomains=true, then issues a certificate for blah.example.com under that role. This confirms that roles can allow subdomains of a domain. The sources on this page do not state whether wildcard names such as *.example.com are issued, so check the role options in the Vault PKI documentation before relying on them. For internal names, the role's allowed domains define what can be issued, so scope those roles to the domains you control.

How does certificate revocation work with short TTLs in Vault?

The Vault PKI docs say that relatively short TTLs make revocation less likely to be needed, which keeps certificate revocation lists short. For ACME clients, the issuance API documentation states that they can revoke certificates through the ACME revokeCert request. It also says that revoking an ACME account does not revoke its existing certificates, so account revocation and certificate revocation are separate actions. Plan your revocation procedure for compromised keys and confirm the exact revocation steps in the Vault PKI documentation for your version.

When should we get outside help with a Vault PKI rollout?

Consider outside help when the rollout touches several areas at once: ACME with External Account Binding, role and domain scoping, renewal monitoring across many workloads, and an Enterprise-only protocol decision. DeployOpen implements, hardens and documents self-hosted platforms in your own infrastructure, and it can plan and test a Vault PKI deployment as a fixed-scope engagement with the scope and deliverables agreed in writing before work starts. Cost depends on that written scope, and DeployOpen does not publish a price list, so ask for a quote based on your environment. Engagements usually begin with an inventory of the workloads and roles that need certificates.

How Vault issues and renews a certificate

The flow starts when a client or application requests a certificate from a Vault PKI role, either directly through the Vault API or through an ACME client pointed at the engine. When ACME is used, the engine checks External Account Binding (EAB) tokens if the ACME configuration requires them. Vault then signs the leaf certificate with the intermediate CA that was imported into the pki_int mount, and returns it to the application. Renewal repeats this cycle, so the application must reload or restart to pick up the new certificate. Check that the role's max_ttl and no_store settings match your renewal interval.

Vault issues a short-lived certificate from the intermediate CA and the application reloads it.

How DeployOpen works on this

DeployOpen plans, builds and hands over short-lived internal certificate issuance on HashiCorp Vault's PKI secrets engine, sized to your certificate lifetimes, trust chain and application startup model. Each engagement starts from a written scope, so the work on your Vault deployment is agreed before anything changes.

How we scope

  • We confirm which internal services need certificates, their intended TTLs and whether they need ACME, direct API issuance or both.
  • We review your intermediate CA layout, mount paths and role definitions, and record which roles and domains the scope will cover.
  • We agree the written scope, deliverables and timeline with your platform and PKI owners before any configuration begins.

How we build

  • We enable and tune the PKI mount, create issuing roles with defined allowed domains and maximum TTLs, and set up the intermediate CA chain.
  • Where ACME is in scope, we configure the cluster path, directory policy and External Account Binding, and confirm the required response headers are allowed.
  • We test issuance, renewal and revocation paths, including application retrieval of certificates held in memory without writing them to disk.

How we hand over

  • We document the mount configuration, roles, TTL settings and trust chain so your team can review and extend them.
  • We provide runbooks for intermediate CA rotation, EAB token creation and role changes, sized to the scope we agreed.
  • We walk your platform and PKI teams through the configuration and record the handover against the agreed deliverables.

How we support

  • Ongoing support, upgrades and continuous testing of the Vault PKI configuration are available as a retainer after handover.
  • We can re-test issuance paths after Vault version upgrades or changes to ACME, role or trust settings in your environment.
  • Confirm current Vault edition, ACME support and Enterprise-only protocol availability in the Vault PKI documentation before scoping.

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.