Production CLI Examples
These pages show production certificate requests using the DigiCert ACME Client with command-line flags only. Do not pass --use-default-config on these examples—the client will not read dc-acme.toml.
New to the Automated Certificate Management Environment (ACME)? Complete Get Started first: create an ACME Directory URL, install the client, and run a sandbox walkthrough before production. If a request fails, see Verify and Diagnose ACME Requests.
Every production enroll needs
Pass these on every dc-acme request enroll command, regardless of which example you follow:
| Flag | Purpose |
|---|---|
--directory-url |
GeoCerts ACME directory endpoint (same URL for sandbox and production) |
--email |
Contact email for the ACME account |
--eab-key / --eab-hmac |
External account binding (EAB) credentials from your production ACME Directory URL in CertCommand. The --eab-hmac value is a hash-based message authentication code (HMAC). |
--cn |
Common name for the certificate—a fully qualified domain name, not an IP address (not stored in dc-acme.toml) |
--auto-ari-renew=true |
Registers automatic certificate authority (CA)-directed reissues and renewals for this certificate (ACME Renewal Information (ARI))—the expected default for production automation |
Also set both challenge flags explicitly—for a DNS challenge (DNS-01), --challenge-type "dns-01" and --challenge-handler-name "default". Omitting --challenge-type defaults to an HTTP challenge (HTTP-01) with the standalone handler, which is a common first-request failure.
IP address certificates. GeoCerts ACME automation supports fully qualified domain names only—--cn and --sans must be domain names, not IP addresses. IP address certificates are not supported through ACME at this time. Issue and renew IP certificates through your existing CertCommand workflow. See Can I use ACME for IP address certificates?
Automatic reissues (--auto-ari-renew). ACME Renewal Information (ARI) is the recommended production model—DigiCert tells the client when to reissue, adapting as lifetimes shrink. On CLI-only enrolls, omitting --auto-ari-renew registers an ARI job; pass --auto-ari-renew=false for sandbox one-shot enrolls. Examples pass --auto-ari-renew=true for clarity (no --use-default-config).
dc-acme --defaults and --help report Auto ARI Renew: false — that does not match CLI-only enroll behavior. For config-based production enrolls, set Tom's Obvious, Minimal Language (TOML) auto_ari_renew = true and use --use-default-config; CLI --auto-ari-renew does not override TOML. Confirm acmeAriId in request list. Read What is ARI?
For config-based enroll—shorter commands, shared settings across servers, secrets off the CLI—see Configuration (dc-acme.toml). Set auto_ari_renew = true in TOML and enroll with --use-default-config; confirm non-zero acmeAriId in request list.
Examples by stack and domain control validation (DCV) method
Web server + validation method
| Example | Platform | DCV | Install |
|---|---|---|---|
| NGINX with DNS-01 | Linux | DNS-01 (Route 53) | NGINX |
| NGINX with HTTP-01 | Linux | HTTP-01 | NGINX |
| IIS with HTTP-01 | Windows | HTTP-01 | IIS |
More stack-specific examples (Apache, IIS with DNS-01, issue-without-install) will be added here over time.
Certificate shape
| Example | Use when |
|---|---|
| Wildcard certificates | You need *.example.com (DNS-01 required) |
| Subject Alternative Names (SANs) | You need additional hostnames on one certificate |
After a successful production request
- Confirm
COMPLETEDindc-acme request listand the order in CertCommand under Certificates > Orders. - Verify HTTPS is live on your web server.
- Optional: Adopt
dc-acme.tomlfor future requests on this or other servers—your first certificate already registered ARI when you passed--auto-ari-renew=true. - Read Understanding Automated Renewals for how the background service renews certificates.
If something fails, see Verify and Diagnose ACME Requests.
Related topics
- Get Started — ACME Directory URL, install, sandbox walkthroughs
- Configuration (
dc-acme.toml) — Config-based enroll alternative to all-CLI flags - Verify and Diagnose ACME Requests — EAB, DCV, and install failures
- Troubleshooting Common Issues — Funding, organization validation, and permissions
← Back to Certificate Automation (ACME)