Why teams replace static SSH keys with an OpenBao SSH certificate authority
OpenBao's SSH secrets engine can replace long-lived SSH keys with short-lived signed certificates or one-time passwords, so each login is granted for a bounded session and then expires. The problem it addresses is familiar to most platform teams. Static SSH keys are copied into authorized_keys files across many hosts, few teams keep a complete inventory of where they sit, and they rarely expire. When someone leaves or changes role, their keys often stay behind on servers nobody remembers to check, and an offboarding checklist cannot easily find them.
Teams usually move to this model when the fleet is large enough that key sprawl is no longer manageable, when auditors expect access to be tied to a named person and a time window, or when staff and contractors join and leave often enough that manual cleanup fails. With certificates, each host trusts a certificate authority, so access is governed by who can request a certificate and what that certificate allows. One-time passwords suit a different pattern, where a single short-lived credential is needed for one login. The first decision is which mode fits each group of users and hosts, and whether both are needed at all.
Confirm the specifics in the OpenBao documentation before you design around them: the supported certificate types, how lifetimes and principals are set on roles, what the one-time password flow requires from the client, and which OpenBao versions carry the features you need. Also confirm what each host must change, such as the SSH daemon trust settings and any principal mapping, because that host work is what turns a working CA into a working rollout. DeployOpen plans and rolls out OpenBao SSH certificate authorities in infrastructure you control, including CA placement, the roles and policies that issue access, host configuration, and a staged cutover that keeps existing access working until each host is verified.
How a user gets a certificate and how a host trusts it
The flow starts with a user authenticating to OpenBao through an auth method, then asking the SSH secrets engine for a signed certificate or a one-time password. The user connects to a host whose sshd already trusts the CA public key, which was distributed to the host ahead of time, outside the request path. The trust boundary sits between the OpenBao cluster, which holds the signing key, and the hosts, which hold only the public key. Check the exact engine endpoints and sshd settings against the current SSH engine documentation before building this out.
Users get short-lived credentials from OpenBao and hosts verify them with only the public CA key.
Which SSH access model fits which fleet
This table compares signed user certificates, signed host certificates, one-time passwords and keeping static keys across the changes each one brings for users, hosts, identity and audit. Read each column as a fleet profile, then check the row for the model you are considering. Most fleets combine models, and the exact role parameters must be confirmed in the SSH documentation for the OpenBao version you deploy.
| Model | What changes for users and hosts | Identity and audit needs | When it fits |
|---|---|---|---|
| Static SSH keys (baseline) | Users keep long-lived key pairs; hosts keep authorized_keys files edited by hand or by configuration management | Key inventory is usually incomplete; revocation depends on removing keys from every host | Small, stable fleets with few administrators, or as a temporary state during migration |
| Signed user certificates | Users request a short-lived certificate from OpenBao and present it to hosts that trust the user CA; hosts add one trusted CA line | Requires an identity check before signing, a documented principal mapping and audit logs of every signing request | Interactive administrator access across many Linux hosts where expiry and central revocation matter most |
| Signed host certificates | Hosts present certificates signed by the host CA so users are not prompted to accept unknown host keys; clients trust one host CA | Requires a host inventory and a process to issue and renew host certificates; audit focuses on signing requests from automation | Fleets where host key trust prompts, host impersonation risk or rebuilt hosts cause operational pain |
| One-time passwords | Users obtain a single-use password from OpenBao for a session; hosts need the OpenBao-side verification path configured | Requires strong authentication before issuance and audit of each issued credential; confirm the supported PAM or host integration | Occasional access to hosts that cannot accept certificates, or a break-glass style path with tight controls |
| Combined model (typical) | Users receive signed user certificates; hosts receive signed host certificates; static keys are removed on a planned schedule | Needs one identity source for signing, logs that show who received which certificate, and a retirement plan for old keys | Mixed fleets with interactive, automated and legacy access that must be governed by one policy |
Choosing certificates or one-time passwords by situation
For people who log in to servers by hand, short-lived user certificates are usually the best fit. An administrator authenticates to OpenBao, requests a certificate for a short validity window, and uses it for ordinary SSH sessions. Access ends when the certificate expires, without anyone editing authorized_keys on every host.
- Identity source: Each person's login to OpenBao should go through the identity method your organization already uses, so offboarding in the directory also removes signing rights.
- Principals and roles: Map certificate principals to Linux accounts and restrict each signing role to the principals it may request.
- Validity window: Choose a lifetime short enough that revocation by expiry is acceptable for your risk profile, and confirm how your team handles long-running sessions.
- Host trust: Each host must trust the CA public key. Plan the rollout of that trust before removing static keys.
- Trade-off: Interactive users must re-authenticate to OpenBao on a regular cycle, which adds a small daily step that should be explained before rollout.
Confirm with your own SSH server configuration and OpenBao version how certificate revocation and principal restrictions are enforced in your environment.
Scripts, deployment pipelines and scheduled jobs usually need non-interactive access. Signed certificates can work here, but the job must obtain a fresh certificate before each connection or batch, which means the workload needs authenticated access to a signing endpoint. This is the main design decision for this tab.
- Signing step: Each run requests a certificate from the signing role, so the pipeline or job needs its own OpenBao identity, typically through AppRole or Kubernetes auth as your platform allows.
- Secret zero: The credential that lets the job sign is itself a secret and must be delivered and rotated with care.
- Scope: Give each service account a dedicated role with narrow principals and a short validity window, not a shared signing role for all pipelines.
- Audit: Signing requests become log events, which helps attribution but also means logging volume grows with job frequency.
- Trade-off: Static keys are simpler for unattended jobs, but a signing step adds a dependency on OpenBao availability. Assess whether your jobs can tolerate a failed sign request and how they retry.
Illustrative check: if a nightly job runs against many hosts, measure how many signing requests it makes and whether that load is acceptable for your cluster.
Break-glass access is the path used when normal identity systems or OpenBao itself are unavailable. The goal is a route that works during an incident without becoming a standing back door. Certificates depend on the CA and identity path being healthy, so break-glass design must assume those components may fail.
- Separate path: Keep at least one emergency method that does not depend on the same identity provider or OpenBao cluster as day-to-day access. Test that it works.
- Offline or sealed material: Store emergency credentials under dual control, and record who can release them and under what conditions.
- Host-side fallback: Decide whether a local account or a stored key exists on hosts for emergencies, and who may use it.
- Monitoring: Alert on every break-glass use, and review each use after the event.
- Trade-off: A tightly controlled emergency key is safer than a standing one, but it must be tested on a schedule, because an untested break-glass route often fails when needed.
Confirm with your incident response team which approvals and notifications apply. OpenBao does not send approver notifications by itself, so any dual-approval workflow must be built around it.
Some hosts cannot easily be changed. These include network appliances, storage controllers, older Unix systems and vendor-managed devices whose SSH server or configuration is controlled by the vendor. For these, certificate trust may not be configurable, and one-time passwords may be the only option the platform supports. Confirm the behavior of each device before choosing a model.
- Inventory: List each host and record whether it can be configured to trust a CA, accept a one-time password flow, or only accept static keys.
- Documentation first: Use the SSH secrets engine documentation and the vendor's documentation for each device. Do not assume support from general SSH behavior.
- Interim controls: Where static keys remain, rotate them on a defined schedule, restrict source addresses, and record who holds them.
- Vendor agreements: Check whether vendor support contracts allow changes to SSH trust settings before you plan a rollout.
- Trade-off: One-time passwords reduce standing credentials but add an OpenBao lookup for each login, which is operationally heavier for frequent access. Certificates are lighter per login but may not be accepted by the device.
Ask each vendor to confirm in writing which SSH trust mechanisms their product accepts before scoping the rollout.
Setting up the SSH secrets engine and signing access
This sequence takes a running, unsealed OpenBao cluster from no SSH capability to a working signing path where approved identities receive short-lived certificates and everyone else is refused. Each step ends with a check so the team knows it is safe to move on.
Confirm cluster health and access boundaries
Before enabling anything, confirm the cluster is unsealed, the active node is healthy and the operators who will administer the SSH engine hold only the policies they need. DeployOpen's engineers and your platform team review the current policy set and decide which namespace, if any, will host the SSH mount. Done when the cluster reports healthy status on every node and the administrative policies have been reviewed and recorded in the written plan.
Enable the SSH secrets engine
Mount the SSH secrets engine at a path your team will use consistently, following the mount and enable commands in the OpenBao SSH documentation. Keep the mount path in the same naming convention as your other engines so audit logs and policies stay readable. Done when the engine appears in the mount list and a read of its configuration returns without error.
Generate or import the CA key pair
Create the signing CA inside OpenBao, or import an existing key if your key policy requires a key generated elsewhere. Choose the key type and size based on the policy your security team has approved and confirm the options against the SSH documentation for your OpenBao version. Retrieve the CA public key and check that it returns the expected key type and fingerprint. Store the procedure for the key ceremony, including who is present and where the record is kept.
Distribute the CA public key to hosts
Install the CA public key on a single test host as a trusted user CA, then configure sshd to accept certificates signed by it, following your distribution's OpenSSH settings. Confirm the host accepts a certificate signed by the CA and rejects a key-only login that is not in the authorized list. Roll out to the remaining hosts only after this test host behaves as expected. Done when the test host accepts signed certificates and the rollout plan lists every host group.
Define roles for principals and lifetimes
Create one role per access profile, setting the principals each role may request, the maximum certificate lifetime and any extensions or critical options your hosts need. Keep roles narrow, so an engineer who needs one host group does not receive a role that reaches production databases. Check the role by reading it back and confirming the principals and TTL match the approved design.
Write policies so only approved identities can sign
Attach a policy to each role's signing path that allows only the identity groups approved for it. Deny signing to every other identity by default and review the policy against the authorization model your team documented. Test with a sample of approved identities and at least one identity outside the approved groups. Done when the approved identity signs successfully and the denied identity receives a permission error from the signing endpoint.
Connect the login method and verify expiry
Connect the auth method users will log in with, such as OIDC or another method from your existing identity setup, and map its groups to the policies from the previous step. Sign a test certificate with a short lifetime, use it to log in to the test host, and confirm access works until expiry and fails afterward. Done when the test certificate signs, grants access within its lifetime, and is refused once it expires, and the results are recorded for the audit trail.
Rolling the trusted CA out to hosts without locking anyone out
The rollout order matters more than the configuration itself. Start by distributing the CA public key to a small canary group of hosts that administrators use daily, then set the sshd directives on those hosts so they trust the CA and accept certificates. Keep every static key in authorized_keys working during this phase. Static access stays in place until certificate logins have been proven on each canary host from every admin workstation, including the jump hosts and automation accounts that log in unattended. Only after that proof do you remove static keys, and you remove them host by host, not fleet-wide. The exact directive names, such as the trusted CA key option and the certificate-related options, along with their file locations and reload commands, differ by OpenSSH version and operating system, so confirm them against your distribution's sshd documentation before you write any template.
Track conversion state in a source of truth your team already reviews, such as an inventory field or a tagged group in your configuration management system. Each host should carry one of a few explicit states: static only, dual access, or certificate only. Keep the emergency path separate from the rollout. Before the first canary change, verify that at least one break-glass account on each host still authenticates with a static key or through a console, out-of-band management interface, or hypervisor console that does not depend on sshd or the CA. Record who holds that access and test it from a clean session. Do not rely on a rollback to recover a lockout, because a rollback needs the same access that a failed change may have removed. Also check that the signing service and its policies are reachable from your admin network before you depend on short-lived certificates for daily work.
Push the trust setting through the tooling you already operate, whether that is a configuration management agent, an image pipeline, or a deployment pipeline. Make the change idempotent, validate the sshd configuration syntax before reloading the service, and roll out in batches with a pause for checks between batches. Keep the reload separate from the file change so a bad configuration can be caught before it takes effect in a live session. Ask your team to confirm how the tool handles existing sessions during a service reload and whether it can stop automatically when a health check fails. In a quote or internal plan, the work that recurs includes maintaining the canary group, reviewing conversion state, and rotating the CA trust material when it changes, while the one-time work covers the initial pipeline, test plan, and recovery drills.
Protecting the signing path and the CA key
An SSH certificate authority is only as trustworthy as the key that signs and the process that decides who gets a certificate. The cards below cover the controls that connect the CA key, the signing policy, certificate lifetimes, audit, revocation and host trust, and what to confirm in your own environment for each.
Custody of the CA private key
The CA private key decides which hosts and users are trusted, so where it is generated and held is the first design decision. Decide whether the key lives in OpenBao's own storage under the seal you chose, or whether an HSM or KMS should hold it. Confirm which options your OpenBao version supports for the SSH engine, and read the external keys topic before choosing an external key option, since its availability depends on the engine and version.
OpenBao HA docsLimiting who can sign and for which principals
Signing rights are the real authorization boundary, so the policy on the signing path should name the roles allowed to request certificates and the principals each role may receive. Write policies that bind a signing role to specific principals and a specific host or user population, and avoid a single broad role that can sign any principal. Confirm with your security team that each signing role maps to an owner and a documented purpose.
OpenBao auth methodsShort certificate lifetimes tied to identity
A certificate is valid until it expires, so its lifetime sets how long a stolen or misused certificate remains useful. Set the TTL on each signing role to the shortest period your workflows tolerate, and make issuance depend on a fresh login through your identity provider rather than a long-lived credential. Ask your team to confirm how renewal behaves for long-running sessions and automated jobs before settling on a value.
Auditing every signing request
Every certificate issued is a security event, and the signing path should leave a record of who asked, what was requested and what was returned. Enable at least one audit device and confirm that a failure in logging does not silently block signing. Forward the logs to your SIEM and check that you can answer which identity received a certificate with which principals on a given date.
Revocation and the gap before expiry
Certificates cannot be recalled from a host once issued, so a revoked user or compromised host keeps access until the certificate expires. Plan the revocation path for the window between revocation and expiry, including how hosts stop trusting a certificate and whether you need a key revocation list distributed to hosts. Confirm how the CA behaves for certificates issued before a policy change, and document the window your short lifetimes leave open.
Host trust configuration as code
Every host must trust the CA public key and the principals it accepts, and drift in that configuration weakens the whole design. Manage the trusted CA entries and principal files with the same configuration management and review process used for other host settings. Confirm which hosts still carry authorized keys from the old model, and plan their removal so static keys do not remain a second path in.
What an SSH certificate authority project costs and needs from your team
What drives the cost of an OpenBao SSH certificate authority rollout?
The main drivers are the number of hosts, the number of operating systems and SSH server versions in use, how much your existing identity and directory systems must be wired in, and how much audit and change control evidence you need. Each host needs the trusted CA public key configured and its SSH daemon checked, so a fleet of many small variations takes more work than a uniform one. Hosts in restricted or segmented networks add access planning, and fixed-scope quotes are built from an inventory of exactly these factors. Ask any partner to price the inventory work, the pilot, the rollout waves and the handover separately so you can see where effort sits.
How long does an SSH certificate authority rollout take?
Duration depends on the same factors as cost: host count, operating system spread, identity integration, change control and how many hosts are in restricted networks. Most of the calendar time usually goes to change approvals, pilot feedback and staged rollout to production hosts, not to the OpenBao configuration itself. No duration is set here because none is supplied for this topic. Ask a partner for a timeline tied to a written scope, with named milestones such as pilot sign-off, each rollout wave and the removal of old static keys.
What does the work need from our own team?
You need people who can approve the CA trust model, decide certificate lifetimes and principals, and sign off change windows for production hosts. Your platform or systems engineers must provide an accurate host inventory, access to configuration management, and a way to test logins on representative machines. Your security team should own policy decisions about who may request which certificates and how revocation is handled. If an outside partner runs the build, expect your staff to review designs, join test sessions and own the system after handover.
Can our team deploy SSH certificates without an outside partner?
Yes, a capable internal team can build this, especially if it already runs OpenBao or Vault and manages hosts through configuration management. The risk lies in the details that are easy to miss: the SSH secrets engine settings, host certificate handling alongside user certificates, removing old static keys and testing every operating system you run. Weigh your team's time against the cost of a partner-built plan with written scope and handover documents. Whichever route you choose, the pilot and the removal of static keys should be planned before the first production host changes.
What costs are one-time and what costs recur?
One-time costs usually include the design, the initial OpenBao configuration of the SSH engine, the host inventory, the rollout to each group of hosts and the handover. Recurring costs include running and patching OpenBao, rotating and reviewing CA material, operating the signing workflow, handling access requests and keeping host configuration current as operating systems change. Ongoing support and upgrades can be taken as a retainer. Ask any quote to label each line as one-time or recurring so you can budget both.
What should a written quote for this work include?
A written quote should name the scope in plain terms: which hosts, operating systems and identity sources are covered, and which SSH access patterns are in or out. It should list deliverables such as the design, configuration, host rollout runbooks, test evidence, audit log settings and handover documentation. It should state the assumptions behind the price, including host count, change windows, access to your environment and who approves changes. Finally, it should say what is excluded, how changes to scope are priced, and whether ongoing support is a separate retainer.
Which compliance and audit needs change the effort?
Audit and change control requirements add effort because each change to the trusted CA, certificate policy or host configuration may need a record and an approver. Audit logging for signing and login events should be planned in advance, with the logs forwarded to the system your compliance team reviews. DeployOpen prepares systems, controls and evidence for compliance assessments, but it does not issue audit reports or certifications, which independent auditors and certification bodies handle. Confirm with your assessor which evidence they expect before the design is fixed.
What to confirm for your environment before you commit
Replacing static SSH keys changes how users, hosts and audit tooling interact, so several parts of the design depend on facts about your own estate. The cards below list the items to verify with the OpenBao documentation for your release and with the vendors of the SSH software you run.
SSH server and client certificate support
Confirm that every target SSH server and every client in scope accepts the certificate types and options you plan to use, including user certificates, host certificates and any extensions or critical options. Older OpenSSH builds and some vendor SSH implementations handle certificates differently or not at all. Check the documentation of each SSH software vendor before assuming a host can accept signed keys, and test one host of each distribution and version first.
OpenBao version and SSH engine behavior
Confirm that the SSH secrets engine in the OpenBao release you will run behaves as the documentation for that release describes, particularly signing endpoints, role parameters and default TTLs. Behavior can change between minor lines, so pin the version you tested and record it in your runbook. Read the release notes for the version you plan to deploy, not the latest one, and retest after every upgrade.
OpenBao docsStorage and HA effects on signing
Confirm how your chosen storage backend and high availability layout affect whether signing requests succeed during a node failure or leader change. Standby nodes forward or redirect requests to the active node, so a failed failover can stall every login that needs a fresh certificate. Ask how long a short-lived certificate remains usable if signing is unavailable, and document the fallback path for break-glass access.
HA docsIdentity claims to principal mapping
Confirm which identity provider claims your OpenBao auth method exposes and how they map to SSH principals in each role. A mapping that uses a mutable attribute, a shared group or an unreviewed claim can grant access to the wrong account. Test the mapping with real staff accounts, including leavers and contractors, and confirm that removing a person from the identity provider removes their ability to obtain a new certificate.
Audit and SIEM capture of signing events
Confirm that your audit devices record each certificate signing request, the principal requested, the TTL granted and the requesting identity, and that these events reach your SIEM in a form your analysts can query. Check whether your current pipeline drops or truncates fields, and whether a failed audit device blocks signing in your configuration. Verify the audit fields against the documentation for your OpenBao release before you build detection rules on them.
Host management outside your control
Identify which SSH hosts your team does not administer directly, such as appliances, vendor-managed systems, network devices and hosts owned by other business units. Each of these needs a trust path to your CA, and some will not accept a new trusted CA at all. Ask each owner which SSH software they run, who can change its trusted CA configuration and how changes are approved, before setting the rollout date.
How DeployOpen scopes and delivers an OpenBao SSH certificate authority
DeployOpen plans, implements, hardens, documents and supports self-hosted open-source platforms inside your own infrastructure, so the SSH certificate authority runs in your cloud accounts, data centers or air-gapped network. Engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work starts.
How we scope
- Inventory which hosts, bastions and user groups will trust the CA, and which keys they use today.
- Agree which certificate types, principals, validity windows and OTP use cases are in the written scope.
- Define who signs, who approves changes to the CA, and where the signing key material is held.
- Confirm the rollout order for hosts and the fallback path if a host cannot yet accept certificates.
How we build
- Deploy the OpenBao cluster and enable the SSH secrets engine with the signing role configuration agreed in scope.
- Configure the trusted user CA and host CA settings, then sign test certificates against non-production hosts.
- Test expiry, principal restrictions, revocation behavior and OTP login paths against your sshd configuration.
- Wire authentication for the people and machines requesting certificates to your existing identity sources.
How we hand over
- Deliver written runbooks for requesting, renewing and revoking certificates and for rotating the CA.
- Document the host configuration changes, including the trusted CA file and principals mapping, for each host group.
- Provide test evidence and access control records that your security and compliance teams can review.
- Walk your platform and security engineers through the operating procedures and the recovery steps.
How we support
- Ongoing support, OpenBao upgrades and continuous testing are available as retainers after handover.
- Plan upgrade windows around the OpenBao releases and confirm version compatibility before each change.
- Retest the SSH access paths after significant configuration changes, host image updates or CA rotations.
- Ask for the retainer scope in writing so support response and testing frequency are agreed before work starts.

