Treat the certificate as a production dependency
An expired TLS certificate is not an administrative inconvenience. It can block checkout, APIs, webhooks, operations consoles and partner connections at the exact point where a customer needs to trust the store. A certificate that is still within its validity period can also fail when the server presents an incomplete chain, an edge node keeps the previous version or the requested hostname is absent. Management must therefore cover the complete lifecycle, from discovery to post-deployment verification.
This guide concerns public TLS at ecommerce edges: CDNs, load balancers, gateways, public origins and third-party services operating under your domain. TLS protects data in transit and authenticates an endpoint through its trust chain. It does not encrypt stored application data and does not replace authorisation, application key management or fraud controls. Keeping these goals separate prevents the browser padlock from being assigned guarantees it does not provide.
Build an inventory that supports action
For every endpoint, record the DNS name, environment, owner, certificate authority, management method, domain validation, TLS termination service, regions, expiry and escalation contacts. Link a certificate to the configuration that delivers it, not merely to a spreadsheet row. Include canonical domains, www variants, APIs, payment subdomains, asset hosts, callbacks and temporary hosts that remain reachable. External discovery shows what the public sees; the internal inventory explains who can fix it.
Choose managed service or ACME without leaving a gap
A managed certificate service can issue, install and renew certificates attached to supported products, reducing operational code. Coverage is not universal. In AWS Certificate Manager, a public certificate is eligible for managed renewal when it is associated with an integrated AWS service or when it has been exported since issuance or its last renewal. These are separate eligibility paths, not cumulative requirements. Imported certificates and certificates issued through ACM ACME automation are ineligible; the ACME client renews the latter. Confirm the owner and renewal path for every item.
ACME, standardised by RFC 8555, automates requests, control validation for identifiers, issuance and revocation. It does not make the operation stateless. A client must protect its account key, retain necessary durable state and complete challenges that fit the architecture. A local ACME client may retain the private key on that machine; a managed service may keep it inside the provider boundary. Only a self-managed deployment with multiple TLS endpoints needs secure certificate and key distribution where its architecture requires it. Issuance alone does not prove that every node serves the replacement.
Design early and resilient renewal
Do not schedule renewal on the eve of expiry. Leave enough time for challenge failures, authority limits, maintenance, propagation and rollback. When the authority provides ACME Renewal Information, or ARI, use its suggested window rather than relying only on the certificate lifetime. The Let's Encrypt integration guide recommends renewing early, processing small batches, introducing randomness to schedules, backing off after errors and notifying operators when automation cannot recover.
Separate issuance, delivery and activation
Model renewal as an idempotent sequence. First acquire or renew the certificate, then validate names, validity period, chain and correspondence with the intended private key. If a managed provider activates it within its boundary, verify that path; in self-managed environments, deliver it securely only to the required endpoints and activate a pilot group first. Record the certificate identifier, destination configuration and result of every phase. A retry must not create competing configurations or blindly overwrite a version that is still valid.
Keep batches small and add jitter across hosts or accounts. If a challenge fails, distinguish an authorisation error, a DNS or HTTP problem, temporary unavailability and an authority limit. Apply bounded backoff and alert before the remaining window becomes critical. Aggressive loops amplify incidents, consume quotas and can obscure the original cause behind secondary errors.
Serve a complete and compatible chain
The server should present the leaf certificate and the intermediates needed for a client to build a path to a trusted root. Do not rely on an operator's browser having cached a missing intermediate. Other browsers, devices, bots, mobile applications or partners may not have it. Test from different networks and client families that each endpoint presents the expected name and chain, without omitting an intermediate or adding unrelated material.
Roots and intermediates can change. Do not encode a single chain as a permanent truth, and do not bind the operation to one leaf certificate. AWS warns that pinning a managed certificate can prevent smooth renewal; leaf-certificate pinning is generally incompatible with transparent rotation. If an application needs additional restrictions, design an updateable set and an overlap procedure, then exercise the change before production.
Verify deployment through canaries and independent observation
Activate the new certificate on a representative canary first. Query the real public hostname with SNI and verify the served leaf, subject alternative names, validity interval and full chain. Expand gradually across regions and providers, stopping if handshake failures rise. The test must traverse the customer path. A management API can confirm intended configuration without proving what a CDN or load balancer actually serves.
Combine external and internal signals
An external monitor should measure days remaining, handshake errors, hostname coverage and chain building from more than one network. Internal telemetry should cover renewal attempts, challenges, deliveries, nodes on an old version and activation failures. Use progressive thresholds, owner escalation and periodic contact tests. A lone warning sent to an unattended mailbox is not a control.
Publicly trusted certificates are normally submitted to Certificate Transparency logs, so names included in them can become observable. Do not place sensitive internal names in public certificates, and monitor the logs for unexpected issuance associated with controlled domains. This detection helps identify deviations but does not replace the inventory, certificate-authority authorisations or protection of domain-validation credentials.
Use HSTS and related controls without breaking recovery
HSTS instructs a browser to use HTTPS for the declared period. Enable it only after every included resource and subdomain has been verified on HTTPS and renewal has become dependable. Long durations, subdomain inclusion and preload increase the cost of a mistake. Establish domain ownership, legacy coverage and recovery first. HSTS cannot repair an incomplete chain or an expired certificate.
Keep private keys within the smallest necessary boundary, restrict export and access, and replace them according to the chosen operating model. NIST SP 800-52 Rev. 2 provides TLS guidance for United States federal systems, but the publication is currently under revision and federal requirements are not automatically universal rules for every ecommerce platform. Use it as a technical reference alongside applicable obligations, risk and compatibility, not as a generic compliance label.
Prepare a runbook for expiry and chain incidents
The runbook should distinguish approaching expiry, failed renewal, issuance without delivery, incomplete chain, wrong hostname and compromised key. For each case, specify the owner, authorised console or command, validation method, rollback and communication path. Keep a previous certificate available while the canary is evaluated when it remains valid, without extending its use unnecessarily. Exercise the procedure with a synthetic domain and a realistic time limit.
Measure inventory coverage, renewals completed without intervention, actual renewal lead time, time from issuance to global activation, divergent nodes and recovery time. A recurring review should remove forgotten hosts and assign owners to orphaned endpoints. To connect certificates, CDNs, load balancers and monitoring through an auditable delivery process, explore our ecommerce infrastructure services. The outcome is not merely a valid certificate today, but an operating chain that renews, deploys and proves its state before a customer encounters an error.
Frequently asked questions
Does ACME install a renewed certificate on every ecommerce node?
Not in every architecture. A local client can retain and activate the key on the same machine, while a managed provider may keep it internally. Only self-managed deployments with multiple TLS endpoints must distribute it securely where required.
Why can a TLS chain work in one browser and fail elsewhere?
The test browser may have cached an intermediate certificate omitted by the server. A new client, bot or mobile application may not have it and therefore cannot build a path to a trusted root.
Which public ACM certificates receive managed renewal?
Certificates associated with an integrated AWS service or exported since issuance or the last renewal are eligible. Imported certificates and certificates issued through ACM ACME are ineligible; an ACME client renews the latter.
When is it safe to enable HSTS for an ecommerce site?
After HTTPS coverage and reliable certificate renewal have been verified for every resource and subdomain that will be included. Long durations, includeSubDomains and preload require even more cautious preparation.
Related articles
Cloudflare Analytics: understand visitors, requests and cache hit ratio
A practical guide to reading Cloudflare unique visitors, requests, data transfer and cache hit ratio without confusing traffic, people and performance.
Ecommerce database transactions: isolation, deadlocks and safe retries
A practical method for choosing isolation, separating deadlocks from waits, retrying the whole transaction and protecting external effects.
Ecommerce fraud prevention: signals, rules and manual review
Build a fraud-control system that combines reliable data, layered rules, selective 3D Secure and disciplined manual review without rejecting good customers.
