I used certbot to create a free SSL certificate and automatically redirect every request to HTTPS
here is a more detailed guide https://certbot.eff.org/instructions?ws=nginx&os=pip I believe you can change the port from the NGINX configuration, I used community versions and usually made changes from /etc/nginx/sites-enabled/mysite.com and it is what I'm familiar with. Here is a guide on running SSL on a non-standard port:
https://serverfault.com/questions/828130/how-to-run-nginx-ssl-on-non-standard-port
I hope you will fix the issue
Note: If you want you can also run NGINX on a custom IP or a Local one from this configuration