AWS Certificate Manager (ACM) has a reputation for settling the certificate question for good: request one, attach it to a load balancer, forget about it. That is true in the nominal case. But several situations stop an ACM certificate from renewing, and AWS will not take your service down for you: it lets the certificate expire.
What ACM renews automatically
A public certificate issued by ACM is renewed with no action on your side if two conditions are met:
- It is in use: associated with an integrated AWS service (Elastic Load Balancing, CloudFront, API Gateway…), or exported since it was issued or last renewed.
- Its validation can be replayed: with DNS validation, the CNAME record supplied by ACM must still be present in the zone.
ACM starts the renewal 60 days before expiry. The certificate keeps the same ARN: nothing to change on the load balancer or distribution.
- Was the certificate issued by ACM?Imported certificate: never renewed. You have to re-import it.
- Is it used by an AWS service, or exported?Not eligible for automatic renewal.
- Can its validation be replayed (CNAME still in DNS)?Renewal pending: you need to take action.
- Renewed automatically, 60 days before expiry, under the same ARN.
When renewal fails
The validation CNAME record is gone. This is the most common cause: DNS zone migration, cleanup of “unknown” records, change of provider. ACM can no longer prove control of the domain and the renewal stays pending.
The certificate is email-validated. If automatic validation does not succeed, ACM sends a message to the domain’s addresses, and someone has to click. If those mailboxes are no longer read, the certificate expires. Move those certificates to DNS validation, which means requesting a new one.
The certificate is attached to nothing. A certificate issued “just in case”, or detached during a redesign, is not eligible for renewal.
A CAA record blocks Amazon. If your zone publishes CAA records, they must authorize Amazon’s authorities.
A single name fails. For a certificate covering several domains, all of them must validate. One abandoned subdomain is enough to block the whole thing.
Imported certificates are never renewed
A certificate bought elsewhere and then imported into ACM is not managed: ACM stores and distributes it, nothing more. At expiry, it is up to you to obtain the new certificate and reimport it on the same ARN.
These are the certificates most exposed to the move to 100, then 47 days: a yearly import becomes an import every six weeks.
What ACM does not see
ACM only knows what is in ACM. In an AWS account you will also find:
- certificates installed directly on EC2 instances (nginx, Apache, IIS);
- old server certificates stored in IAM;
- certificates in containers, managed by cert-manager or a sidecar;
- the CA certificates of RDS databases, which have their own rotation cycle;
- certificates spread across several accounts and regions (CloudFront requires
us-east-1).
How to monitor
AWS provides several signals, which you have to enable explicitly:
- EventBridge: the ACM Certificate Approaching Expiration event is emitted daily from 45 days before expiry; other events flag a renewal that needs action.
- CloudWatch: the
DaysToExpirymetric of each certificate. - AWS Config: the
acm-certificate-expiration-checkrule. - AWS Health: renewal failure notifications.
Those signals are per account and per region. With an organization of several dozen accounts, you need to centralize them, or read the certificates from outside.
The checklist
- In every account and region, list ACM certificates with their type (issued or imported) and validation mode.
- Check the “renewal eligibility” column: every ineligible certificate needs an explanation.
- Replace email validations with DNS validations.
- Track imported certificates as manual certificates, with alerts suited to their lifetime.
- Complete with an inventory of what lives outside ACM.
Reference: AWS, “Managed certificate renewal in AWS Certificate Manager”.