This is my first time needing to use SSL, and I host my site on a custom Node.js server of my own making. I've been doing research on how SSL works but I'm stuck on a specific part:
How do I link my domain name with my web server IP address so that I can use SSL?
My confusion is in the fact that (from what I think I understand), I need to link my domain name to the IP address of my web server, but the web server doesn't serve directly on that IP address, but rather at a port on that IP.
I'm trying to set my DNS A name record to pair my domain name with my website's server IP. But the site is hosted on a certain port of the server, and the A Name record only allows the IP (no port). Doesn't the record somehow need to know to direct traffic at the right port? for example I'm serving on port 6070, how do the DNS settings work properly if the port isn't included in the A Name Record?
I'd usually just redirect traffic from the domain name to the right IP/port, but since I need to use SSL, I think I have to link the domain to the server IP via the A Name records instead.