Skip to content

Why are none of my certificates validating?

0

Hello! I am trying to create some basic certs for my domains with ACM. I cannot get any certs to pass validation despite having the correct DNS set up. I am using Route53 for my domains and hosted zones. It does not matter whether I try and create certificates through Terraform, or through the console. I am able to run dig against the CNAME records and they resolve correctly. My domains are public. I am creating the validation records using the 'create records in Route53' button on the cert details screen, or using the Terraform AWS provider. I have tried manually creating the records through the console. I have tried multiple domains, multiple subdomains, wildcards, etc. I have certs issued for these domains already, so it's nothing new. There are no TXT records in the hosted zones. The NS records match between the domain and the hosted zone. I am at a loss as to what is causing the validation failures.

Here is an example output from the terraform validation for one of my AppRunner projects. You can validate the records through dig if it helps.

certificate_validation_records = toset([
  {
    "name" = "_0b7d78d4e83b7b2abc55f6b9a11a175f.dev.pointrapp.com."
    "status" = "FAILED"
    "type" = "CNAME"
    "value" = "_07a8f508ec025a04de2fa9b6f9121cec.jkddzztszm.acm-validations.aws."
  },
  {
    "name" = "_cd028c9162bb6964d32a229975e3d2db.www.dev.pointrapp.com."
    "status" = "FAILED"
    "type" = "CNAME"
    "value" = "_0bee2d389dc18fd6291d9bc5595abb94.jkddzztszm.acm-validations.aws."
  },
  {
    "name" = "_e01abdb066cf0fac222f3a920fbc4bd5.2a57j78hsrstljvqlux8inqlkmoufug.dev.pointrapp.com."
    "status" = "FAILED"
    "type" = "CNAME"
    "value" = "_4b6c737b5218ef44a89a39d6fd1822f6.jkddzztszm.acm-validations.aws."
  },
])

Verified in the correct hosted zone Enter image description here

Any help would be appreciated! I have multiple projects at a standstill until I can get certs!

asked a year ago356 views

1 Answer
0

Please check below on ACM DNS validation:

  1. Trailing Dot in Record Names • ACM expects CNAME records without trailing dots in the name field. • In your Terraform output:
"name" = "_0b7d78d4e83b7b2abc55f6b9a11a175f.dev.pointrapp.com."

This trailing dot may cause ACM to fail validation even if dig works. Try removing it in your Terraform config or manually in Route53.

  1. Hosted Zone ID Mismatch • Confirm that the domain dev.pointrapp.com is in the correct public hosted zone. • ACM will only validate against public Route53 zones, not private zones even if DNS resolves internally.

  2. Propagation Delay • DNS changes can take up to 30 minutes to propagate, especially for CNAMEs. • ACM checks periodically, but you can force a recheck by: o Deleting and re-requesting the certificate o Re-saving the record manually in Route53

  3. Record Type and Value Format • Ensure the record is a CNAME, not an alias or TXT. • Value must match exactly what ACM provides:

"_07a8f508ec025a04de2fa9b6f9121cec.jkddzztszm.acm-validations.aws."

Again, remove trailing dot if present in the value.

  1. Terraform Timing Issue • If using Terraform, ACM may check for validation before Route53 has finished creating the record. • Use depends_on or null_resource with a delay to ensure Route53 records are fully created before ACM validation starts.
EXPERT

answered a year ago

  • All of the documentation includes the trailing period in the value. The only mention of not including the trailing period is in the troubleshooting dns validation guide

    Default trailing period added by DNS provider

    Some DNS providers add by default a trailing period to the CNAME value that you provide. As a result, adding the period yourself causes an error. For example, "<random_value>.acm-validations.aws." is rejected while "<random_value>.acm-validations.aws" is accepted.

    This indicates that the trailing period is automatically added by some DNS providers, so you end up with "<random_value>.acm-validations.aws.." if you include the period, or the record is just rejected outright.

    I have previously tried removing the trailing period. I tried again and let the records sit overnight, and they're still not validating. I don't think the trailing period is the issue. Thank you for taking the time to post!

  • I forgot to mention, the trailing period in the record name is not present in AWS - It shows in the Terraform, but not in AWS.

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.