Why run an OpenBao ACME server for internal TLS certificates
Internal services increasingly need short-lived TLS certificates that renew without a ticket, and a manual issuance process cannot keep up with that. An OpenBao PKI mount can act as an ACME directory, so ACME clients such as certbot request and renew certificates from your own certificate authority in the same way they would from a public one. The result is that certificate renewal becomes a routine client action rather than an operator task. Before you commit to this design, confirm the current ACME behavior, supported client flows and any known limitations against the OpenBao release notes for the version you plan to run, because the ACME feature set changes between minor releases.
The ACME directory exposes the standard protocol endpoints that clients use to create accounts, place orders, complete challenges and download issued certificates. Your team controls which PKI role backs the directory, which means the role's allowed names, key types and lifetimes still govern what a client can receive. Certbot and other ACME clients that support a custom directory URL are the typical consumers, and the directory URL and the cluster path configuration need to match what those clients reach from their own networks. Read the OpenBao PKI documentation for the ACME endpoints and the cluster settings they depend on, and treat that page as the source for exact parameter names.
Choose an OpenBao ACME directory when you have many internal hosts or services with certificates that expire on a schedule shorter than a human can track, and when your CA already lives in OpenBao. Manual issuance remains reasonable for a small, stable set of long-lived certificates, and a separate ACME product makes more sense if you need features your PKI mount does not provide or if you want a single tool for both public and private certificates. Your decision should also account for the operational cost: the ACME server depends on the same cluster, load balancer and CA hierarchy as the rest of your PKI, so an outage or misconfiguration affects every renewing client at once. Plan that dependency explicitly before you roll the directory out to production hosts.
Where ACME fits next to other internal certificate methods
Internal TLS certificates can reach a workload through several paths, and each one assigns renewal to a different party. The cards below compare ACME clients, OpenBao Agent templates, direct API or CLI issuance, and directory enrollment, so you can see who owns renewal and what you must build around each path before you pick one.
ACME clients against OpenBao
Standard ACME clients such as certbot run on the server that holds the certificate and request, validate and renew it on their own schedule. Renewal is owned by the client, so the operator's work is the cluster URL configuration on every OpenBao node, external account binding for each client identity, and role restrictions that limit which names a client may request. Check that clients reach the ACME endpoints through the load balancer and that the client-facing port settings match what the load balancer exposes.
OpenBao HA docsOpenBao Agent template renewal
OpenBao Agent can render certificates into files through PKI template functions and renew them before expiry. Renewal is owned by the Agent process, so the operator must build the reload step that tells a service to pick up the new certificate, plus monitoring that confirms the Agent is running on each host. This path suits services that already consume secrets through Agent and do not need ACME's protocol-level validation.
Direct API or CLI issuance
Teams can request certificates directly from the PKI mount with the API or bao CLI, typically from a deployment pipeline or a configuration management run. Renewal is whatever the pipeline schedules, so the operator owns the job, its credentials and the record of what was issued. Confirm that the token or role used has only the issuance permissions it needs, and decide where the returned private key is stored and how it is removed afterward.
Enrollment through a directory service
Where an existing directory such as Active Directory or FreeIPA already issues certificates to domain-joined machines and users, enrollment follows that directory's policy and templates. OpenBao is not the enrollment point in this path, so the operator must decide whether the directory's certificate authority chains to the OpenBao hierarchy or runs separately, and who owns renewal on each machine. Confirm which trust chain your clients validate before moving any service off the directory.
Choosing a path per service
Most organizations run more than one issuance path, and the decision is usually per service rather than per organization. Map each service to its client type, its renewal owner and its reload procedure, then record which names and roles each path may request. A written inventory of these paths is the artifact auditors and incident responders ask for first, so keep it current when a service changes path.
Configuration options and when each fits
This table compares the decisions that shape an OpenBao ACME setup, from cluster URLs to error logging. Read each row as a question to settle before the PKI mount goes live, and use the confirm column to check the exact settings against the configuration reference for your OpenBao version.
| Decision | When it fits | Trade-off | What to confirm |
|---|---|---|---|
| Cluster URL and ACME path on every node | Always, for any cluster where ACME clients may reach more than one node or a load balancer | Each node must advertise a consistent address, so a missed node can hand clients a URL they cannot reach | The cluster address settings and ACME path configuration for your version, applied identically on all nodes |
| External account binding on | Clients are provisioned by a known team or tooling, and you want to limit enrollment to pre-approved accounts | Adds a bootstrap step for each client and a credential to rotate, but blocks anonymous registration | Whether your version enables binding for the mount, and how bindings are created and revoked |
| External account binding off | A small, trusted internal network where every ACME client is already controlled by your team | Anyone who can reach the ACME directory can register an account, so network scoping carries the control | Network reachability of the directory and whether unauthenticated registration is permitted in your version |
| Role restrictions on allowed names | Certificates should only cover specific internal domains, such as a defined zone or service names | Tight rules reduce misissuance but need updating when new services or zones appear | How allowed domains, subdomains and wildcards are set on the PKI role and tested with a sample request |
| Role restrictions on key types and sizes | You need a fixed set of key algorithms and minimum sizes for compliance or client compatibility | Narrow lists can break older clients that expect other algorithms | Which key types and bit lengths the role accepts, and which ones your ACME clients generate by default |
| Client-facing port and URL behind a load balancer | ACME clients reach the directory through a proxy or load balancer on a different port or hostname than the nodes | The URL clients receive must match the public address, or validation and directory links fail | The client-facing address and port settings, and whether the load balancer forwards the required headers and paths |
| Direct access to nodes without a load balancer | A single node or lab setup where clients reach OpenBao directly | Simpler, but there is no failover for certificate issuance | That the advertised address matches the address clients use on the network |
| Logging destination for ACME errors | You need failed enrollments and validation errors in your central log platform for audit and troubleshooting | Errors may appear in server logs rather than the audit device, so monitoring must cover both | Where ACME errors are written for your version, the log level required, and whether audit devices record the same events |
How the ACME directory URL must match every node
The URLs an OpenBao ACME directory hands back to clients must resolve to the address those clients actually use, including when a load balancer sits in front of several nodes. An ACME client fetches the directory, then follows the links in it to create accounts, submit orders and fetch certificates. If any of those links points at an address the client cannot reach, issuance fails at a later step than the one that looks broken, so the error often appears far from its cause. Because the cluster settings that shape these URLs live on each node, a single misconfigured node can fail only the requests that happen to be routed to it.
Plan the cluster-level and client-facing settings together, before the first client points at the endpoint. Decide the single external name that clients will use, the load balancer address behind it, and the path each node uses to reach the others. Then confirm that every node advertises an address consistent with that plan. A node that advertises an internal hostname, a container address or a stale name from a previous deployment will still answer health checks, which makes the fault hard to spot. Test by requesting the directory through the load balancer several times and checking that each returned link uses the expected host and scheme.
Verify the required per-node settings against the current OpenBao configuration documentation for the version you run, because the names and behavior of these settings have changed across releases and should not be copied from older Vault material. Record the values each node uses, and treat any change to the load balancer name, certificate or port as a change that requires checking every node again. Confirm the exact settings with the OpenBao documentation and with a test cluster before you change production.
How a certbot request reaches the OpenBao PKI mount
The request starts at certbot on an internal host and passes through a load balancer to one of several OpenBao nodes. The node serving the request hands it to the PKI mount, which acts as the ACME directory. Before any certificate is issued, the mount checks the external account binding and the role the request maps to. The trust boundary sits around the OpenBao cluster, so the checks run inside it. Confirm where your nodes write ACME errors, because that log is the first place to look when a renewal fails.
Request path from certbot through the load balancer into the OpenBao PKI mount, with the trust boundary and check points marked.
Setup sequence for the ACME directory with checks
This sequence turns an existing OpenBao PKI mount into an ACME directory that internal clients can use, with a verification step after each change so problems surface where they are introduced. Each step names the artifact or output that confirms it is complete.
Confirm the OpenBao version and PKI mount
The platform team confirms which OpenBao release the cluster runs and which PKI mount will issue certificates, including its namespace path if namespaces are in use. Check the running version on every node with the version command and record the result, because ACME behavior and the exact configuration keys depend on the release. Confirm the mount has a working issuer and role before changing anything. Done means the version, mount path and issuer are written down and match what the change record names. Confirm the exact commands and configuration keys for your release against the OpenBao release notes and the PKI documentation before you run them.
Set cluster URL settings on every node
The platform team sets the cluster address and the URL settings that ACME uses to build directory and resource links on each node, so responses point to an address clients can reach. Apply the same values on every node in the cluster, then restart or reload each node according to your procedure. Clients that reach a load balancer need the externally reachable address here, not the node address. Done means each node reports the same configured values, and fetching the ACME directory from a node returns links that use the expected external hostname. Confirm the setting names and reload behavior for your release.
Enable the ACME directory on the mount
The PKI administrator enables ACME on the PKI mount using the ACME configuration for that mount, and decides whether the directory is available on the default path or only through specific roles. Keep the mount's CA hierarchy and default issuer unchanged, because ACME issues from the issuer the mount already uses. Done means the mount's ACME configuration reads back as enabled with the expected settings, and the directory document is reachable from a machine on the client network. Record the directory URL for the client teams.
Create roles and external account binding
The PKI administrator creates the PKI roles that ACME clients may use, limiting allowed domains, key types, and maximum lease time to what those clients need. If your ACME setup requires external account binding, create the bindings that tie each client to an authorized account and confirm which roles each binding may request. Keep one role per trust zone so a compromised client cannot request names outside its zone. Done means a role lists the expected constraints, and a binding test shows a request outside the allowed names is refused. Confirm the binding and role parameters for your release.
Point a test client at the directory
A platform engineer on a non-production host points an ACME client, such as certbot, at the directory URL, registers an account, and requests a certificate for a name inside the allowed domains. Use a staging hostname that reaches the test host through the same load balancer path the production clients use, so client port and redirect settings get tested too. Done means the client completes the challenge and receives a certificate, and a request for a disallowed name fails as designed.
Check the issued certificate chain
The engineer inspects the certificate the test client received and confirms the subject alternative names, validity period, key type, and issuer match the role. Verify the chain from the leaf to the issuing intermediate and to the root that your clients trust, using the chain file the client saved. Done means the chain validates against the internal trust store on a separate host, and the issuer matches the mount's expected issuer. A mismatch here usually points to the wrong issuer or a missing intermediate in the chain.
Check the logs for ACME errors
The operations team reviews the OpenBao server logs on each node and the audit log for the test requests, looking for ACME request errors, challenge failures, and denied role or binding checks. Confirm that every node logged the test activity, which shows whether the cluster URL settings and load balancer routing are consistent. Done means the test requests appear in the expected logs with the expected outcomes, and the team has recorded the log locations and the alert or review process that will watch them. Confirm the log destinations and log levels for your release.
Restricting which names and clients can use ACME
The PKI role attached to the ACME directory is the main control on what a client can obtain. Whatever the ACME client asks for, OpenBao issues only what that role permits, so the role is where you decide which domains and subdomains may be requested, which key types are acceptable, and how long a certificate may last. Set allow_any_name, allowed_domains, allow_subdomains, allowed_key_types and max_ttl deliberately rather than relying on defaults, and confirm in a test environment that a request for a name outside the allowed domains is refused. Check the behavior for wildcard and bare-domain requests separately, since those are easy to get wrong in a role that looks correct at a glance.
External account binding (EAB) is the second control. It adds a pre-shared step: before a client can register an ACME account, it must present credentials that an operator issued in advance, so arbitrary hosts cannot create accounts against your directory just because they can reach it. Confirm in your environment how EAB is enabled for the ACME directory, how the key identifiers and shared secrets are generated and delivered to the clients that need them, and what happens to an existing account when its EAB material is retired. Treat EAB material as a secret with its own delivery path, not something to paste into a shared configuration file.
Document these two controls together and review them as a pair. A role that is narrow still lets any party with valid EAB material request every name the role allows, and EAB alone does not limit what a registered client may obtain. Keep a written record that maps each client or team to its EAB material and its permitted names, and rerun your restriction tests after any change to the role or the directory settings. The OpenBao PKI documentation is the reference for the exact parameter behavior, so verify each restriction against the version you run.
Security risks to plan for before clients reach the directory
An ACME directory issues certificates on request, so every weakness in who can ask, where the request comes from and what is recorded becomes a path to trusted internal TLS. The cards below pair each risk with the control to put in place and the item to verify in your environment before any client is pointed at the directory.
Overly broad role permissions
An ACME account that can request any name or any lifetime can obtain certificates for services it should never front. Restrict the PKI role used by ACME to the allowed domains, key types and maximum TTL that the directory is meant to serve, and keep separate roles for separate teams. Verify that each ACME-facing role lists only the domains it needs and that no wildcard or broad default role is reachable through the ACME path.
Namespaces docsExternal account binding secrets handled poorly
External account binding (EAB) keys are the shared secret that ties a client to an account, so a leaked EAB key lets anyone register as that client. Store EAB values in OpenBao or your secrets workflow, give each client its own binding, and rotate bindings when staff or hosts change. Confirm that EAB keys never appear in configuration files, CI logs or shell history and that each one can be revoked without affecting other clients.
Directory exposed to the wrong networks
The ACME directory is an HTTPS endpoint that should answer only the hosts that need certificates, not every network that can route to the cluster. Limit reachability with firewall rules, load balancer allow lists or separate listeners for internal and management traffic. Test from a network that should be blocked and confirm the request fails before the directory is announced to any team.
Load balancer leaks the wrong address
ACME clients follow URLs the server returns, such as the directory and order links. If the cluster address or port is wrong behind a load balancer, clients may fetch from an internal node name or an unintended port, and certificate workflows break in confusing ways. Set the cluster and client-facing URL settings deliberately on every node and check that the directory response lists only the public address clients should use.
Certificate lifetimes outlast the owner
Automated renewal means a certificate can keep working long after the team, host or service that requested it has been retired. Set maximum lifetimes on the ACME role, tie each certificate to an owner in your inventory and plan revocation for decommissioned hosts. Confirm that every ACME-issued certificate can be traced to an owner and that a retired host's certificates are revoked or allowed to expire.
Audit gaps when errors go unretained
Failed orders, rejected challenges and binding errors are often the first sign of misuse or misconfiguration, yet they are easy to lose when logs roll over or stay on one node. Decide where ACME errors are written on each node, forward them to central logging and set a retention period that matches your review cycle. Verify that a deliberately rejected ACME request appears in your central log store before relying on it for investigations.
Where ACME errors are logged, by deployment shape
On a single OpenBao node, the server process writes its own log output, and that is the first place to look when a certbot or other ACME client reports a failed order. Start with the node's service logs, which depend on how the process was started (a systemd journal, a container log stream or a file redirect in your init setup). Match the timestamp of the client error against the server log to find the ACME request that failed. The client side usually shows only the directory response, the challenge type and a status code, so the server log is where the reason for rejection appears.
- Service journal or container output: Check the unit or container logs for the OpenBao process around the time of the client error.
- Request correlation: Compare timestamps with the client's output from certbot or your ACME client, which typically shows the order and challenge state.
- Log level: Confirm in the OpenBao documentation for your release which log level exposes ACME request handling, and whether debug output is needed for detail.
- Retention: Confirm how long the host keeps journal or container logs, since single-node logs are often rotated quickly.
- Configuration files: Check that the
log_leveland log destination settings in the server configuration match what your runbook expects.
Before you rely on this path, confirm log level and retention for the exact release you run, because these defaults change between versions.
In a Raft or PostgreSQL cluster behind a load balancer, an ACME failure may be logged on a different node from the one that received the client's request, and the load balancer may hide which node that was. Begin with the load balancer's access log to find the backend that handled the failing request, then open the server logs on that node. Errors such as a challenge that could not be validated or a request sent to a node with a wrong cluster address are easier to trace when you know the exact backend. Each node should use the same cluster configuration, so a mismatch on one node often shows up only on that node's logs.
- Load balancer access log: Identify the backend, request time and status code for the failed ACME call.
- Per-node server logs: Search the chosen backend's OpenBao logs for the same time window.
- Node configuration drift: Compare cluster and ACME URL settings across nodes, since a mismatch affects only some requests.
- Client port settings: Confirm the port advertised to clients matches the load balancer listener, so validation requests reach the expected endpoint.
- Storage health: For Raft or PostgreSQL, check the cluster state if requests fail intermittently, because leadership changes can coincide with errors.
Before you change any setting, confirm in the OpenBao high availability documentation and your release notes how forwarding and read behavior on standby nodes affects where a request is logged.
When OpenBao logs are shipped to a central platform, the platform becomes the main place to investigate ACME failures, and the host logs may be only a backup. A shipping agent, a syslog forwarder or an OpenTelemetry-based collector can all carry these entries, and each step adds a point where entries can be dropped, delayed or mislabeled. Before an incident, confirm that the OpenBao server log stream arrives with a host or node field, so you can tell which backend produced an error. Set search rules on the ACME request path and on error-level entries so that a failed order is visible without manual digging.
- Shipping pipeline: Verify the forwarder reads the OpenBao log file or journal and does not skip multi-line entries.
- Node labels: Ensure each event carries the node name so cluster failures can be traced to a backend.
- Alerting: Create alerts for repeated ACME error entries, based on patterns your team confirms from test issuance.
- Retention in the platform: Confirm the index or storage retention period against your audit requirements, since ACME failures may be needed in investigations.
- Audit logging: Keep audit device logs separate from operational logs, and confirm which one records the certificate requests you need to review.
After setup, issue a deliberately failing test order and confirm the error appears in the central platform within your expected time.
Limits to confirm in your environment before you commit
An OpenBao ACME service depends on the release you run, the clients you point at it, the names you need to issue for, and how the PKI mount is sized. Each item below is a question to answer from the vendor docs or a test in a non-production cluster before you commit to a design.
Supported ACME features by release
Confirm which ACME endpoints, challenge types and account features the release you plan to run actually provides. Pin the exact version in your design, because the team that tests on one minor line may find a different behavior after an upgrade. Read the release notes for the specific version and run the full certbot flow against a test mount before promising the feature to application teams.
OpenBao releasesClient compatibility across your tooling
List every ACME client in use, including certbot, Traefik or cert-manager style controllers, and any scripts your platform team wrote. Test each one against your OpenBao directory URL, covering account registration, External Account Binding if required, renewal and error handling. Clients differ in how they parse errors and retry, so a working certbot run does not confirm the others will work.
Validation of internal domain names
Internal TLS names often use private zones, split-horizon DNS or names that no public CA can validate. Confirm which challenge types your network can satisfy, such as HTTP-01 or DNS-01, and whether your DNS provider and firewall rules allow the validation traffic. Also confirm how the server checks identifiers against role restrictions, because a name your team expects to pass may be rejected by policy.
Renewal during cluster outages
Clients renew on their own schedule, so an OpenBao outage at renewal time delays certificates rather than stopping them at once. Confirm how your clients behave when the directory is unreachable, how many retries they make, and how long your certificates stay valid relative to your maintenance windows. Test a simulated outage on a standby node and on the full cluster, and record how long services keep working on the last issued certificate.
Issuing and storage settings for capacity
The PKI mount's key type, certificate storage setting and tidy schedule all affect how the cluster performs as ACME order volume grows. Ask the vendor docs how each setting changes storage growth and LIST or tidy time, then measure with your expected renewal load. Confirm which storage backend and high availability design you have chosen, since those decide how the cluster absorbs that load.
OpenBao HA docsQuestions buyers ask about OpenBao ACME, cost and effort
How much effort does a first OpenBao ACME deployment take?
The effort depends mostly on how much of the PKI foundation already exists. If an OpenBao PKI mount with a working issuer is in place, enabling ACME is a configuration task on each node. If the CA hierarchy, role design, load balancer path and client rollout are all new, the work is larger because each of those needs decisions and testing. The main drivers are the number of OpenBao nodes that need the cluster URL set, how many ACME clients and services will request certificates, whether external account binding is required, and how much monitoring and error handling your team wants before go-live. Ask any partner to split the quote by these items so you can see what is new and what is reused.
What does the work need from our own team?
Expect to supply people who know your network, DNS, load balancers, certificate consumers and change process. Typically this includes someone who owns the OpenBao cluster and its configuration, someone who can approve the CA and role design, and owners for each service that will request certificates through certbot or another ACME client. Your team should also confirm which ports are reachable from clients, how TLS terminates at the load balancer, and where logs are collected. Written access to a test cluster and a change window for the rollout to every node reduces delays. Ask any provider to list these inputs in the scope document before work starts.
Can our internal team set this up without a partner?
Yes, if your team already operates OpenBao and has PKI experience. The configuration itself is documented by the project, and the hard parts are design decisions: which PKI roles may be used through ACME, how external account binding is handled, how client ports behave behind a load balancer, and how errors are monitored. A team without recent PKI or OpenBao operations experience will spend more time on those decisions and on testing failure cases such as expired orders or misconfigured cluster URLs. A partner is most useful when you need an independent design review, a repeatable runbook, or a tested rollout across several environments. Compare the internal estimate with a fixed-scope quote before choosing.
How long does the work usually take, and what changes the timeline?
No duration is stated here because the supplied information does not give one, and the answer varies widely with environment. Timelines usually grow with the number of OpenBao nodes, the number of separate PKI mounts or namespaces, the complexity of the load balancer and DNS path, the number of ACME clients to migrate, and approval cycles for the CA hierarchy. Scheduling around change freezes and the time needed to test renewal across real services also adds to the calendar. Ask for milestones tied to the written scope, with a clear list of what is verified in staging before any production change.
What is one-time work and what recurs after go-live?
The one-time work covers design, the initial configuration of the cluster URL on every node, ACME role and account setup, load balancer and client port validation, logging review and the first client rollouts. Recurring work includes keeping the OpenBao version current, reviewing ACME role permissions as services change, checking error logs for failed orders, rotating or reviewing external account binding material, and running periodic PKI review. Plan for upgrades at the pace your OpenBao release process requires. Ongoing support and continuous testing can be contracted as a retainer if you do not want to keep that expertise in-house.
What should we ask for in a written quote?
Ask for a fixed scope that lists each deliverable: the design of the ACME directory and its roles, the configuration steps for every node, the external account binding approach, the load balancer and client port settings, the logging and alerting setup, a client rollout plan, and a test report. Request the assumptions about your environment, the items you must supply, the acceptance criteria and the change process. Confirm whether ongoing support or retesting is included or priced separately. DeployOpen does not publish a price list, and a quote follows from the written scope, so the more precise the scope, the more comparable the quotes will be.
How DeployOpen scopes and delivers an OpenBao ACME setup
DeployOpen treats an OpenBao ACME endpoint as a PKI service that your teams will depend on for years, so the work starts with your certificate inventory, trust model and failure tolerance. We plan, build, test and hand over the setup inside infrastructure you control, with each step documented for the people who will run it.
How we scope
- Engagements are fixed-scope, with the ACME directory list, client types and certificate names agreed in writing before work starts.
- Scope records every OpenBao node, its cluster and ACME URL settings, and the load balancer path clients will use.
- Scope defines which PKI roles ACME may use, who approves them, and which ACME errors your logs must capture.
How we build
- We configure the PKI mount as an ACME directory and set external account binding on every node consistently.
- We restrict ACME-issued certificates to named roles and test that out-of-scope names are refused.
- We verify client port and cluster URL settings behind your load balancer with certbot and other agreed ACME clients.
How we hand over
- Handover documentation covers configuration on each node, role restrictions, account binding steps and the log locations for ACME errors.
- Runbooks describe how to add a client, rotate binding credentials and respond to a failed renewal.
- We walk your platform and security teams through the test results and the open items agreed in the written scope.
How we support
- Ongoing support, upgrades and continuous testing are available as retainers after handover.
- Retainers can cover OpenBao version upgrades and review of ACME role and client changes as your environment grows.
- Ask any provider to confirm response times, upgrade windows and who holds on-call duties before you sign.

