Home / AWS

AWSChecklistBeginner

ACM certificate stuck in PENDING_VALIDATION: a DNS validation and CAA checklist

A step-by-step checklist to get a new ACM certificate from Pending validation to Issued - the right CNAME in the right zone, delegation checks, CAA records, Region choice and timeouts.

Deepak Bhardwaj7 min read

Applies toAWS Certificate Manager public certificates (DNS validation), Amazon Route 53 and third-party DNS providers, AWS CLI v2

The problem

You requested a public certificate in AWS Certificate Manager (ACM), and it still says Pending validation hours later. Or it has gone to Validation timed out, or Failed. Meanwhile the load balancer or CloudFront change you planned is waiting for it.

ACM issues the certificate after it finds a specific CNAME record for each domain name in public DNS, and after the domain's CAA records (if any) allow Amazon to issue. Almost every stuck request comes down to one of the checks below. Work through them in order.

Tip

This post covers new requests. If an existing certificate failed to renew or has already expired, that is a Sev1 problem with its own runbook. The CNAME and CAA checks here still apply, because DNS-validated renewals use the same record.

Checklist

1. Confirm the Region and the certificate

  • The certificate is in the Region where you will use it. CloudFront only uses certificates from us-east-1. ALB, NLB and API Gateway regional endpoints need the certificate in their own Region.
  • You are looking at the newest request, not an older duplicate.
aws acm list-certificates --region us-east-1 \
  --certificate-statuses PENDING_VALIDATION VALIDATION_TIMED_OUT FAILED \
  --query 'CertificateSummaryList[].{Domain:DomainName,Status:Status,Arn:CertificateArn}' --output table

2. Get the exact records ACM wants

CERT=arn:aws:acm:us-east-1:111122223333:certificate/1234abcd-12ab-34cd-56ef-1234567890ab

aws acm describe-certificate --certificate-arn "$CERT" --region us-east-1 \
  --query 'Certificate.{Status:Status,Failure:FailureReason,Method:DomainValidationOptions[0].ValidationMethod}'

aws acm describe-certificate --certificate-arn "$CERT" --region us-east-1 \
  --query 'Certificate.DomainValidationOptions[].{Domain:DomainName,Status:ValidationStatus,Name:ResourceRecord.Name,Value:ResourceRecord.Value}' \
  --output table
  • The validation method is DNS. If it is EMAIL, someone has to click the approval mail. For automation, request a new certificate with DNS validation.
  • Every domain row that is not SUCCESS has a record you are about to check. example.com and *.example.com share the same CNAME, so you only need it once.

3. Check the CNAME in public DNS

Query public resolvers, not your laptop's corporate DNS:

dig +short CNAME _3f5a1c2b9d8e7f6a5b4c3d2e1f0a9b8c.example.com @8.8.8.8
dig +short CNAME _3f5a1c2b9d8e7f6a5b4c3d2e1f0a9b8c.example.com @1.1.1.1

On Windows:

Resolve-DnsName -Name _3f5a1c2b9d8e7f6a5b4c3d2e1f0a9b8c.example.com -Type CNAME -Server 8.8.8.8

The answer must match ResourceRecord.Value exactly. Common mistakes:

What you see Cause Fix
No answer Record created in a private hosted zone, or in the wrong zone Create it in the public zone that is authoritative for the domain
Name resolves as _abc.example.com.example.com DNS provider appends the zone name to whatever you type Enter only the _abc label (or the full name with a trailing dot, depending on the provider)
Value is missing its trailing part Value copied partially Copy the full ...acm-validations.aws. value
Answer shows an A record or proxied IP Provider is proxying the record (for example a CDN "orange cloud") Set the record to DNS-only; the CNAME must be returned as a CNAME
Record exists in Route 53 but not in public DNS The domain is delegated to different name servers See step 4

If the domain is in Route 53 in the same account, let ACM create the records for you:

aws acm describe-certificate --certificate-arn "$CERT" --region us-east-1 \
  --query 'Certificate.DomainValidationOptions[0].ResourceRecord' > rr.json

NAME=$(jq -r .Name rr.json); VALUE=$(jq -r .Value rr.json)
cat > change.json <<EOF
{"Changes":[{"Action":"UPSERT","ResourceRecordSet":{"Name":"$NAME","Type":"CNAME","TTL":300,"ResourceRecords":[{"Value":"$VALUE"}]}}]}
EOF

aws route53 change-resource-record-sets --hosted-zone-id Z0123456789ABCDEFGHIJ --change-batch file://change.json

Repeat for each distinct record, or use the "Create records in Route 53" button in the ACM console, which does the same for all domains at once.

4. Check that the zone you edited is the one the internet uses

# Name servers the parent zone (registry) delegates to
dig +short NS example.com @8.8.8.8

# Name servers of the hosted zone you edited
aws route53 get-hosted-zone --id Z0123456789ABCDEFGHIJ --query 'DelegationSet.NameServers'
  • The two lists match. If you have two public hosted zones for the same name (common after a re-create), only the one the registrar points at counts.
  • For a subdomain zone such as app.example.com, the parent zone has an NS record delegating to the subdomain zone's name servers.
  • If DNSSEC is enabled on the domain, dig +dnssec returns valid answers. A broken DNSSEC chain makes validating resolvers reject the answer.

5. Check CAA records

ACM checks CAA after the domain is validated. If CAA records exist and none of them allows an Amazon CA, the certificate fails with CAA_ERROR.

dig +short CAA example.com @8.8.8.8
dig +short CAA app.example.com @8.8.8.8
  • Either there are no CAA records at all, or an issue record allows one of amazon.com, amazontrust.com, awstrust.com or amazonaws.com.
  • For wildcard names: if an issuewild record exists, it must also allow an Amazon CA. issuewild overrides issue for wildcard requests.
  • CAA is checked by climbing the name tree, so a CAA record on example.com applies to app.example.com unless the subdomain has its own.

Example records to add next to an existing CA:

example.com.  3600  IN  CAA  0 issue "amazon.com"
example.com.  3600  IN  CAA  0 issuewild "amazon.com"

Warning

CAA records are shared by every certificate authority you use. Add the Amazon value next to the existing entries; don't replace them. If you remove the other CA's entry, its next renewal fails, and you have created a certificate outage somewhere else.

6. Read the failure reason and start over if needed

aws acm describe-certificate --certificate-arn "$CERT" --region us-east-1 \
  --query 'Certificate.[Status,FailureReason]'
  • VALIDATION_TIMED_OUT: ACM didn't find the record within 72 hours. You can't restart validation on that request. Delete it and request again once the DNS is right.
  • CAA_ERROR: fix CAA (step 5), then request again.
  • ADDITIONAL_VERIFICATION_REQUIRED, DOMAIN_NOT_ALLOWED or INVALID_PUBLIC_DOMAIN: these aren't DNS typos. Check that the name is a real public domain, and open a support case if it is.
aws acm delete-certificate --certificate-arn "$CERT" --region us-east-1

aws acm request-certificate --region us-east-1 \
  --domain-name example.com \
  --subject-alternative-names '*.example.com' \
  --validation-method DNS \
  --query CertificateArn --output text

The CNAME for a domain usually stays the same when the same account requests a new certificate for it, so the record you already published often works straight away. Compare the new ResourceRecord.Value to be sure.

Tip

Requesting many certificates while you debug uses up your ACM request quota. Fix DNS first, then request once. Check the current ACM quotas in the Service Quotas console if you run into a limit.

7. Wait for it to be issued

aws acm wait certificate-validated --certificate-arn "$CERT" --region us-east-1 && echo ISSUED

Once the record is visible on public resolvers, issuance usually takes minutes. If it is still pending an hour after both public resolvers return the correct CNAME and CAA allows Amazon, go back to step 4. A second zone or a delegation mismatch is the usual cause.

Prevent it next time

  • Keep the validation CNAMEs in DNS permanently. ACM uses them for automatic renewal, so deleting them after issuance sets up a renewal failure months later.
  • Manage the CNAME in the same IaC as the certificate (for example aws_acm_certificate_validation in Terraform, or CloudFormation's DomainValidationOptions with a Route 53 HostedZoneId).
  • Keep a list of the CAA records for every apex domain, and review it when you add or change a CA.
  • Request CloudFront certificates in us-east-1 from the start, and say so in your runbooks.