Securing your website with HTTPS is crucial for protecting user data and enhancing trust. AWS Certificate Manager (ACM) provides an easy way to request and manage SSL/TLS certificates. In this guide, we'll walk you through the process of creating a certificate in ACM and connecting it to your domain managed in AWS Route 53.
Step 1: Sign in to AWS Management Console
- Open the AWS Management Console at https://aws.amazon.com/console/.
- Sign in with your AWS credentials.
Step 2: Access AWS Certificate Manager
- In the AWS Management Console, search for "Certificate Manager" in the search bar.
- Click on "Certificate Manager" to open the ACM dashboard.
Step 3: Request a Certificate
- In the ACM dashboard, click on "Request a certificate."
- Choose "Request a public certificate" and click "Next."
Step 4: Add Domain Names
- Enter the domain name you want to secure. For example,
example.com
.
- If you want to secure subdomains as well, add them using the format
*.example.com
for wildcard certificates or www.example.com
for specific subdomains.
- Click "Next."
Step 5: Choose a Validation Method
- ACM offers two validation methods: Email Validation and DNS Validation. For simplicity and automation, choose "DNS Validation."
- Click "Next."
Step 6: Add DNS Records in Route 53
- ACM will provide DNS CNAME records that need to be added to your Route 53 hosted zone.
- Go to the Route 53 dashboard by searching for "Route 53" in the AWS Management Console.
- Click on "Hosted zones" in the left-hand menu and select your domain’s hosted zone.
- Click "Create Record Set" and enter the CNAME record details provided by ACM.
- Save the record set.
Step 7: Validate the Domain
- Return to the ACM dashboard.
- ACM will automatically detect the DNS records you've added and begin the validation process.
- Validation can take a few minutes to a few hours. You’ll receive an email notification once the certificate is issued.
Step 8: Attach the Certificate to Your Resources
- Once the certificate status is "Issued," you can use it with AWS services such as Elastic Load Balancer (ELB), CloudFront, or API Gateway.
- For example, to attach the certificate to an ELB:
- Go to the EC2 dashboard and select "Load Balancers."
- Choose your load balancer and click on the "Listeners" tab.
- Edit the HTTPS listener to select your newly issued ACM certificate.
Step 9: Update Your DNS Records (if needed)
- If you are using CloudFront or another service that requires specific DNS settings, update your Route 53 records accordingly.
- Ensure that your domain’s DNS settings point to the appropriate AWS resource using the certificate.
Step 10: Test your certificate
- In your web browser, enter your domain name starting with https. For example
https://example.com
- Ensure that your domain is working. If not, start troubleshooting by checking your security groups. Ensure that port 443 or HTTPS is allowed to your ELB.
Conclusion
You’ve successfully created and connected an SSL/TLS certificate to your domain using AWS Certificate Manager and Route 53. This setup ensures that your website is securely accessible over HTTPS, enhancing security and user trust. For any issues, verify DNS records and certificate status in ACM.
Additional Resources