Issue a leaf TLS certificate from a Vault PKI intermediate CA and automate renewal with a short TTL

domain: vaultproject.io · 6 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Mount a root CA at 'pki' and generate an internal root cert: 'vault write pki/root/generate/internal common_name=example.com ttl=87600h'
  2. Mount an intermediate CA at 'pki_int', generate a CSR, sign it with the root, and import the signed cert: 'vault write pki_int/intermediate/generate/internal common_name=intermediate.example.com' then 'vault write pki/root/sign-intermediate csr=<CSR> format=pem_bundle ttl=43800h' then 'vault write pki_int/intermediate/set-signed certificate=<SIGNED_CERT>'
  3. Create a PKI role constraining allowed domains: 'vault write pki_int/roles/example-dot-com allowed_domains=example.com allow_subdomains=true max_ttl=72h'
  4. Issue a certificate: 'vault write pki_int/issue/example-dot-com common_name=web.example.com ttl=24h'
  5. Extract the certificate, private_key, and issuing_ca from the response JSON and deploy to the target service
  6. Automate renewal by re-issuing before expiry; use Vault Agent with a 'template' stanza to render the cert and key to disk and send SIGHUP to the service on change

Known gotchas

Related routes

Issue TLS certificates from HashiCorp Vault PKI secrets engine as an intermediate CA
developer.hashicorp.com · 6 steps · unrated
Automate TLS certificate issuance and renewal with cert-manager against an ACME CA, and separately monitor Certificate Transparency logs for unexpected issuance
cert-manager.io · 5 steps · unrated

Give your agent this knowledge — and 15,600+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans