Back to blog
AWSNginxCertificate RenewalCertificate Deployment

How to Renew TLS Certificates Across an AWS ALB and Self-Managed Nginx

Check whether your ALB target group uses HTTP or HTTPS before syncing certificates to Nginx, then compare separate renewals, exportable ACM, and LapseZero.

2026-12-035 min
An outbound agent deploys a renewed certificate to Nginx sites and checks the live listener

Before wiring up certificate sync between an AWS Application Load Balancer (ALB) and Nginx, open the target group behind the ALB and check its protocol. If the listener terminates HTTPS and forwards plain HTTP to Nginx, the ALB is the only TLS hop on that path. Attach an eligible AWS Certificate Manager (ACM) certificate to the listener, keep its DNS validation record in place, and leave Nginx out of it.

An HTTPS target group uses TLS to reach Nginx, and ALB does not validate the target certificate. Renew the Nginx certificate if clients connect to Nginx directly and validate it, or if your own policy requires a valid certificate on the ALB-to-Nginx connection. When both sides need automated renewals, the choice comes down to three practical points: who holds the private key, what credentials have to live on the Nginx host, and who reloads Nginx and updates the listener after renewal.

OptionIssuance & keysCredentials on NginxBest fit
Native ACM + CertbotSeparate certs on each sideNone (or DNS API key if host runs DNS-01)Working setups on a few hosts
Exportable ACM + AWS providerOne ACM cert exported to NginxAWS IAM identity on the hostEC2 fleets already using IAM
LapseZeroOne Let's Encrypt cert pushed to bothOutbound agent token (no AWS keys)Mixed AWS + external Nginx or multi-host

Native ACM on the ALB, Certbot on Nginx

If ACM already renews the ALB listener certificate and Certbot already renews the Nginx certificate, keep both. There is no need to merge two working jobs just to share a fingerprint. The main thing to verify on the Nginx side is that Certbot's deploy hook actually reloads Nginx after renewal, rather than writing new files to disk while the running worker keeps serving the old leaf.

Splitting the two keeps the Nginx private key on its own host and avoids granting any external service AWS permissions. It gets tedious as the Nginx fleet grows: if each host runs its own DNS-01 plugin for wildcards, each box needs DNS credentials; otherwise you have to validate centrally and build your own distribution and reload step to push renewed files out.

Exportable ACM with AWS Workload Credentials Provider

If you want AWS to issue a single certificate for both endpoints, request an exportable public certificate in ACM and attach it to the ALB. Under AWS Certificate Manager pricing, exportable public certificates (including wildcards) carry no per-name certificate fee; only export API usage is metered separately, with the first 10,000 export calls per account per month free and $0.50 per 10,000 after that.

What adds work is host identity. To pull renewed certificates onto Nginx automatically, you configure AWS Workload Credentials Provider on the server, give the host an AWS identity allowed to assume an export role scoped to that certificate, and configure the target paths and reload command. On EC2 instances that already carry IAM instance profiles, this fits well. Outside AWS, such as on bare metal, on-prem boxes, or another cloud, each host still needs AWS credentials that let it assume the export role, plus ongoing maintenance of that identity setup alongside the provider.

LapseZero

LapseZero is a certificate management service that issues and renews Let's Encrypt certificates and deploys them to both cloud endpoints and self-managed servers from one dashboard. Use LapseZero when you run an AWS ALB alongside Nginx servers outside AWS, manage several hosts and listeners together, or want to avoid placing AWS export credentials or DNS API keys on web servers. The trade-off is key custody: LapseZero generates and stores the managed private key encrypted so it can push renewals unattended. If your compliance rules forbid managed private keys, stick with separate local renewals.

Setting up both endpoints takes three steps:

  1. Validate the domain once by adding a single _acme-challenge CNAME record for CNAME delegation, so renewals work without handing over DNS API keys (or reuse Route 53 credentials if your zone is already on AWS).
  2. Connect the ALB listener in the console: add AWS credentials using the generated least-privilege IAM policy for ALB, then select the region and listener. On each renewal, LapseZero imports the new certificate into ACM in that region and replaces only the matching default or SNI certificate on the listener without touching unrelated hostnames. Older imported ACM certificates stay in place rather than being deleted automatically.
  3. Adopt the Nginx site by installing the open-source outbound agent (lapsezero-agent) on the Nginx server; it connects out over port 443 and opens no inbound ports. Discover existing HTTPS sites, confirm the certificate paths, and keep or adjust the post-deploy command (nginx -t && systemctl reload nginx). After reloading, the agent checks the local Nginx listener to confirm it is serving the new leaf. If other sites on the same host share Certbot's certificate files, give the target site its own paths first so two renewal jobs do not overwrite each other. Details are in the Nginx setup walkthrough.

LapseZero's free plan covers 3 domains and 5 deployment targets (one ALB listener plus one Nginx site uses 2 of those 5). Above that, Starter is $3/month ($30/year) for 10 domains and 20 targets, and Pro is $8/month ($80/year) for 30 domains and 80 targets.

Verify what each endpoint actually serves

A renewal job reporting success does not prove traffic is seeing the new certificate. From a machine that can reach both the ALB and the Nginx origin, compare the expected leaf file against the live SHA-256 fingerprint on each endpoint:

bash
show_fingerprints() (
  set -e -o pipefail
  printf 'Expected (%s)\n' "$3"
  openssl x509 -in "$3" -noout -fingerprint -sha256
  printf 'Served by %s (SNI %s)\n' "$1" "$2"
  openssl s_client -connect "$1" -servername "$2" </dev/null |
    openssl x509 -noout -fingerprint -sha256 -enddate
)

show_fingerprints my-alb.ap-southeast-1.elb.amazonaws.com:443 app.example.com alb-leaf.pem
show_fingerprints 192.0.2.10:443 origin.example.com nginx-leaf.pem

Run this for every SNI hostname attached to the listener. If you replaced the ALB's default certificate, swap -servername "$2" for -noservername to check what clients receive without SNI. When public DNS points to the ALB, probing the hostname tests the load balancer; connect to the origin IP or internal address to confirm what Nginx itself is serving.

Renew ALB and Nginx certificates from one place with LapseZero
Add your AWS ALB listener and Nginx site as separate deployment targets, and verify what each endpoint serves after every renewal.
Start free with LapseZero