AWS(Amazon Web Services) Certificate Manager provides a free public SSL Certificate that can be used in AWS Load Balancer for HTTPS access. Unfortunately, it’s something a little weird at first to set it up first. So that we prepare this blog post in order to provide a step by step guide to make life easier. In our guide below, we use a subdomain of antmedia.io that is registered at another company. Let’s get started
- Login to AWS Management Console and Go to AWS Certificate Manager from AWS Services. Click “Get started” under Provision certificates
- Choose “Request a public certificate” and Click “Request a certificate”
- Write your domain name into the box. We use “aws-streaming-cloud.antmedia.io” and Click “Next” button.
- Select “DNS validation” for our case. Because it sounds simpler for us and click “Review” button.
- Click the “Confirm and request” button
- In the coming window, it shows CNAME for DNS validation and its state is “Pending Validation”. To get the CNAME record, Click the arrow on the left side of your domain name and it shows the CNAME record as shown in the image below. Save the CNAME record and click “Continue”. It’s time to add CNAME in your DNS configuration. The company where you register your Domain name provides you a configuration panel so that you can go that panel and add CNAME record for that. You can ask for support to the company where you register your domain name. Let’s proceed,
- In the next page, it again shows that it’s in “Pending Validation” state. After you add CNAME records to your DNS configuration. Come back to same page and click “Refresh” button on the right top of the page. It may take some time(5-10 mins) to be issued. After that, its state will return to “Issued” as shown below.
Use SSL in your Load Balancer
Right now, you can use your certificate in your AWS Load Balancer. It will show up automatically when you’re creating load balancer as shown in the image. Although, creating Load Balancer is a subject of another post, let me give some basic information. Go to “EC2 Service” from AWS Services. Click the “Load Balancing > Load Balancers” and Click “Create Load Balancer” as in the image
- Click the “Create” button under “Application Load Balancer”
- Choose a name for your load balancer and click “Add Listener” in the Listeners section and add HTTPS Listener as shown in the image. Lastly, choose availability zones and Click “Next: Configure Security Settings”
- In the coming window, choose the first option as in the image and you can see your domain name in the drop-down menu. That’s all about Load Balancer because we’ll give much more information about creating and using Load Balancer in another blog post.
Btw, if you already have experience with Load Balancer and you want to proceed for your project, let me make a remind, don’t forget to add CNAME for your load balancer. For instance, every load balancer has a DNS name like “xxxx.eu-central-1.elb.amazonaws.com” so that you need to add CNAME for your subdomain that points to your load balancer address.
I tried to show you how to get SSL Certificate on AWS Certificate Manager for your Domain Name. I hope this guide will help some guys both using Ant Media Server Cluster on AWS or any other guys that need this information for your own other project. Please let us know if we can help for your any questions.