Solution for SaaS platforms
Custom domains without building certificate infrastructure
A custom-domain field takes a few pixels in your UI. Behind it sits ownership validation, DNS propagation, certificate issuance, edge routing, renewal and failure handling for every customer hostname.
What this page answers
SaaS products that let a customer type app.customer.com are not adding a DNS label. They are taking responsibility for proving the customer controls that name, obtaining a publicly trusted certificate, putting that certificate wherever TLS actually terminates, watching it, and renewing it after the customer’s DNS has had months to drift. sslcertificates.io is the API for that lifecycle. It is not a global CDN you must move traffic onto, and it is not an ACME client you vendor into every service.
The contract is: create a custom hostname, show the customer an ownership token and a CNAME target, issue a certificate through POST /api/v1/certificates, deliver the PEM to your edge or a connected host, then subscribe to signed webhooks when issuance, renewal or failure happens. Organizations isolate tenants. Test issuance is available immediately so you can integrate before anyone enables production ACME.
Why this is getting harder now
Publicly trusted TLS certificates are on a published schedule in the CA/Browser Forum Baseline Requirements §6.3.2. Certificates issued on or after 15 March 2026 may be valid at most 200 days. From 15 March 2027 the maximum is 100 days. From 15 March 2029 the maximum is 47 days. Domain and IP address validation data may be reused for at most 200, then 100, then 10 days on those same dates (§4.2.1). Certificates already issued keep their original notAfter. New issuance does not.
A SaaS that onboarded a thousand customer hostnames under the old 398-day maximum now renews them more than once a year — then twice, then roughly every six weeks. If your “custom domain” feature still means a founder pastes a TXT record into a support ticket, the ticket volume follows the validity schedule, not your roadmap.
Pains that show up after the UI ships
The feature is small. The infrastructure is not.
Ownership proof, DNS mistakes, propagation delay, ACME accounts, rate limits, SNI, tenant mapping, certificate storage, deploy to the process that actually answers 443, monitoring, and a support script for “it says pending” are one product surface. Teams that treat custom domains as a weekend add-on rediscover this when the first white-label deal multiplies hostnames by the number of the customer’s customers.
You do not control customer DNS.
The customer owns the zone. They typo the CNAME, leave an old _acme-challenge TXT next to a delegation CNAME, put the name behind a proxy that hides HTTP-01, or publish a CAA record that forbids the CA you picked. Those are not edge cases. They are the onboarding path.
Ownership and issuance are different jobs.
Cloudflare’s custom-hostname documentation makes this split explicit: hostname validation and certificate validation use different tokens and different status fields. The same split exists here. An ownership token (own_…) is not an ACME challenge. A certificate in certificate_pending is not an active hostname. Your UI must show both or your support team will.
DNS drift kills renewal, not signup.
The CNAME that worked at kickoff is gone in month five. Renewal fails, the leaf expires, and the customer’s buyers see a certificate warning on your product. After 15 March 2026 that month-five date arrives sooner.
ACME rate limits become product outages.
If every tenant shares one Let’s Encrypt account and one registered domain pattern, Let’s Encrypt’s published Certificates per Registered Domain and duplicate-certificate limits are your launch ceiling. Embedding ACME inside the monolith couples deploys to those limits.
White-label growth is linear hostname operations.
Each new customer hostname is a state machine: pending, ownership, certificate pending, active, renewing, failed. You need pagination, filters, and webhooks — not a spreadsheet of CNAMEs in Notion.
Build-versus-buy is an on-call question.
Custom-domain TLS rarely differentiates the product. It does page people. Buying the lifecycle API is justified when you would otherwise staff retries, inventory, and CA account hygiene forever.
What breaks in the business if you ignore this
Onboarding time stretches from “paste this CNAME” to a week of DNS archaeology. Enterprise white-label deals stall on HTTPS. Support cost per tenant rises every time validity shrinks. A single failed renewal on a logo customer becomes a churn conversation. Engineering time spent on ACME is time not spent on the product the customer actually bought.
Why the usual approaches fail
One ACME client in the app works for the first fifty names and then collides with retries, clock skew, and rate limits. One wildcard on your zone cannot cover app.customer.com. Asking customers to upload a PEM makes every renewal a file-exchange project. Terminating everything on a single edge vendor can be the right architecture — it also prices and locks hostname operations to that vendor’s custom-hostname product. Polling a CA dashboard does not update your tenant table.
How sslcertificates.io maps onto each pain
| Pain | What you call |
|---|---|
| Hostname intake | POST /api/v1/custom-hostnames with { "hostname": "app.customer.com" } |
| Ownership instruction | Response fields ownership_token and cname_target |
| Issuance | POST /api/v1/certificates with domains, validation, optional key_mode / csr_pem |
| Validation complete | POST /api/v1/certificate-orders/{id}/validate when challenges are in place |
| Delivery | Download PEM, or deploy through a connected host — we do not force a CDN cutover |
| Watch / renew | Scheduled auto-renew plus certificate.renewed / certificate.renewal_failed |
| Tenant isolation | One organization per product (or per large tenant); API keys cannot read another org |
Statuses you will actually store: the record is created pending. When ownership is marked validated it becomes certificate_pending. When a certificate is attached it becomes active. Academy documents the operator-facing chain including ownership_validation and renewing. There is no public POST /custom-hostnames/{id}/validate — do not invent it.
Custom hostname lifecycle
Create the hostname as soon as the customer types it — before they change DNS — so you can render instructions. Do not issue a publicly trusted certificate until ownership is believable; Test orders are fine earlier. Deliver the certificate to the process that will present it (your load balancer, your connected panel, or a file your edge already knows how to reload). Only then flip the customer-facing “HTTPS ready” bit. Renewal is the same path without the marketing page.
Original asset: DNS failure and onboarding checklist
- Name accepted by your normalizer. Reject spaces, schemes, and paths. The API stores a lower-cased hostname.
- Show both records. Traffic CNAME (your target, or the instructional
edge.sslcertificates.ioif you use it) and the ownership token. Do not collapse them into one “add this DNS” blob. - Check CAA. If the zone forbids your chosen CA, issuance fails after the customer thinks they finished.
- Look for leftover
_acme-challengeTXT before asking for a delegation CNAME. Conflicting records are a leading renewal failure in every major custom-hostname stack. - Do not require a full zone transfer. Customers who already run email and a website on that zone will refuse.
- Wait for the name you asked for, not “some TXT.” Propagation is per-resolver. Your checker should query authoritative nameservers and public resolvers separately.
- Issue, then point traffic when you can. A certificate that exists before the CNAME flip avoids a window of browser warnings.
- Keep instructions on the tenant screen forever. Day-180 you will need them again.
- Subscribe to
certificate.renewal_failedand open an in-app task, not only an email to a founder inbox. - Rate-limit retries so a stuck wizard cannot burn Let’s Encrypt duplicate limits for that registered domain.
Integrations that matter for this audience
Connect Cloudflare DNS when the customer (or you) already hosts the zone there so DNS-01 can be written and deleted without a ticket. Route 53, Azure DNS and Google Cloud DNS appear in the customer directory for the same job. Let’s Encrypt and commercial CAs live under Certificate Authorities. Hosting panels matter when your SaaS deploys onto a customer Plesk or cPanel instead of your own edge. Identity products are not certificate integrations — SSO is under Organization → Security.
Product capabilities you can rely on
- Custom Hostnames API: list, create, show, delete. Filters for
statusandhostname. Pagination of 50. - Certificate orders with DNS-01 or HTTP-01, platform-generated keys or customer CSR.
- Idempotency keys on issuance; mismatch returns 409
idempotency_conflict. - HMAC-SHA256 webhooks with retries; test event endpoint.
- Official clients in PHP, TypeScript, Python and Go posting to the same
/certificatesresource. - Dashboard inventory: expiry, failed renewals, Action Required.
- Test mode first. Production Let’s Encrypt is an operator control, not an implicit default.
Architecture example
A billing product offers pay.customer.com. The app calls POST /custom-hostnames, stores id and ownership_token on the tenant, and renders “Create a TXT or show this CNAME.” When your checker is satisfied, you request POST /certificates with domains: ["pay.customer.com"] and validation: "dns-01". If the customer’s zone is on a connected Cloudflare account, the platform can present the TXT. You wait for certificate.issued, install the PEM on the listener that already serves that tenant (SNI), and only then mark the hostname active. You never copy ACME account keys into the billing repo.
curl https://sslcertificates.io/api/v1/custom-hostnames \
-H "Authorization: Bearer $SSL_CERTIFICATES_API_KEY" \
-H "Content-Type: application/json" \
-d '{"hostname":"app.customer.com"}'
Before and after
Before
A ticket: “add this TXT.” An engineer runs certbot on a box that also runs the app. Renewals are cron plus hope. The second white-label customer shares the same ACME account. Nobody can list which tenants are pending.
After
The product UI owns instructions. The API owns orders, inventory and webhooks. Failed renewals reopen the tenant’s DNS checklist. Engineering does not SSH for HTTPS.
Implementation
- Create an organization and a scoped API key with
domainsandcertificatesabilities. - Issue a Test certificate for a name you control. Confirm the webhook signature.
- Wire
POST /custom-hostnamesto your “add domain” handler. - Render
ownership_tokenand your traffic CNAME. Keepcname_targetif you use the instructional host; replace it in the UI if your edge target is different. - On success, issue the certificate and deploy to your terminator.
- Store hostname
idnext to the tenant. Subscribe to renewal failures.
Start from the quickstart and the hostname lifecycle academy article.
Security and trust
API keys are organization-scoped. Platform-generated private keys are encrypted at rest; downloads are audited. CSR mode never stores a key you did not send. We do not become the customer’s DNS host, so a stolen platform key cannot rewrite their MX. Verify webhook HMAC before you treat a delivery as issued. Do not log PEMs or ownership tokens in application debug traces.
Honest limitations
edge.sslcertificates.iois an instruction hostname, not a promise of anycast CDN capacity comparable to Cloudflare for SaaS.- New accounts start in Test mode. Create a Live API key when you are ready for publicly trusted certificates.
- The programmatic DNS integrations enum currently lists
manualandcloudflare. Other DNS vendors are connectable in the directory; do not assume every logo has the same API shape. - We do not move the customer’s email or apex zone for them.
- Commercial CA issuance needs that CA’s account. We do not quietly “make DigiCert work” without credentials.
Related docs, tools and academy
Questions SaaS platform teams actually ask
How do SaaS platforms automate SSL for customer custom domains?
Create a custom hostname record when the customer submits the name, show them the ownership token and CNAME target, wait until ownership is proven, then issue a certificate for that hostname and deliver it to whatever terminates TLS — your edge, a connected host, or a download. sslcertificates.io exposes that as POST /api/v1/custom-hostnames with body { "hostname": "app.customer.com" }. The response includes id, status, ownership_token (own_…) and cname_target (edge.sslcertificates.io). Certificate issuance is a separate POST /api/v1/certificates call. Subscribe to certificate.issued and certificate.renewed so your product can mark the hostname live and retry when DNS drifts.
Do customers need to move their DNS zone to us?
No. sslcertificates.io does not host customer DNS. The customer keeps their registrar and authoritative DNS. They add the records you show them — typically a CNAME for traffic and, for DNS-01, a TXT (or CNAME delegation) at _acme-challenge. If they already use Cloudflare, Route 53, Azure DNS or Google Cloud DNS, they can connect that account so challenge records are published and removed without a ticket. Moving the whole zone is a Cloudflare-for-SaaS-style choice, not a requirement here.
Should we use DNS-01 or HTTP-01 for custom domains?
DNS-01 works when the customer can create a TXT (or delegated CNAME) at _acme-challenge and is required for wildcards. HTTP-01 works when the hostname already answers on port 80 at an origin you control — which is often false during first onboarding, because traffic is not pointed at you yet. Most SaaS onboarding therefore proves ownership with a token the customer publishes, then uses DNS-01 for issuance so the certificate exists before the traffic CNAME flips. If the customer already points HTTP at you and you can serve the ACME token, HTTP-01 is valid. The API accepts validation: "dns-01" or "http-01" on certificate orders.
How are certificates renewed after a custom hostname is active?
Active certificates with auto-renew enabled are scheduled before expiry. Renewal creates a new order for the same names, repeats validation, and — if validation still succeeds — emits certificate.renewed with the new certificate id and the replaced id. If the customer deleted _acme-challenge, changed CAA, or pointed the name at another proxy, validation fails and the certificate status becomes renewal_failed with a certificate.renewal_failed webhook. Your product should treat that as Action Required on the tenant, not as a silent dashboard badge only your on-call sees.
What if customer DNS changes after onboarding?
Renewal will fail the next time the CA cannot see the challenge. That is the common “it worked at signup” outage. Monitor the hostname, keep the ownership and challenge instructions on the tenant’s settings screen, and alert when certificate.renewal_failed or a TLS check no longer matches the inventory fingerprint. Do not assume the CNAME you printed on day one is still there. Shorter public lifetimes (200 days from 15 March 2026, 100 days from 15 March 2027, 47 days from 15 March 2029) make drift show up sooner.
Can we keep our existing CDN or edge?
Yes. A custom hostname in sslcertificates.io is a lifecycle record, not a requirement to proxy traffic through us. cname_target is an instruction field (edge.sslcertificates.io) you can show or replace with your own customer CNAME target. Issue the certificate, then install the PEM on the CDN, load balancer, or origin you already operate. We do not claim to replace Cloudflare for SaaS as a global proxy. If you do terminate on Cloudflare, use their custom-hostname product for the edge and this API when you want CA choice, CSR mode, or inventory that is not locked to one proxy.
Can we use our own certificate authority?
You can connect a supported public CA account (Let’s Encrypt when production ACME is enabled for the platform, or a commercial CA the customer has credentials for) and request issuance through POST /certificates. Test issuance is available immediately so you can integrate without waiting on a CA contract. We do not silently swap CAs after a challenge is published — that would break DNS-01. Multi-CA is a routing choice at order time, not a hidden failover mid-validation.
How do lifecycle webhooks work?
Create an endpoint with POST /api/v1/webhooks and an HTTPS URL. Deliveries are JSON, signed with HMAC-SHA256, and retried on failure. Events your SaaS actually receives today include certificate.order.created, certificate.validation_required, certificate.issued, certificate.renewed, certificate.renewal_failed and certificate.revoked. Use X-Request-Id on API responses to correlate a user action with an order. Do not invent extra hostname webhooks that are not in the API — poll GET /custom-hostnames/{id} for ownership status and use certificate events for issuance.
Can this scale to thousands of hostnames?
The Custom Hostnames API paginates (50 per page) and filters by status or hostname. Entitlements cap how many custom hostnames an organization may create on each plan. Thousands of hostnames is an operations problem more than an HTTP problem: you need durable ownership instructions, webhook consumers that are idempotent, and a support view that shows pending vs certificate_pending vs active vs renewal failed. Let’s Encrypt rate limits (see their published Certificates per Registered Domain limits) still apply if many tenants share one registered domain — design your name pattern so you do not issue fifty certificates for the same registered domain in a week without intending to.
Wildcard vs per-hostname certificates — which should a SaaS use?
A wildcard (*.customers.yourapp.com) covers names you control on your zone. It does not cover app.customer.com, because that name is on the customer’s zone. Customer-owned custom domains need a certificate that lists those names (usually one hostname, sometimes a small SAN set). Wildcards on the customer’s zone require the customer to complete DNS-01 for that zone and expand blast radius if the wildcard key is copied. Prefer per-hostname certificates for customer domains, and a separate wildcard only for names on your own DNS.
What does the ownership token actually prove?
The token (own_…) is a correlation value you ask the customer to publish so you can believe they control the name before you spend CA validation or point production traffic at it. It is not a certificate and it is not an ACME challenge. Cloudflare’s docs make the same split: hostname validation and certificate validation use different fields. Completing ownership does not issue TLS. Completing ACME does not prove the customer still wants you to terminate their traffic. Keep both states in your UI.
Put custom-domain TLS on an API, not on a sprint
Create a hostname, show the token, issue the certificate, and let webhooks drive the tenant state machine.
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.