Solution for developers and platform teams
Certificate lifecycle primitives your platform can call
ACME is a protocol. Your platform needs order state, idempotency, signed events and a PEM your deploy job can install. Those are primitives. They should not be reimplemented in every service.
What this page answers
If you wanted to speak ACME yourself you already would: RFC 8555, a directory URL, JWS, nonces, authorizations, finalize. That is the correct choice for a single host running certbot. It is a poor choice for a product with five languages, a CI pipeline, and a support team that needs to ask “which order failed?” without reading Let’s Encrypt logs.
sslcertificates.io exposes REST under https://sslcertificates.io/api/v1. Official clients in this repository call POST /certificates. Webhooks tell you when an async order finished. Idempotency keys stop retries from becoming duplicate orders. Request IDs sit on every response. Test keys (sk_test_) and Live keys (sk_live_) share the same API and cannot cross environments.
Why this is getting harder now
Shorter public lifetimes (200 days from 15 March 2026, 100 days from 15 March 2027, 47 days from 15 March 2029 — CA/B BR §6.3.2) mean your deploy pipeline is a certificate pipeline. Teams on r/devops and r/sysadmin already separate “renewal succeeded” from “the process still presents the old leaf.” If your only interface is a cron that shells certbot, you will learn that distinction in an incident.
Pains platform teams hit
ACME in every service.
Account keys, rate limits and retry policy get copied. One service’s aggressive retry burns the registered-domain limit for everyone.
Issuance is async. Your API is not.
HTTP-01 and DNS-01 take time. A blocking “return PEM” call hides challenges and fails in the worst way: timeouts that retry as new orders.
Retries without idempotency.
CI flakes. Gateways retry POST. Without idempotency_key you mint extras and trip Let’s Encrypt duplicate limits.
Key handling is a design decision.
Platform-generated keys are convenient and must be treated as secrets with audited download. CSR mode keeps the key on your side. Mixing them on one hostname without revocation creates two truths.
Webhooks that you cannot trust.
Unsigned callbacks are an injection path. You need HMAC, retries, and a test event.
Provider lock-in in application code.
Hard-coding a CA or DNS vendor SDK means the next procurement is a rewrite. Abstract issuance; keep deploy next to the target.
A mock that lies.
A mock that does not share field names trains bugs. Test mode issues through the same resources as Live, against official Let’s Encrypt Staging.
Consequences
Incidents that look like “TLS is down” and are actually “three orders, one deploy, none verified.” Engineers who refuse to touch certificates. A staging environment that cannot exercise the real path.
Why common approaches fail
Cert-manager only is excellent in Kubernetes and silent everywhere else. Raw ACME has no product inventory. CA reseller XML from 2014 has no idempotency story. Sleep-and-poll without backoff becomes a thundering herd. Logging PEMs becomes a breach report.
How the primitives map
| Need | Contract |
|---|---|
| Issue | POST /certificates — domains, validation, key_mode, csr_pem, idempotency_key |
| Observe | GET /certificate-orders/{id}, GET /certificates/{id} |
| Finish challenges | POST /certificate-orders/{id}/validate |
| Material | GET /certificates/{id}/download |
| Renew / revoke | POST .../renew, POST .../revoke |
| SaaS names | POST /custom-hostnames {hostname} |
| Events | POST /webhooks — HMAC-SHA256 |
| Correlate | X-Request-Id on every response |
Lifecycle state
Webhook types that actually fire: certificate.order.created, certificate.validation_required, certificate.issued, certificate.renewed, certificate.renewal_failed, certificate.revoked. There is no hidden “deployed” event — deploy is your job or a hosting connector.
Original asset: error and idempotency table
| Situation | What you see | What you do |
|---|---|---|
| Retry same POST, same key, same domains and validation | Existing order | Continue polling / wait for webhook |
| Same idempotency key, different domains or validation | 409 idempotency_conflict | New key or fix the body |
| Wildcard + HTTP-01 | Validation error | Use DNS-01 |
| Missing scope | 403 insufficient_scope | Issue a key with certificates:write |
| Already revoked | certificate_already_revoked | Stop retrying revoke |
| Not renewable | certificate_not_renewable | Check status |
| Plan / entitlement | 422 with entitlement errors | Upgrade or delete unused names |
| Renewal exception | certificate.renewal_failed + status renewal_failed | Fix DNS/CAA; do not loop validate from a browser |
Copyable examples from the official SDKs
These snippets are the methods in sdks/ — not rewritten call shapes.
curl
curl https://sslcertificates.io/api/v1/certificates \
-H "Authorization: Bearer $SSL_CERTIFICATES_API_KEY" \
-H "Content-Type: application/json" \
-d '{"domains":["example.com"],"validation":"dns-01"}'
PHP
use Sslcertificates\Sdk\Client;
$client = new Client(getenv('SSL_CERTIFICATES_API_KEY'));
$order = $client->issueCertificate(['example.com'], 'dns-01');
TypeScript
import { SslcertificatesClient } from '@sslcertificates/sdk';
const client = new SslcertificatesClient(process.env.SSL_CERTIFICATES_API_KEY!);
const order = await client.issueCertificate({
domains: ['example.com'],
validation: 'dns-01',
});
Python
import os
from sslcertificates import Client
client = Client(api_key=os.environ["SSL_CERTIFICATES_API_KEY"])
order = client.issue_certificate(["example.com"], validation="dns-01")
Go
client := sslcertificates.New(os.Getenv("SSL_CERTIFICATES_API_KEY"))
order, err := client.IssueCertificate([]string{"example.com"}, "dns-01")
Base URL in every official client: https://sslcertificates.io/api/v1. OpenAPI is at /openapi.yaml.
Integrations
DNS: start with Cloudflare; the DNS integrations API enum is manual|cloudflare today. CAs: directory. Deploy: hosting panels and SSH when you do not want to write your own installer. Kubernetes remains “supply PEM to your controller,” not a silent in-cluster operator we install for you — see Kubernetes TLS.
Before and after
Before
Each repo vendors an ACME library. Staging certs are checked in. Production renewals are a wiki page. Failures are Slack screenshots.
After
One client. Orders in inventory. Webhooks into the deploy job. Idempotent CI. Test keys in pull requests.
Getting started
- Create a key with
certificates:writeandwebhooks:write. - POST a Test certificate. Confirm
X-Request-Id. - Create a webhook, call the test endpoint, verify HMAC.
- Add
idempotency_keyin CI from the git SHA plus hostname. - Only then create a Live API key for publicly trusted issuance, or connect a commercial CA.
Quickstart · API reference · Developer hub
Security and trust
Bearer keys, scoped abilities. Verify webhook signatures. Prefer CSR mode for keys that must stay in your HSM. Do not put PEMs in CI artifacts. Rotate keys when people leave. Organization isolation is enforced in queries — do not build a “superuser that lists all orgs” in your app unless you are actually an MSP with memberships.
Honest limitations
- This is not a full ACME server you point cert-manager at as if we were Let’s Encrypt.
- DNS automation via the documented integrations API is manual or Cloudflare. Other DNS products may be connected in the UI; do not assume identical POST bodies.
- Issuance ≠ deploy. No webhook claims the endpoint presents the new leaf unless you verify.
- Test certificates are not publicly trusted. Do not staple them to a production hostname and call it a launch.
Related docs, tools and academy
Questions developers actually ask
Is this ACME or a REST API?
The public interface you call is REST under https://sslcertificates.io/api/v1. ACME (RFC 8555) is the protocol the platform speaks to supporting CAs. You do not implement JWS, nonces, or newOrder in your app. If you want to speak ACME yourself, use certbot, lego or cert-manager — and then you own inventory, webhooks and multi-app access. See /compare/acme-vs-rest-api.
Which endpoints can I call today?
Documented in OpenAPI: domains (GET/POST/PATCH/DELETE), certificates (list, create, show, download, renew, revoke), certificate-orders (list, show, validate), api-keys, webhooks (including a signed test event), DNS integrations, and custom-hostnames (list, create, show, delete). POST /certificates accepts domains, validation (dns-01|http-01), key_mode (platform_generated|customer_csr), csr_pem and idempotency_key. There is no undocumented /custom-hostnames/{id}/validate — ownership helpers are service-side; certificate validation is POST /certificate-orders/{id}/validate.
How does idempotency work?
Send the same idempotency_key on POST /certificates. If an order with that key exists for the same organization, same domain set and same validation method, you get the existing order. If the key is reused with different domains or a different validation method, the API returns 409 with idempotency_conflict. That is what stops a retried CI job from opening three orders and burning a Let’s Encrypt duplicate-certificate limit.
What is X-Request-Id?
Every HTTP response includes X-Request-Id (ULID, or the value you sent). Log it next to your order id. Support can find the audit row without asking you to reproduce a race. It is not a substitute for idempotency_key on POST bodies.
Which webhook events fire?
certificate.order.created, certificate.validation_required, certificate.issued, certificate.renewed, certificate.renewal_failed and certificate.revoked. Payloads are JSON, signed HMAC-SHA256, retried on failure. You can POST /webhooks/{id}/test to send a signed test event. Verify the signature before you deploy a certificate from a webhook body.
What is Test vs Live issuance?
Test is the default. It uses official Let’s Encrypt Staging, a separate ACME account, and untrusted leaves so you can complete real validation safely. Live uses official Let’s Encrypt Production and publicly trusted certificates. Creating a Live API key is a deliberate owner/admin action. Commercial CAs need the customer’s own credentials.
How do I keep the private key off the platform?
Set key_mode to customer_csr and send csr_pem. The platform stores the CSR and the issued certificate, not your private key. Platform-generated keys are encrypted at rest and downloads are audited. Choose once per product; mixing modes on the same hostname without a revocation plan creates two keys and a confused deploy.
Are the SDK examples kept in sync with the API?
The snippets on the developers solution page are copied from sdks/php, sdks/typescript, sdks/python and sdks/go in this product’s repository. Each official client exposes issueCertificate / issue_certificate / IssueCertificate posting to /certificates. Prefer those clients or the OpenAPI file over blog copy that may drift.
Can I automate DNS-01?
Manual DNS-01 is always available: the order shows the TXT name and token. The DNS integrations API documents provider as manual or cloudflare today — connect a Cloudflare account to publish and clean up challenges. Other DNS products exist as connectable integrations in the directory; treat the OpenAPI enum as the programmatic contract and the directory as the catalog of accounts you can attach in the dashboard.
Does issuance deploy the certificate?
No. certificate.issued means the CA produced a leaf (or the sandbox did). Deployment is a separate connected target or your own installer. If you need verify-and-rollback, use a hosting/SSH connector or implement the same fingerprint check in your pipeline. Issuance without deploy is how staging PEMs never reach production.
What error should I expect for wildcards over HTTP-01?
The service rejects *.example.com unless validation is dns-01. That is ACME’s rule, not a product preference. Use DNS-01 for wildcards; use HTTP-01 only when you can serve the token on port 80 for each concrete name.
Call issuance like any other platform API
Copy an official client, add an idempotency key, verify the webhook, then deploy the PEM you actually received.
Sources and fact-check
Time-sensitive claims on this page were checked on . Validity dates follow the CA/Browser Forum TLS Baseline Requirements — not a vendor blog.