Hi – I'm a beginner with SSL/HTTPS so apologies if my terminology/understanding here are limited.
I'm running a NodeJS app which is a proxy server for multiple other servers (it's a simple load balancer, following the code in this article).
The Node app runs on port
7080. I have an AWS Elastic Load Balancer which listens on port
80 and forwards requests (via TCP) to port
7080, which all works fine.
I've been trying to add SSL support and have created a Let's Encrypt certificate for my domain (which points at the ELB endpoint). I uploaded the certificate to AWS and have added an SSL listener with the certificate, which also forwards to TCP
7080. This doesn't work – requests just time out.
In the app instructions I'm following for the Node app, it suggests configuring the app with the SSL certificate files and passing these settings on for the proxy server it creates. I tried this too but had certificate errors, which I assume was because I was loading the raw EC2 instance URL and not the loadbalancer domain (which the certificates point to). I was hoping that by terminating the SSL request at the load balancer level, I wouldn't need to configure the underlying Node app to run on SSL itself. Have I misunderstood this?
As I say above, I'm new to this and still getting my head around what's going on. Any tips would be gratefully received.