Search code examples
amazon-web-servicesssl-certificateamazon-elastic-beanstalkamazon-elbaws-certificate-manager

Making a Node JS web app use https via Elastic Beanstalk and Certificate Manager?


I'm pretty new to AWS, but I hosted my MERN stack application via Elastic Beanstalk and added in the SSL certificate to the classic load balancer.

The steps I took are below:-

1) Successfully launch MERN Stack application via Elastic Beanstalk

2) Issue an SSL certificate with Certificate Manager enter image description here

3) Add an SSL port at 443 to my Classic Load Balancer enter image description here

I found all of these instructions via this blog and found similar(the same) advice on the aws docs as well, but my site is still insecure..

enter image description here

Any pointers on what I may be missing out? I was looking into configuring things with .ebextensions, but I'm scared of breaking things irrevocably because the site is currently live. enter image description here

Thanks a ton for your help!


Solution

  • Most probably SSL has been enabled but you’re still accessing your website via http://. Try to access it with https:// and most probably it will work. If that’s the case, you need to redirect your HTTP traffic to HTTPS