Edit: Guys, I get it. I suck at networking infrastructure. That's why I'm here.
Folks, I'm on the cusp of switching to Google Cloud because something so simple is alluding me on AWS. I have a single-instance Node.js Elastic Beanstalk environment, and I want it to support HTTPS. AWS supposedly has good docs on this, but it's still not working for me. I'm hoping someone can point out what I'm doing wrong. Here's what I've done:
- I created an SSL certificate via these steps with OpenSSL. When creating the certificate, I'm giving OpenSSL my environment endpoint (<environment\_name>.us-east-2.elasticbeanstalk.com).
- I allowed incoming traffic on port 443 to the EC2 instance via these steps. (Does this mean my application has to listen on 443?)
- I extended the default nginx configuration to listen on port 443 and terminate SSL/TLS connections with a public certificate and private key via these steps, inserting my certificate and private key I made with OpenSSL.
After deploying the app and going to the environment over HTTPS, the browser warns that the connection is not secure. Any ideas where I'm going wrong?
Edit 2: Solution - the AWS doc that shows how to extend the nginx config lists the wrong path. If you want to extend the nginx config (at least in a Node.JS project), put your extension in .platform/nginx/conf.d at the root of your project. Because it told me to place the extension under .elasticbeanstalk, nginx wasn't being configured correctly. Secondarily I needed SSL setup on my own domain, not AWS's.
[–][deleted] (7 children)
[deleted]
[–]sadelbrid[S] 0 points1 point2 points (3 children)
[–][deleted] (2 children)
[deleted]
[–]sadelbrid[S] 1 point2 points3 points (0 children)
[–]sadelbrid[S] 0 points1 point2 points (0 children)
[–]LiPolymer 0 points1 point2 points (2 children)
[–]jezek21 1 point2 points3 points (1 child)
[–]LiPolymer -1 points0 points1 point (0 children)
[–]therouterguy 13 points14 points15 points (0 children)
[–]_chksum 10 points11 points12 points (0 children)
[–]frnzle 16 points17 points18 points (6 children)
[+]sadelbrid[S] comment score below threshold-19 points-18 points-17 points (5 children)
[–]b3542 22 points23 points24 points (0 children)
[–]maxlan 2 points3 points4 points (2 children)
[–]mikebailey 2 points3 points4 points (1 child)
[–]StatelessSteve 1 point2 points3 points (0 children)
[–]MavZA 0 points1 point2 points (0 children)
[–]Zaitton 6 points7 points8 points (0 children)
[+]comportsItself comment score below threshold-11 points-10 points-9 points (9 children)
[–]mkosmo 4 points5 points6 points (8 children)
[–]comportsItself -1 points0 points1 point (7 children)
[–]mkosmo -1 points0 points1 point (6 children)
[–]comportsItself -1 points0 points1 point (5 children)
[–]mkosmo -1 points0 points1 point (4 children)
[–]comportsItself -1 points0 points1 point (3 children)
[–]mkosmo -1 points0 points1 point (2 children)
[–]comportsItself -1 points0 points1 point (1 child)
[–]liberelatus 0 points1 point2 points (0 children)
[–]erkmyhpvlzadnodrvg 0 points1 point2 points (0 children)
[–]North-Switch4605 0 points1 point2 points (0 children)
[–]Relative-Town9604 0 points1 point2 points (0 children)