Skip to content

AWS Lightsail Distribution Certificate Validation Issue: Added Namecheap CNAME, Still "No Available Certificates" After 8+ Hours

0

I'm setting up a WordPress site on AWS Lightsail. I created a distribution under Networking > Distribution and am trying to add a certificate in Custom Domains. I created the certificate in Lightsail and manually added the required CNAME records to the Namecheap panel (domain and existing SSL are with Namecheap).

After waiting over 8 hours, I still get the error: "You have no available certificates in this AWS Region. Create a certificate to use custom domains with your distribution." I haven't moved DNS NS records to AWS; they're still with Namecheap.

Is this due to DNS propagation delay, a missing CAA record, or something else? How can I resolve this? Please provide step-by-step suggestions.

2 Answers
0

If you are maintaining the DNS records with a third-party (3p), do not create any DNS records in Lightsail (unless you're delegating a sub-domain to Lightsail; you could create an NS record at 3p that delegates to blog.<mydomain>.com and managed all the records for that sub-domain in Lightsail).

Assuming all your records are hosted with a third-party, you'd also add the CNAME record from Lightsail back at the third-party provider.

  • First, go to the distribution page and check if the certificate is still trying to validate, it will fail validation after 72 hours.
  • Delete the certificate if validation has failed
  • Create a new certificate
  • Copy the entire content of the record to a new CNAME record with your third-party provider
  • During the first few hours, the validation system checks frequently and should resolve your record as soon as it's available (you can always confirm the record is being found through DNS using the dig command recommended above with the target from your certificate)

Related articles

AWS
answered 8 months ago
EXPERT
reviewed 8 months ago
0

When setting up a custom domain with an AWS Lightsail distribution, certificate validation issues can occur for several reasons. Based on your situation, here are the likely causes and solutions:

  1. Certificate Validation Status: First, check the actual status of your certificate in the Lightsail console. The certificate might still be in "Attempting to validate your certificate" status or may have failed with "Validation timed out" after 72 hours.

  2. CNAME Record Verification: Ensure you've correctly added the CNAME records to your Namecheap DNS configuration. You can verify if the CNAME records are properly configured by using the dig command:

dig CNAME <CNAME from Certificate>.yourdomain.tld +short

This should return the validation value provided by AWS.

  1. CAA Records Issue: If you're using Cloudflare or another service that automatically adds CAA (Certification Authority Authorization) records, these might be preventing AWS from issuing certificates for your domain. Check if there are any CAA records in your DNS configuration that could be blocking AWS certificate issuance.

  2. Certificate Region: Make sure you created the certificate in the same AWS region as your distribution. Certificates are region-specific.

  3. Failed Certificate Request: If a previous certificate request failed, you may need to delete it and create a new one. In the Lightsail console, find the failed certificate, delete it, and then request a new one.

Steps to resolve:

  1. Check your certificate's validation status in the Lightsail console
  2. If it shows "Validation timed out," delete the certificate and create a new one
  3. Carefully copy the new CNAME record name and value to your Namecheap DNS settings
  4. If using Cloudflare or similar services, check for and modify any CAA records to allow AWS to issue certificates
  5. Wait for DNS propagation (typically minutes to a few hours, though it can take up to 72 hours in some cases)

If the issue persists after these steps, you might need to check if there are any specific DNS configuration issues with Namecheap or consider temporarily moving your DNS management to Route 53 to simplify the certificate validation process.
Sources
Validate SSL/TLS certificates for Lightsail distributions - Amazon Lightsail
Unable to request a Certificate in AWS | AWS re:Post
Verify SSL/TLS certificate domains with CNAME records in Lightsail - Amazon Lightsail
Pending SSL Certificate request | AWS re:Post
Lightsail Certificates: Certificate validation always fails with external DNS managed by Cloudflare | AWS re:Post

answered 9 months ago
AWS
EXPERT
reviewed 9 months ago

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.