You might try this first. It is the easiest way to set up https for the server, I need to do try and error million times before it works:
After that, you can try your own configuration.
However, you might face this issue after that: