Skip to content

Elastic beanstalk url is not https enabled after adding an ssl certifcate to its attached load balancer

0

Hello team,

I have a bit of a peculiar issue. I set up an application using elastic beanstalk, created an ssl certificate with acm which is attached to a domain. The ssl certificate is the attached to the loadbalancer, a 443-https listener was added and the 80-http listener is directed to the 443 listener. I created a cname record to point to the elasticbeanstalk url and another subdomain as an A record to the alb dns. Both domains are https enabled and http requests are redirected as expected.

However, I have a few partners who would like to access the application using their domains, so I expect that when they either point their domain to any of my subdomains or the load balancer dns or beanstalk url, the page they are directed to is https enabled but that seems not to be the case, the sites are not usually secure, I also ensured the partner domains are ssl enabled too.

In a bid to better understand, I tried to access the alb dns and EB url and both of them are not https enabled either. Is there a way to make either or both to be https enabled? It is really important that these partners can access via https when they point to the domains.

Enter image description here

3 Answers
0

Hello.

Is it possible for you to share a screenshot of the ALB listener settings?
Basically, I thought there was no problem with the settings you described.
https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/configuring-https-elb.html

EXPERT

answered 3 years ago

  • I have dropped the screenshot as an answer below, seems there is no way to attach screenshots to comments, sorry

0

You may want to review this guide to configure your Elastic Beanstalk environment's load balancer to terminate HTTPS to make sure you haven't missed anything. In addition, that guide to redirect HTTP to HTTPS traffic in the context of Elastic Beanstalk clarifies the redirection concept.

An example with specific domain names will help better answer your question.

AWS

answered 3 years ago

0

Enter image description here

Here is a screenshot of my listener rules, the domain whose ssl I attached redirects to https as expected but when I point an external domain to the loadbalancer or to the domain with an ssl certificate it becomes http which I dont understand why.

answered 3 years 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.