Can an internal CA renew certificates automatically with ACME?
Yes. An ACME client can renew certificates from an internal CA by pointing at the CA's ACME directory URL and trusting the CA's root certificate. The step-ca documentation gives the directory form for example and its ACME tutorial uses Certbot against that endpoint. Because an internal CA can issue certificates with much shorter lifetimes than a public CA's default, renewal has to run far more often. The step-ca ACME tutorial says its certificates have 24-hour lifetimes and suggests a renew_before_expiry of 8 hours with a cron job running certbot -q renew every 15 minutes. Confirm the lifetime your own provisioner issues before copying those values.
Three groups must act. The PKI owner decides the provisioner settings, including which challenge types are allowed through the challenges field and whether attestation is required through attestationFormats. The platform team adds the ACME provisioner with step ca provisioner add acme --type ACME, restarts the CA as the step-ca tutorial directs, and schedules the renewal jobs on each host. The clients that trust the root must receive it. Certbot reads the REQUESTS_CA_BUNDLE environment variable to find trusted roots, and the Certbot user guide warns that it must be set globally, not only on the command line, or scheduled renewals will fail. On hosts that need the root in the operating system trust store, step certificate install does this globally, so the team should confirm that effect before running it on shared machines. Check that every renewal host can reach the directory URL and trusts the root before you rely on automation.
What the lifetime schedule changes for internal ACME renewal
This table sets the public Baseline Requirements lifetime schedule beside the step-ca tutorial's internal settings, so you can see which limits apply to which certificates. Read each row as a question about your own CA: what lifetime it issues, how often clients must renew, and whether a person can keep up. The main takeaway is that public limits do not bind an internal CA, but a short internal lifetime makes unattended ACME renewal mandatory.
| Item | Public schedule (publicly trusted TLS) | Internal step-ca example |
|---|---|---|
| Maximum certificate lifetime | 100 days from 15 March 2027, then 47 days from 15 March 2029 (Let's Encrypt profiles page) | Set by your own CA configuration; the tutorial example uses 24-hour certificates |
| Authorization reuse period | 10 days from 15 March 2029, per the Let's Encrypt profiles page | Set by your own CA policy; confirm the value in the step-ca provisioner documentation |
| Who sets the limit | The CA/Browser Forum TLS Baseline Requirements, version 2.3.2 (checked 4 December 2026) | Your organization, through the CA's provisioner and policy settings |
| Recommended renewal cadence | Clients must renew well before expiry as lifetimes shrink; confirm the exact interval with your CA | Renew every 15 minutes with renew_before_expiry set to 8 hours, per the step-ca tutorial |
| Can a person renew by hand? | Not at 47-day lifetimes across many hosts; automation is needed | No. A 24-hour lifetime cannot be renewed manually at a sustainable pace |
| Applies to internal names? | No. Publicly trusted certificates only; internal CAs are outside this schedule | Yes, internal names such as foo.internal and ca.internal are issued by your own CA |
| What to confirm before rollout | Whether your certificates are publicly trusted, and which profile your public CA offers | Your renewal interval, the client's renewal trigger and the CA's configured lifetime |
How ACME issuance from an internal CA works in practice
An ACME client issuing from an internal CA follows the same protocol steps as it would against a public CA. The client first holds an account key pair, which RFC 8555 says it uses to authenticate to the server. It then fetches the server's directory, a resource listing endpoints such as newNonce, newAccount, newOrder and revokeCert. Next it places an order for the names it wants, completes a challenge to prove control of each name, and once the order reaches the valid status it downloads the issued certificate. Every request that carries a signed payload must use the Content-Type application/jose+json, and the order moves through the statuses pending, ready, processing, valid and invalid. For a team running its own PKI, the practical change is where the directory lives and who must trust it, not the sequence of messages itself.
On the step-ca side, the CA exposes ACME through a provisioner you add with step ca provisioner add acme --type ACME, followed by a CA restart as the tutorial describes. The directory then appears at for example The provisioner's challenges field controls which challenge types clients may use, so confirm it lists the challenges your clients can actually satisfy from their network position. Because the directory is served over TLS by your own CA, the client must trust the CA root before the connection succeeds. Confirm that trust is in place on every client, not only the machine where you tested, before you point any automation at the endpoint.
Plan the client's trust setup and renewal cadence together, since they interact. The step-ca tutorial warns that certificates from this CA carry 24-hour lifetimes, so renewal must run far more often than a 90-day default; its example pairs renew_before_expiry = 8 hours with a cron job running certbot -q renew every 15 minutes. For Certbot, the user guide says to override trusted roots with the REQUESTS_CA_BUNDLE environment variable and to set it globally, because a variable set only on the command line will cause scheduled renewal to fail. The step-ca tutorial names step certificate install as a way to add the root to the system trust store, but warns that this is a global operation. Ask your security team which trust mechanism they accept before choosing one, and test a scheduled renewal end to end rather than assuming the manual run reflects what cron will do.
Which ACME client options work with step-ca
Certbot can issue from a private step-ca instance by pointing it at the CA's ACME directory and telling it which root to trust. The step-ca ACME tutorial does this with the REQUESTS_CA_BUNDLE environment variable, set to the root certificate that step path reports, and a certbot certonly call against the directory URL in the form The Certbot user guide describes REQUESTS_CA_BUNDLE` as the way to override the root certificates Certbot trusts, so the variable is the documented mechanism for this case.
- Environment scope: The Certbot user guide says the variable must be set globally in the environment, not only on the command line. Scheduled renewal runs outside your interactive shell, so a variable that exists only in a one-off command will leave renewals failing.
- Example call: The tutorial's invocation uses
certonlywith--standalonefor the namefoo.internalagainst `--server Treat it as a pattern and substitute your own provisioner name and hostnames. - Renewal cadence: The tutorial states that step-ca issues certificates with 24-hour lifetimes, so renewal must run more often than the default for public CAs. It suggests
renew_before_expiry = 8 hoursand a cron job runningcertbot -q renewevery 15 minutes. - Provisioner setup: The ACME provisioner must exist on the CA before Certbot can use it. The provisioner documentation gives
step ca provisioner add acme --type ACME, and the tutorial says to restart the CA afterwards. - Internal names: The tutorial uses names such as
foo.internal. Confirm that your internal naming and the challenge type your environment permits match what Certbot will present.
Before you rely on this path, check that the root file in your step path directory is the one your CA actually uses, and confirm that renewal runs under the same environment as your first issuance.
The second documented path is a Docker setup in which the container bootstraps trust with the CA before it requests a certificate. The tutorial runs step ca bootstrap --ca-url "${CA_URL}" --fingerprint "${CA_FINGERPRINT}" --install --force, then runs update-ca-certificates so the system trust store inside the image picks up the root. The bootstrap step fetches the root and checks it against a fingerprint you supply, so the container does not trust whatever the network presents.
- Global install: The tutorial names
step certificate installas the way to add a root to the system trust store and warns that it is a global operation. Installing into the image's store affects every process in that container, not only the ACME client. - Fingerprint input: The
CA_FINGERPRINTvalue must come from your CA, obtained through a channel you control. Supplying a fingerprint from an untrusted source defeats the check. - Forced overwrite: The
--forceflag in the documented command overwrites existing files. Review what it replaces before running the step in an image that already contains trust configuration. - Image rebuilds: Trust installed at build time persists in the image. Rebuild the image when the root changes, or the container keeps trusting the old root.
- Renewal timing: The same 24-hour lifetime applies, so the renewal schedule must run inside the container or from a host process that can reach it.
Before deploying, confirm the fingerprint and CA URL with your PKI owner, and test that an issuance from inside the container succeeds with the trust store as built.
The tutorial documents two clients, and it does not cover other ACME clients against step-ca. Any client not named in the sources should be evaluated against the protocol specification and the CA's own documentation before use. The table of limits below collects what the sources say about trust handling, since that is where both documented options differ from public-CA deployments.
- Scope of coverage: The sources cover Certbot and a Docker bootstrap. They do not describe other clients, so do not assume a client works because it speaks ACME.
- Trust is per environment: Certbot's trust comes from
REQUESTS_CA_BUNDLE, while the Docker path changes the system store. These are different scopes, and a fix in one does not carry over to the other. - Attestation roots: The provisioner documentation says the
attestationFormatsfield acceptsapple,stepandtpm, and warns that trusting Apple or Yubico attestation roots may let the provisioner issue to any Apple or Yubico device. Restrict these to your own devices. - Challenge types: The
challengesfield controls which challenge types the provisioner allows. Check that the client's challenge method is enabled on the provisioner. - Lifetime mismatch: Clients built around public CA defaults may renew too late for 24-hour certificates. Set renewal windows deliberately.
Check each option against your own provisioner settings and your renewal monitoring before moving it to production.
Set up ACME renewal against an internal CA, step by step
This sequence connects an ACME client to an internal step-ca instance so certificates for internal names are issued and renewed automatically. Each step adds a piece of trust or configuration, and the final checks confirm that renewal runs on a schedule that suits the CA's short certificate lifetimes.
Add the ACME provisioner to the CA
Run
step ca provisioner add acme --type ACMEon the host that runs the internal certificate authority, which adds an ACME provisioner named acme to the CA configuration. Restart the CA afterwards, as the step-ca ACME tutorial directs, so the new provisioner is loaded. You know the step is complete when the CA restarts cleanly and the provisioner appears in its configuration. Confirm the name you chose, because it becomes part of the directory URL the clients use in later steps.Restrict challenges and attestation formats
Before any client connects, open the provisioner's configuration and review the
challengesfield, which controls which challenge types the provisioner accepts. Also review theattestationFormatsfield, which accepts apple, step and tpm. The step-ca provisioner documentation warns that trusting Apple or Yubico attestation roots may let the provisioner issue certificates to any Apple or Yubico device, so limit this field to your own devices. You are finished when the allowed challenge types and attestation formats match your platform's plan and have been written down for the review.Distribute the CA root to clients
Each client has to trust the internal root before it can talk to the CA. The step-ca ACME tutorial describes two routes:
step certificate installadds the root to the system trust store, and this operation is global on the host, so use it deliberately. For container setups, the tutorial showsstep ca bootstrap --ca-url "${CA_URL}" --fingerprint "${CA_FINGERPRINT}" --install --force, followed byupdate-ca-certificates. The step is complete when the client reaches the CA over HTTPS without a trust error. Confirm the exact commands for your operating system in the step documentation.Point the client at the directory URL
The ACME directory URL follows the form
The tutorial's example for a provisioner named acme on ca.internal isRun Certbot with the exact command from the tutorial, which setsREQUESTS_CA_BUNDLEto the root certificate and passes--serverwith the directory URL: `sudo REQUESTS_CA_BUNDLE=$(step path)/certs/root_ca.crt certbot certonly -n --standalone -d foo.internal --server You know the step worked when Certbot reports that a certificate was issued and saved for the test name. Replace the example hostnames with your own.Make the trust variable persist for scheduled renewal
The Certbot user guide says
REQUESTS_CA_BUNDLEmust be set globally in the environment, not only on the command line, because otherwise scheduled renewal will not succeed. Add the variable to the environment that the scheduler uses, and confirm that a process started outside your shell can see it. The step is complete when a renewal run started by the scheduler, not by hand, can reach the CA and validate the root.Set renew_before_expiry for short lifetimes
The step-ca ACME tutorial says step-ca issues certificates with 24-hour lifetimes, so renewal must happen more often than with Let's Encrypt's default. The tutorial suggests setting
renew_before_expiry = 8 hoursin the Certbot renewal configuration for the certificate. Edit the renewal configuration file for each certificate and confirm the value is present. You are finished when Certbot's dry-run renewal reports that it would renew the certificate at the new threshold.Schedule the renewal job every 15 minutes
The tutorial suggests a cron job that runs
certbot -q renewevery 15 minutes. Add the entry to the crontab of the account that holds the certificates, or to the equivalent scheduler on your platform, and make sure it runs with the trust variable from the earlier step. Check the job's log or output after the first scheduled run. The step is complete when the scheduled run finishes without errors and the log shows that it checked the certificate.Confirm renewal before go-live
Before relying on the setup in production, force a renewal or wait for a scheduled one and confirm the new certificate is in place and the service picked it up. Check that the names used are internal names such as foo.internal, and that the challenge types and attestation formats match the restrictions you recorded earlier. You are finished when the renewed certificate is served by the service, the scheduled job has run without errors, and the restrictions are documented for your reviewers. Confirm the reload command your web server or service needs in its own documentation.
What must be in place before ACME renewal runs
Renewal under ACME depends on the CA being reachable, its root being trusted by every client, names that resolve for the validation method, and a global environment that scheduled jobs can read. Check each of these before the first unattended renewal, because a gap in any one of them stops renewal without an obvious error at the time it fails.
A reachable CA hostname
Clients need a stable name for the CA, such as ca.internal, that resolves and accepts connections from every host that requests certificates. The ACME directory URL is built from this host and the provisioner name, in the form so a change to the hostname changes every client's configuration. Confirm that the name resolves from each renewal host and that the port the CA listens on is open on the path between them.
step-ca provisionersRoot certificate on every client
Each client must trust the CA's root certificate, or it will reject the CA's certificates and fail the connection to the directory. With step-ca, step certificate install adds the root to the system trust store, but the tutorial warns that this is a global operation that affects every application on the host. For clients that read their own bundle, the root is supplied through REQUESTS_CA_BUNDLE instead. Decide which method each host uses and check it before renewal depends on it.
Names that resolve for validation
The name being certified, such as foo.internal, must resolve to the host that answers the validation challenge. For HTTP-01 that means the host serves the token on port 80, and for a standalone client such as Certbot the port must be free at the time of renewal. If the name resolves to a different address from the one the CA reaches, validation fails even when the certificate request itself is correct. Check the resolution path from the CA's side, not only from the client.
Permission to restart the CA
Adding an ACME provisioner with step ca provisioner add acme --type ACME is followed by a restart of the CA, as the step-ca tutorial directs, so the new provisioner becomes active. The team that owns renewal needs authority to restart that service on a schedule that fits its change process. Confirm who can perform the restart and how it is recorded before the provisioner is added, because a provisioner that is not active will not issue anything.
REQUESTS_CA_BUNDLE set globally
The Certbot user guide says to set REQUESTS_CA_BUNDLE in the global environment, not only on the command line, because scheduled renewal will not succeed otherwise. A command that works when run by hand can still fail under cron, where the variable is absent. Set it for the account or service that runs the renewal job, and confirm it with a scheduled run rather than an interactive one. The variable should point to the CA's root certificate.
How to confirm internal certificates keep renewing
The first check is whether renewals actually happen, and the simplest way to see it is to watch certificate expiry on each host that uses an internal ACME certificate. The step-ca ACME tutorial says step-ca issues certificates with 24-hour lifetimes, so a certificate can move from valid to expiring within a single day. A host that renews every 15 minutes will look healthy most of the time, but a stalled cron job or a broken root trust setting can leave a certificate to expire without any warning. Record the expiry date of the certificate each service presents, and treat any host where that date is closer than the renewal window as a failure to investigate, not a normal state.
Review the client's renewal logs after each scheduled run, because a cron job can exit quietly while the certificate is never replaced. The step-ca tutorial pairs renew_before_expiry = 8 hours with a cron job running certbot -q renew every 15 minutes, so a healthy run leaves the certificate unchanged until the eight-hour window opens and then replaces it. Look for the renewal attempt, its outcome and any trust error. The Certbot user guide says that REQUESTS_CA_BUNDLE must be set globally in the environment, not only on the command line, or scheduled renewal will not succeed, so a log that shows a verification error on a cron run usually points to that setting. Confirm the variable is present in the environment the cron job actually uses, since an interactive shell can hide the problem.
Alert before expiry rather than after it, because at a 24-hour lifetime a single missed renewal leaves very little time to recover. The sources give no monitoring tool, so the reader chooses one that can read the expiry date from each host, raise an alert when it falls inside the renewal window, and send it to someone who can act. Keep a record of each issuance and of where the root certificate was distributed, including the step certificate install or bootstrap steps on each host, so an internal reviewer or auditor can see what was issued, when and to which trust stores. Confirm with your own team which records and retention period your policies require.
How an internal ACME renewal flows from client to CA to host
The renewal starts with a scheduled job that runs certbot -q renew on the host. Certbot reaches the step-ca directory URL, with the internal root supplied through REQUESTS_CA_BUNDLE, and completes the challenge before the CA issues a certificate with a 24-hour lifetime. Certbot then writes the new certificate to the host, and the service is reloaded to pick it up. Check that the root bundle is set globally, not only on the command line, because scheduled renewal fails without it, and that the renewal interval is shorter than the 24-hour lifetime.
Scheduled ACME renewal from the cron job through the internal CA to the reloaded service.
Questions about ACME with a private certificate authority
Can an internal certificate authority issue certificates over ACME?
Yes. step-ca, the CA used in the sources, can run an ACME server by adding an ACME provisioner with the command step ca provisioner add acme --type ACME, then restarting the CA. The provisioner exposes a directory URL in the form and clients use that URL as their server. The challenges` field controls which challenge types the provisioner accepts. Other internal CA products may differ, so check your CA's documentation for its ACME support, provisioner settings and restart steps before you rely on this setup.
How do I point Certbot at an internal ACME server?
Set the server to your CA's directory URL and tell Certbot to trust your internal root. The step-ca ACME tutorial uses this form: REQUESTS_CA_BUNDLE=$(step path)/certs/root_ca.crt certbot certonly -n --standalone -d foo.internal --server The --standalone` flag uses the HTTP-01 challenge, so the name must resolve to the host and port 80 must be reachable from the CA. Adjust the hostnames, provisioner name and challenge method to match your environment. Confirm each option against the Certbot user guide for your installed version.
Why does Certbot renewal fail in cron but work when I run it by hand?
The most likely cause is that the REQUESTS_CA_BUNDLE variable is set only in your interactive shell. The Certbot user guide says to set it globally in the environment, not only on the command line, because scheduled renewal will not succeed otherwise. Cron runs with a minimal environment, so the variable is missing and Certbot does not trust the internal root. Set the variable in a file the cron job reads, or in the crontab itself, then test with the same user and environment that cron uses. The sources do not describe other causes, so check the cron log and Certbot's output if the problem persists.
Do internal hostnames like foo.internal work with ACME?
The step-ca ACME tutorial uses internal hostnames such as foo.internal and ca.internal in its examples, so the pattern is supported by that CA's documentation. The client still has to prove control of the name. With HTTP-01, the name must resolve to the host running Certbot and be reachable from the CA. Make sure the internal DNS records point to the right host and that the CA is configured to accept the challenge type you choose. Verify the behavior in your own environment before you depend on it for production names.
How often do certificates from an internal ACME CA renew?
The step-ca ACME tutorial says step-ca issues certificates with 24-hour lifetimes, so renewal has to run more often than with Let's Encrypt's default. The tutorial suggests setting renew_before_expiry = 8 hours and running certbot -q renew from cron every 15 minutes. Renewal frequency depends on the lifetime your CA issues, so confirm the lifetime for each provisioner before you set the schedule. Shorter lifetimes raise the number of renewals and the load on the CA and on any system that must reload the certificate.
Does an internal ACME setup require an outside provider?
Not necessarily. The step-ca documentation describes running an ACME server inside your own infrastructure, with the CA and its root under your control. Consider outside help if you need an assessment of how your internal PKI is configured, a migration of the CA or its root, or integration with many platforms. DeployOpen plans, implements and documents self-hosted platforms inside a client's own infrastructure and can prepare a written, fixed scope for that work. It does not issue audit reports or certifications, so keep the independent auditor or certification body in the plan for any formal assessment.
Should I restrict which attestation formats my ACME provisioner accepts?
Yes, if the provisioner uses device attestation. The step-ca provisioner documentation says the attestationFormats field accepts apple, step and tpm. It also warns that trusting the Apple or Yubico attestation roots may let the provisioner issue certificates to any Apple or Yubico device, so it should be restricted to your own devices. Review each format you enable and limit the provisioner to the device fleet you actually manage. Check the step-ca documentation for your version before you change these settings.
How DeployOpen helps teams automate internal certificate renewal
DeployOpen approaches ACME with a private certificate authority by first mapping which internal names and platforms need certificates and how the CA's root reaches each client. We then build and test the ACME provisioner and client configuration in your environment and hand over runbooks your platform team can operate. Engagements are fixed-scope and agreed in writing before work starts.
How we scope
- Inventory the internal hostnames, clients and platforms that will request certificates from the private CA.
- Confirm which challenge types the provisioner will allow and which attestation formats, if any, will be trusted.
- Agree in writing how root certificate distribution, renewal cadence and monitoring will be covered before work starts.
How we build
- Add and configure the ACME provisioner on your CA, then restart it and verify the directory URL responds.
- Set up each ACME client with the CA root trusted through the appropriate bundle or system trust store configuration.
- Test a full issuance and renewal cycle on internal names, including short-lifetime renewal scheduling in a staging environment.
How we hand over
- Deliver runbooks covering provisioner setup, root distribution, client configuration and renewal scheduling for your team.
- Document the environment variables and trust store steps needed so scheduled renewals succeed without manual intervention.
- Walk your platform and security engineers through the configuration and the evidence of a successful renewal test.
How we support
- Ongoing support and upgrades can be arranged as a retainer after the initial handover is complete.
- Retesting after CA or client upgrades, or when new internal platforms are added, can be included in a retainer.
- Confirm current CA and client version compatibility against each vendor's documentation before any upgrade.

