Interview Prep/DevSecOps/Certificates, TLS and security incident response

An ACM certificate for `api.acme.com` has been `Pending validation` for two days

BeginnerTroubleshootingCertificates, TLS and security incident response
Answer

Likely causes → The DNS validation CNAME was never created, was created in the wrong hosted zone (private instead of public), or the domain is delegated to another DNS provider.

Diagnose →

aws acm describe-certificate --certificate-arn <arn> --query 'Certificate.DomainValidationOptions[].ResourceRecord'
dig +short CNAME _abc123.api.acme.com
dig +short NS acme.com

Fix → Create the exact CNAME in the authoritative public zone. In Terraform, use aws_acm_certificate_validation with aws_route53_record built from domain_validation_options.

Prevent → Use DNS validation in code, and keep the CNAMEs in place so ACM can renew automatically.

All DevSecOps questions

More on Certificates, TLS and security incident response