How step-ca automates internal certificate renewal
step-ca renews internal certificates automatically when a client runs the ACME protocol against an ACME provisioner on your CA. Once the provisioner is added with step ca provisioner add acme --type ACME and the CA has been restarted to load it, each server or workload can request and renew its own certificate without a person in the loop. Public certificate lifetimes are on a fixed path: under the CA/Browser Forum TLS Baseline Requirements, the maximum validity of publicly trusted Subscriber Certificates falls to 200 days from 2026-03-15, 100 days from 2027-03-15 and 47 days from 2029-03-15. For internal systems, that schedule does not apply. Your internal CA sets its own lifetimes, so the lifetime you choose is a planning decision for your platform team, not a deadline you are forced to meet.
The people who act are the platform and PKI engineers who own the CA and the teams that run services depending on it. The CA server needs an HTTPS endpoint for the ACME certificate API, so the platform team should confirm how that endpoint is reached and trusted from every client network. Each service owner needs an ACME client that can answer the challenge types their certificates require: http-01 covers IP addresses and hostnames, dns-01 covers hostnames only, tls-alpn-01 covers IP addresses and hostnames, and device-attest-01 covers device IDs only. Confirm which challenge fits each environment before you rely on it. Also check the provisioner's defaultTLSCertDuration and maxTLSCertDuration values, because the Smallstep provisioner documentation shows example values of 2h and 8h, which it says are not defaults. Set your own values deliberately and record them.
Renewal behind a reverse proxy needs attention, because the Smallstep production guide says the default certificates expire after 24 hours and that renewal behind a proxy requires --mtls=false, which switches to token-based renewal. Test this path in a staging environment before you move production workloads onto it. Confirm the step-ca release you deploy against the latest published release listed in the project's GitHub releases and verify its signatures and checksums as the project documents them. Check with your vendor or the Smallstep documentation how your chosen configuration behaves under renewal failures, since the sources on this page do not describe that case.
What the lifetime schedule changes for internal step-ca certificates
This table sets the CA/Browser Forum's public maximum lifetimes and validation reuse limits for each date against what each step means for renewals per year and what stops working by hand on a step-ca deployment. Read it as a planning guide: the public rules govern publicly trusted certificates, while step-ca issues internal certificates whose lifetimes you set yourself, so the table shows the pressure the public schedule puts on your renewal process.
| Effective date | Max subscriber certificate validity | Domain and IP validation reuse | What changes for a manual process |
|---|---|---|---|
| Until 2026-03-14 | Not stated in this table | Not stated in this table | Certificates are renewed on a long cycle, so manual renewal can still be workable for a small number of certificates. |
| 2026-03-15 | 200 days | 200 days | Renewal frequency rises, and teams that track expiry by calendar reminder start to need a renewal tracker. |
| 2027-03-15 | 100 days | 100 days | Roughly twice as many renewals per certificate as the 200-day step, so manual renewal starts to fail without automation. |
| 2029-03-15 | 47 days | 10 days | Validation must be repeated often, and manual renewal of publicly trusted certificates is no longer practical at scale. |
| step-ca default leaf lifetime | 24 hours by default (production guide) | Not applicable to internal issuance | Short-lived internal certificates renew many times a day, so renewal must run as a background service, not a human task. |
| Provisioner example values | maxTLSCertDuration 8h and defaultTLSCertDuration 2h in the example only | Not applicable | These example values are not defaults. Set the lifetimes your own provisioner needs and confirm them in the provisioner documentation. |
| Renewals per certificate per year at 200 days | Roughly 2 renewals per year (illustrative) | Not applicable | Illustrative arithmetic only. Confirm your own renewal count from your certificate inventory. |
| Renewals per certificate per year at 47 days | Roughly 8 renewals per year (illustrative) | Not applicable | Illustrative arithmetic only. The count rises steeply, so plan the renewal process before the 2029 step. |
How step-ca issues and renews certificates
step-ca runs as a server that holds the CA keys and answers certificate requests, while the step CLI is the client-side tool used to initialize the CA, add provisioners and request certificates. Both must be installed before you start. Running step ca init creates the CA and writes its configuration to $(step path)/config/ca.json, and you start the server by passing that file to step-ca, for example step-ca $(step path)/config/ca.json. The optional --acme flag on step ca init sets up an ACME provisioner at the start, and the same flag can be added later with step ca provisioner add acme --type ACME. Treat ca.json as the central record of provisioners, key locations and certificate defaults, and keep it under version control and access control like any other security-critical configuration.
The ACME provisioner lets ACME clients request and renew certificates automatically, and it supports four challenge types. The http-01 challenge covers IP addresses and hostnames, dns-01 covers hostnames only, tls-alpn-01 covers IP addresses and hostnames, and device-attest-01 covers device identifiers only. Choose challenges based on where each workload can prove control: web-facing hosts usually suit http-01, while internal services without inbound HTTP often need dns-01 through DNS record changes. The ACME certificate API requires an HTTPS connection, so plan the TLS setup for the step-ca endpoint before any client talks to it. Also check the certificate lifetime defaults in your provisioner, because the step-ca production guide describes 24-hour default certificate expiry, while the provisioner documentation's example values are illustrative and not documented defaults.
Provisioner changes can require a restart of step-ca before they take effect, so schedule that step in any change window and confirm the new provisioner appears before clients depend on it. Renewal is a separate concern when step-ca sits behind a reverse proxy or load balancer, because the default mutual TLS renewal check may not reach the CA as expected. The production guide says renewal behind a proxy needs --mtls=false, which switches to token-based renewal. Test renewal end to end through the exact proxy path your clients use, and confirm the token-based flow meets your authentication requirements before you rely on it.
Which step-ca issuance methods fit which environment
The ACME provisioner suits clients that already speak the ACME protocol, such as standard ACME clients on servers, load balancers and containers. You add it to a running CA with step ca provisioner add acme --type ACME, and step-ca may need a restart before it loads the change. The ACME certificate API requires an HTTPS connection, so the CA endpoint must be reachable over TLS from every client that requests certificates.
- Challenge types:
http-01covers IP addresses and hostnames,dns-01covers hostnames only,tls-alpn-01covers IP addresses and hostnames, anddevice-attest-01covers device IDs only. - Disabled options:
device-attest-01,wire-oidc-01andwire-dpop-01are disabled by default, so enable them only where a use case needs them. - Lifetime settings: the provisioner documentation shows
maxTLSCertDurationanddefaultTLSCertDurationvalues as examples, not defaults, so confirm the values you set. - Reachability:
http-01andtls-alpn-01require the client's hostname to resolve to a host the challenge can reach, which may conflict with internal-only networks. - Restarts: plan for a step-ca restart after adding the provisioner.
Check the challenge types your clients support against the names your hostnames and IP addresses need, and confirm the HTTPS endpoint is reachable from each client before you rely on this method.
The step CLI suits operators or scripts that request a certificate on demand, rather than a client that renews on a schedule. It requests a certificate through a named provisioner with a command of the form step ca certificate --provisioner acme example.com example.crt example.key, which writes the certificate and private key to the files you name. The command depends on the step tool being installed and on the CA configuration written by step ca init.
- Installed tools: both
stepandstep-camust be installed before you initialize or request certificates. - Configuration path:
step ca initwrites the configuration to$(step path)/config/ca.json, andstep-ca $(step path)/config/ca.jsonruns the server against it. - Init flags: the documented flags include
--acme,--ssh,--password-file,--provisioner-password-file,--helmand--remote-management, so check which ones your deployment needs. - Same HTTPS rule: the ACME path used by the CLI still requires an HTTPS connection to the CA.
- Manual renewal: a CLI request is a one-off, so renewal scheduling is your responsibility unless you automate the command.
Confirm the step and step-ca versions on every host, and decide how renewal will be scheduled before you depend on manual requests for production certificates.
Token-based renewal fits workloads that reach the CA through a reverse proxy or load balancer that does not pass client certificates through. The production guide says certificates expire after 24 hours by default, and that renewal behind a proxy needs --mtls=false, which switches renewal from mutual TLS to token-based renewal. Because the proxy terminates the connection, the client authenticates with a token instead of its existing certificate.
- Default lifetime: certificates expire after 24 hours by default, so renewal must run more often than that.
- Flag to set:
--mtls=falseswitches renewal to token-based renewal, and the production guide describes this for proxy deployments. - Proxy behavior: confirm your proxy does not strip the headers or tokens the CA expects, and that it forwards the request to the CA without altering it.
- Token handling: tokens are a credential, so restrict where they are stored and how long they are valid.
- Trade-off: this method removes the mutual TLS check that the default renewal path relies on, so review the security impact with your security team.
Test a full renewal cycle through your proxy before relying on it, and confirm the token lifetime and storage with your own configuration, since the sources listed on this page do not give a token lifetime.
Setting up step-ca and an ACME provisioner in order
This sequence takes a host from no CA to a running step-ca instance with an ACME provisioner that issues short-lived internal certificates. Each step produces an output you can check before moving to the next one, so a failure is easy to locate.
Install step and step-ca
Install both the
stepcommand-line tool and thestep-caserver on the host that will act as the internal certificate authority. The Smallstep getting started page requires both binaries, so confirm each one is present before continuing. Check the installed versions with each tool's version flag and compare them against the latest release listed on the step-ca releases page. Before running a downloaded binary, verify its checksum against the checksums.txt file published with the release, and confirm the Sigstore signature bundle if your team uses one. The step is done when both commands run from the same shell session without errors. Check the exact install commands and any package names against the getting started page, since they can change between releases.Initialize the CA with the ACME flag
Run
step ca initwith the--acmeflag so the CA is created with an ACME provisioner enabled from the start. Pass--password-fileto supply the password that protects the CA's keys, which keeps the password out of your shell history. Store the password file in a location readable only by the service account that runs step-ca. The command writes the configuration to$(step path)/config/ca.json, so note that path for the next step. The step is done when the command reports the new root and intermediate certificates and the config file exists at that path. Confirm the full flag names and their syntax against the getting started page, because the optional flags for this command include others, such as--provisioner-password-file, that you may need.Start step-ca with the config path
Start the server by running
step-caand passing the config file location through$(step path)/config/ca.json. This is the same invocation the getting started page uses, and it binds step-ca to the configuration created in the previous step. Watch the startup output for the listening address and any errors about the password file or the config. Leave the process running in a separate terminal, or hand it to your service manager once the sequence is verified. The step is done when the server logs that it is listening and a request to its health endpoint from the same host returns a response. Keep in mind that the ACME certificate API requires an HTTPS connection, so the server's TLS settings must be in place before clients use it.Add the ACME provisioner
Add an ACME provisioner to the running CA with
step ca provisioner add acme --type ACME. If you already enabled ACME during initialization, check the existing provisioners before adding another one, so you do not create a duplicate with the same name. Review the provisioner's challenge settings, since the Smallstep ACME basics page lists http-01, dns-01, tls-alpn-01 and device-attest-01 and each supports a different set of identifiers. The step is done when the provisioner appears in the CA configuration andstep ca provisioner listor the config file shows it with the challenges you intended. Confirm the exact flags for challenge selection and the provisioner name against the Smallstep ACME basics page before you run the command.Restart step-ca if needed
The Smallstep ACME basics page notes that step-ca may need a restart to load a provisioner change, so check whether the running server picked up the new provisioner before assuming it did. Restart the process through your service manager if it has not reloaded, then repeat the health check from the start step. Restart only after confirming the config file is valid, because a malformed config will stop the server from coming back up. The step is done when the server is running with the ACME provisioner loaded and the health check still passes. Record the restart in your change log so that later troubleshooting can account for it.
Request a first certificate with ACME
Request a test certificate with
step ca certificate --provisioner acmeand supply a name, a certificate output path and a key output path, following the form shown on the Smallstep ACME basics page. Use a hostname you control on your internal network, and note that the ACME challenge you use must be reachable from the host making the request. The command writes the certificate and private key to the paths you gave. The step is done when the certificate file exists and inspecting it shows the name you requested and the validity period the CA issued. Confirm the argument order and any additional flags against the getting started page, and check the certificate lifetime against the provisioner's configured defaults, since the sources treat the example values as examples and not documented defaults.
What a step-ca deployment needs in place first
A step-ca server is only as dependable as the pieces around it. The cards below cover the software you install, the keys you protect, the network paths certificates depend on, and the database that decides whether the CA can run in more than one place. Work through them before you issue anything that production systems will trust.
Install step and step-ca
You need two tools: step, the client used to initialize the CA and request certificates, and step-ca, the server that signs them. The latest step-ca release the GitHub API returned on 2026-12-04 was v0.30.2, published 2026-03-23. Each release ships with Sigstore signature bundles and a checksums.txt file, so verify the download against those before installing it on a server that will hold your signing keys. Confirm the versions of both tools match what your team tests against, and record them in your change log.
Keep the root key offline
The root key is the trust anchor for everything the CA issues, so Smallstep's production guidance is to store it offline. Generate it on a machine that is not connected to the network, back it up to protected media, and keep it away from the online server that handles daily issuance. The online server holds only the intermediate. Plan who can access the offline material and how a root rotation would be handled, since the production guide places root rotation outside its scope.
Smallstep production guideChoose an HSM or KMS for intermediate keys
Intermediate keys sign leaf certificates every day, so they belong in a protected store rather than a plain file. The configuration reference lists kms types azurekms, awskms, cloudkms, pkcs11 and yubikey, and the production guide says intermediate keys can be generated in an online cloud HSM or KMS. Pick the option that matches your existing hardware and cloud accounts, then confirm with your HSM or KMS documentation how key access is granted and audited. Check that your team can recover signing if that store becomes unavailable.
Plan network reachability for ACME
Clients reach the CA over HTTPS, and ACME challenges require the server being validated to be reachable from the CA. The ACME basics page lists http-01 for IP addresses and hostnames, dns-01 for hostnames only, tls-alpn-01 for IP addresses and hostnames, and device-attest-01 for device IDs only. Each challenge needs a different path: port 80 for http-01, DNS record control for dns-01, and port 443 for tls-alpn-01. Map which systems use which challenge, and open only the paths those challenges need. Note that the ACME certificate API requires an HTTPS connection, and check whether a proxy sits between clients and the CA, since the production guide describes a token-based renewal option for that case.
Select a database for high availability
The default Badger database does not support concurrency for high availability. If you plan to run more than one step-ca instance behind a load balancer, choose MySQL or PostgreSQL instead. Decide this before the first deployment, because moving a live CA between databases is more work than starting with the right one. Confirm the database version against what the configuration reference documents, and plan backups and failover for the database alongside the CA itself.
Configuration referenceHow to rotate the step-ca intermediate key without breaking clients
Rotating the step-ca intermediate key is the operation most platform teams will face before they ever need to touch the root. The Smallstep production guide describes the procedure in three steps: back up the existing intermediate key and certificate, sign a new intermediate with the root, and send step-ca a HUP signal so the running server reloads its configuration. The guide keeps the root key offline, so the signing step is performed where the root lives, not on the online CA host. Teams should confirm the exact commands and file paths in the current guide and in the documentation for their step-ca version (the latest release the sources list is v0.30.2, published 2026-03-23), and should rehearse the sequence in a test CA before running it against production.
Existing leaf certificates keep working through the rotation. The production guide says renewed certificates carry a fresh bundle that includes the new intermediate, so clients receive the new chain as certificates renew. The risk sits in the trust material. Any PEM bundle that holds both the old and new intermediate has to be distributed in a staged order, so that every client that validates chains can read the new intermediate before any server begins presenting it. Platform teams should inventory where bundles are copied, including containers, load balancers and device trust stores, and decide the order in which they update them.
Root rotation is out of scope for that guide, so a plan that changes the root needs a separate procedure and its own trust distribution work. Teams should note the root and intermediate key storage decisions made at setup, since the guide recommends an offline root and allows the intermediate to live in an online cloud HSM or KMS. Confirm which kms type the deployment uses against the configuration reference, and confirm the database backend supports the high availability setup in use, because the default Badger database does not support concurrency for high availability.
Questions teams ask about step-ca automated certificates
Does step-ca support ACME for automated certificate issuance?
Yes. step-ca can act as an ACME server, and you add an ACME provisioner with step ca provisioner add acme --type ACME. The Smallstep documentation says step-ca may need a restart to load the change. Clients then request a certificate with step ca certificate --provisioner acme example.com example.crt example.key. The ACME certificate API requires an HTTPS connection, so plan the CA's TLS endpoint before enabling automated enrollment. Confirm the flags and behavior against the version you run, because the provisioner options are set in the CA configuration.
Which ACME challenge types work for IP addresses and hostnames?
It depends on the identifier. The Smallstep ACME basics page lists four challenges. http-01 and tls-alpn-01 work for both IP addresses and hostnames. dns-01 works for hostnames only. device-attest-01 works for device IDs only. If your certificates cover internal IP addresses, http-01 or tls-alpn-01 are the options to test first, since dns-01 cannot validate them. Check that the client you use supports the challenge you choose.
How often do step-ca certificates renew by default?
The Smallstep production guide says certificates expire after 24 hours by default, so renewal must happen well before that window closes. The Smallstep provisioner documentation shows an example ACME provisioner with a maxTLSCertDuration of 8h and a defaultTLSCertDuration of 2h, but it describes those as example values, not documented defaults. Set the lifetime in your provisioner configuration to match the policy you want, and confirm the current defaults in the documentation for your release.
What happens when a certificate renewal fails?
The sources listed on this page do not describe a retry or fallback behavior for failed renewals. What they do say is that certificates expire after a fixed period, so a failed renewal leaves the old certificate to run out. Behind a proxy, the production guide notes that renewal needs --mtls=false to switch to token-based renewal, which is a configuration choice you should test before relying on it. Monitor expiry dates, alert on failed renewals and test the renewal path end to end. Confirm the exact retry behavior in the step and step-ca documentation for your version.
Can an intermediate certificate be rotated without reissuing leaf certificates?
Yes, according to the Smallstep production guide. Intermediate rotation means backing up the existing intermediate, signing a new intermediate with the root, and sending step-ca a HUP signal to reload it. The guide says existing leaf certificates are not affected, because renewed certificates carry a fresh bundle that includes the new intermediate. Clients that hold a PEM bundle with both certificates need a staged migration so trust does not break during the change. Root rotation is out of scope for that document, so plan it separately.
When should a team get outside help with a step-ca deployment?
Get outside help when the work crosses into areas where mistakes are costly. The production guide says the root key should be stored offline, and intermediate keys can live in an online cloud HSM or KMS, so key custody is a design decision to review. The configuration reference says the default Badger database does not support high availability, and lists MySQL and PostgreSQL for load-balanced deployments. Hardware-backed key storage through options such as pkcs11, yubikey or a cloud KMS also needs careful setup. DeployOpen plans, implements, hardens and documents self-hosted platforms inside your infrastructure, and most engagements are fixed-scope with the scope agreed in writing before work starts.
How does high availability affect the step-ca database choice?
The default Badger database lacks concurrency support for high availability, according to the Smallstep configuration reference. For load-balanced deployments, the reference lists MySQL and PostgreSQL as the supported options. If you plan more than one step-ca instance, choose the database before you deploy, because changing it later adds migration work. Confirm the supported configuration for your version in the vendor documentation.
Where can I confirm which step-ca release to deploy?
The GitHub API returned v0.30.2 as the latest smallstep/certificates release when the facts were gathered on 2026-12-04, published 2026-03-23. The release ships Sigstore signature bundles and a checksums.txt file, which you can use to verify the download before installation. Check the releases page again before you deploy, because the latest version may have changed, and confirm that your step and step-ca versions are compatible.
How a step-ca ACME renewal flows from client to deployed certificate
The renewal starts at an ACME client on the service host, which sends an order to the ACME provisioner in step-ca over HTTPS. step-ca validates the challenge (http-01, dns-01 or tls-alpn-01, depending on the identifier type), then issues the certificate from the intermediate CA. The client installs the new certificate on the service and reloads it. Check that the challenge type matches your identifiers, that the provisioner is loaded after any change, and that the deployed certificate chain includes the current intermediate, since the default lifetime in the example provisioner is short and renewal must succeed repeatedly.
The ACME renewal path from client order to a reloaded service.
How DeployOpen helps teams automate internal certificates with step-ca
DeployOpen plans and builds a step-ca server inside your own infrastructure, from initialization and ACME provisioner setup through key handling and rotation planning. Each engagement is fixed-scope, with the configuration, tests and runbooks agreed in writing before work starts, so your platform team can run and rotate the CA after handover.
How we scope
- We inventory which internal services need certificates and which ACME challenge types each one can use.
- We confirm the target lifetimes for leaf certificates and the intermediate and root key storage approach you require.
- The written scope names the database, KMS or HSM options, high availability needs and the systems to be migrated.
How we build
- We initialize step-ca with the ACME provisioner, set certificate durations explicitly and test each challenge type you use.
- We configure the database backend, choosing MySQL or PostgreSQL when a load-balanced deployment needs it, rather than the default Badger store.
- We test renewal behind your proxy, including whether
--mtls=falsetoken-based renewal is the correct setting for your topology.
How we hand over
- You receive the configuration, provisioner settings, runbooks and a documented intermediate rotation procedure your team can follow.
- We walk your engineers through the rotation steps, including backing up the intermediate, signing a new one and sending the HUP signal.
- We document the staged PEM bundle migration so existing leaf certificates keep working while trust is updated across clients.
How we support
- Ongoing support, upgrades and continuous testing are available as a retainer, including reviewing new step-ca releases before you adopt them.
- Retainers can cover periodic rotation rehearsals and checks that renewal keeps working as certificate lifetimes shorten.
- Ask any provider to confirm in writing which step-ca version they will deploy and how they will verify its release signatures.

