I just installed webwork 2.19 on a ubuntu 24.04 virtual provided my University IT. I followed instructions on the wiki and the rest worked except the ssl part.
For the ssl part, I followed:
Set up Hypnotoad to use SSL (Option 1)
The only thing that needs to be done is to tell hypnotoad where the certificates are. For this edit /opt/webwork/webwork2/conf/webwork2.mojolicious.yml and in the hypnotoad: s>
listen:
- http://*:8080
to
listen:
- https://*:443?cert=/etc/ssl/certs/ssl-cert-snakeoil.pem&key=/etc/ssl/private/ssl-cert-snakeoil.key
Make sure that the files are readable by the webwork2 app.
$ sudo chown www-data /etc/ssl/certs/ssl-cert-snakeoil.pem /etc/ssl/private/ssl-cert-snakeoil.key
Part of yml file:
hypnotoad: listen: - https://*:443?cert=/etc/ssl/certs/ssl-cert-snakeoil.pem&key=/etc/ssl/private/ssl-cert-snakeoil.key #- https://*:443?cert=/etc/ssl/certs/myedu_cert_chain.pem&key=/etc/ssl/private/myedu_key.key - http://*:80 # - http://*:8080- # Below is an example of how to use ssl certificates when serving directly via hypnotoad. #- https://*:443?cert=/etc/ssl/local/fullchain.pem&key=/etc/ssl/local/privkey.pem # Below is an example of how to use ssl certificates when using the docker build. #- https://*:8080?cert=/etc/ssl/local/fullchain.pem&key=/etc/ssl/local/privkey.pem
site.conf: https is also used.
Problem:
- The https version does not work, with info: unexpectedly closed the connection.
- The http version is ok.
- Played with the self-signed ssl and my institute ssl, but neither worked.