Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Adding SSL to AWS Beanstalk

My AWS certificate is not showing as an option in the SSL certificate ID dropdown. I believe that this is required to force the Elastic Beanstalk to use HTTPS. I am using an AWS issued cert. Here are the steps from the manual that I am following.

To assign a certificate to your environment's loadbalancer
  1) Open the Elastic Beanstalk console.
  2) Navigate to the management console for your environment.
  3) Choose Configuration.
  4) In the Network Tier section, choose the gear icon next to Load Balancing.
  5) In the Load Balancer section, choose your certificate from the SSL certificate ID drop down menu.
like image 457
Juls Avatar asked Oct 30 '22 09:10

Juls


1 Answers

My problem was I trying to use the cert i commissioned through AWS (they allow you to do this) through their cert manager, I was trying to use that on my EC2 instance. I'm not sure that Amazon is aware of this but the AWS granted cert is NOT available in the dropdown list in your Elastic beanstalk instance networking configuration load-balancer option (but it is available when you edit the EC2 load balancer). As it turns out ... you must create and upload your own cert to make both options work.

  • STEP 1: EC2 Dashboard
    1. Goto Load Balancers
    2. Goto Listeners Tab
    3. Press Edit
    4. Press Add
    5. Enter
    6. LoadBalancer Protocal = HTTPS
    7. Load Balancer Port = 443
    8. (leave Instance Protocol default)
    9. Press Change on SSL Cert
    10. Add your Private & Public Key
    11. Press Save

NEXT...

  • STEP 2: Elastic Beanstalk Dashboard
    1. Goto your Beanstalk instance
    2. Goto Configuration
    3. Goto Load Balancing (under Network Tier)
    4. On Secure listener port, set Protocol to "HTTPS"
    5. On SSL certificate ID Dropdown to your cert
like image 132
Juls Avatar answered Nov 09 '22 04:11

Juls