I'm installing WeBWorK on an Ubuntu 22 server and I'm having trouble with SSL and serving via hypnotoad.
I installed certificates using certbot. They are at:
Certificate is saved at: /etc/letsencrypt/live/webwork.mysite/fullchain.pem
Key is saved at: /etc/letsencrypt/live/webwork.mysite/privkey.pem
where of course "webwork.mysite" is the actual domain.
In the mojolicious yml file, I have:
server_user: www-data
server_group: www-data
I don't know if I should have done this, but I set the certificate to be readable by all, and the key readable by owner and group, which are root:www-data.
For now since https is not working, I have
redirect_http_to_https: 0
I have:
hypnotoad:
listen:
- http://*:80
- https://*:443?cert=/etc/letsencrypt/live/webwork.mysite/fullchain.pem&key=/etc/letsencrypt/live/webwork.mysite/privkey.pem
...
#proxy: 1
I have commented out the tree lines from the service file:
#User=www-data #Group=www-data #Environment="MOJO_REVERSE_PROXY=1"
So I think I have done everything per the draft installation instructions. Now I can visit the site with a web browser using http://, but visiting with https:// gives an error in Firefox:
Secure Connection Failed
An error occurred during a connection to webwork.mysite. PR_END_OF_FILE_ERROR
Is it clear what I'm doing wrong, or what I could look into?